You are not logged in.

#1 2025-02-23 00:07:41

bedtime
Member
Registered: 2019-02-12
Posts: 106

mounting options in /etc/fstab not respected

Here is the /etc/fstab:

# /dev/nvme0n1p4 LABEL=ROOT
UUID=5e586c3d-a6c6-4f77-bf51-2ddcfa4d584d  /  bcachefs   rw,noatime,fsck,fix_errors,noshard_inode_numbers,norecovery,noexcl,discard,nofail      0 0

but

$ mount | grep ' / '
/dev/nvme0n1p4 on / type bcachefs (rw,noatime,noshard_inode_numbers)

I've tried using dracut, mkinitcpio, and booster with the same results.

kernel ops in /etc/default/grub:

GRUB_CMDLINE_LINUX="quiet rootfstype=bcachefs nmi_watchdog=0 nowatchdog modprobe.blacklist=iTCO_wdt mitigations=off loglevel=3 rd.udev.log_level=3 zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=20 zswap.zpool=z3fold scsi_mod.use_blk_mq=1 resume=UUID=99bed8ba-ada6-4a01-88dc-48a83b656955"

I'm thinking that this might have something to do with systemd remounting, but I'm not sure which service does it.

Any ideas?

Offline

#2 2025-02-23 09:47:32

seth
Member
Registered: 2012-09-03
Posts: 61,712

Re: mounting options in /etc/fstab not respected

Do you have "bcachefs" in the mkinitcpio HOOKS?

Offline

#3 2025-02-25 17:29:33

bedtime
Member
Registered: 2019-02-12
Posts: 106

Re: mounting options in /etc/fstab not respected

seth wrote:

Do you have "bcachefs" in the mkinitcpio HOOKS?

I added it as such:

MODULES=(lz4 bcachefs)
BINARIES=()
FILES=()
HOOKS=(base udev autodetect modconf kms keyboard keymap block bcachefs filesystems resume fsck)

COMPRESSION="lz4"
COMPRESSION_OPTIONS=(-9)
MODULES_DECOMPRESS="no"

and then I ran:

mkinitcpio -P

And still not mounting with options in /etc/fstab.

Offline

#4 2025-02-25 20:21:30

seth
Member
Registered: 2012-09-03
Posts: 61,712

Re: mounting options in /etc/fstab not respected

If you remount the partition, do the settings get picked up?

Offline

#5 2025-02-25 23:01:05

bedtime
Member
Registered: 2019-02-12
Posts: 106

Re: mounting options in /etc/fstab not respected

seth wrote:

If you remount the partition, do the settings get picked up?

Initially I had tried that with no change:

mount -a

In any event, I made a bunch of changes, and I'm not really sure which one it was, but now the mount options in /etc/fstab are being respected. I also tried editing /etc/fstab with more sane defaults, using relatime instead of the others I had used. Perhaps those others resulted in an error and systemd forced the a remount? Anywho, it's fixed and the install script is updated so it won't happen again.

Offline

Board footer

Powered by FluxBB