You are not logged in.
Hi
I did some changes in my /etc/fstab file and to my surprise after reboot they were ignored.
My current content of /etc/fstab file:
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
UUID=f6e1a6f3-4342-486e-b338-731a81e5a4e7 /mnt/storage btrfs rw,relatime,lazytime,compress=zstd:3 0 0
# /dev/nvme0n1p2
UUID=f6e1a6f3-4342-486e-b338-731a81e5a4e7 / btrfs subvol=/rootfs 0 0
# /dev/nvme0n1p1
UUID=3DDA-03C7 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
# /dev/nvme0n1p3
UUID=98d4a0ef-31da-4daa-ae91-748a4aeeaa70 none swap defaults 0 0
# /dev/nvme0n1p2
UUID=f6e1a6f3-4342-486e-b338-731a81e5a4e7 /home btrfs subvol=/homefs 0 0So there 3 partitions on my disk and second one contains btrfs filesystem with two subvolumes which I mount as / and as /home. Plus whole filesystem is mounted under /mnt/storage.
Here is output of mount | grep nvme0n1p2:
/dev/nvme0n1p2 on / type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/rootfs)
/dev/nvme0n1p2 on /home type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/homefs)
/dev/nvme0n1p2 on /mnt/storage type btrfs (rw,relatime,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)As you can see neither lazytime nor compress options were aplied.
If I do: 'mount -a -o remount' then i get:
/dev/nvme0n1p2 on / type btrfs (rw,relatime,lazytime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/rootfs)
/dev/nvme0n1p2 on /home type btrfs (rw,relatime,lazytime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/homefs)
/dev/nvme0n1p2 on /mnt/storage type btrfs (rw,relatime,lazytime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)as expecteed.
However after reboot I'm back to situation where lazytime and compress are missing.
I have similar configuration on another PC and there I have exactly same problem.
What can be wrong?
Last edited by Kicer (2023-09-11 15:52:33)
Offline
No idea what mounted /mnt/storage for you, but the order in the fstab is off, move it below the root partiton.
Online
Oh, I wasn't aware this is important, thank you
Offline