You are not logged in.

#1 2023-09-11 08:11:50

Kicer
Member
From: Poland
Registered: 2014-10-02
Posts: 89
Website

[SOLVED] mount options from fstab ignored after reboot

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 0

So 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

#2 2023-09-11 10:38:45

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,099

Re: [SOLVED] mount options from fstab ignored after reboot

No idea what mounted /mnt/storage for you, but the order in the fstab is off, move it below the root partiton.

Online

#3 2023-09-11 15:52:06

Kicer
Member
From: Poland
Registered: 2014-10-02
Posts: 89
Website

Re: [SOLVED] mount options from fstab ignored after reboot

Oh, I wasn't aware this is important, thank you

Offline

Board footer

Powered by FluxBB