Skip to content

btrfs: Improve fstab mount options during a btrfs install#172

Open
anaximeno wants to merge 2 commits intolinuxmint:masterfrom
anaximeno:improve-btrfs-install-fstab-mount-options
Open

btrfs: Improve fstab mount options during a btrfs install#172
anaximeno wants to merge 2 commits intolinuxmint:masterfrom
anaximeno:improve-btrfs-install-fstab-mount-options

Conversation

@anaximeno
Copy link
Copy Markdown

@anaximeno anaximeno commented Oct 21, 2025

I've improved the btrfs install to use compression by default (which reduces writes and uses less storage) and some other options that should be better for modern SSDs.

Used as a reference the fstab mounts in distros such as Fedora and CachyOS which use similar mount options for btrfs, and this reference on BTRFS mount options I found: https://wiki.tnonline.net/w/Btrfs/Mount_Options

Tested the installation with both a single root partition on btrfs and split root and home partion when both on btrfs and it worked well in both cases.

Comment thread usr/lib/live-installer/installer.py Outdated
No need to explicitly set discard=async in fstab, as it is the default for kernel versions ≥ 6.2 and is automatically enabled on SSD/NVMe devices. ref: https://btrfs.readthedocs.io/en/latest/ch-mount-options.html

Thanks https://github.com/emanuc for the suggestion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants