[SOLVED] Handling of /etc/fstab #122
-
Hello! This tool is really cool, makes my grub menu always updated after my snapshots so I should be able to easily boot from them. I guess that's the idea. I noticed grub-btrfs does not modify the /etc/fstab file from within the snapshot. This is my fstab for one of my SSD within one snapshot, it still uses the original subvolume references it got snapshoted from: LABEL=SSD1 / btrfs defaults,ssd,noatime,subvol=@ 0 1 If I'm booting from a snapshot of "@" (let's say snapshot is called "snapshot_@20201219") that has a different subvolume name than "@", it has to be addressed here, otherwise "@" will be mounted as root (/) but I need the snapshot to be mounted as root. What should I be expecting? On the same type of question, how does grub-btrfs know which /home snapshot to mount alongside root? Am I trying to use grub-btrfs for the right purpose? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The fstab entry for the As for Yes, I guess you are trying to use the script for the right purpose, I'm just not sure if there could be any way how |
Beta Was this translation helpful? Give feedback.
-
You're absolutely right about And yes that's also what I thought about Since having my snapshots in a Thanks for the very quick reply, man! |
Beta Was this translation helpful? Give feedback.
-
😄 No, I'm not the author, I'm just a user of this script. Nevertheless I'm glad if this was helpful. Happy holidays to you ! |
Beta Was this translation helpful? Give feedback.
The fstab entry for the
/
mountpoint doesn't have any effect, you could also remove it from the file./
is mounted during the boot process, at a point before the kernel even has access tofstab
(that file can't be read before the subvolume where it's located is mounted). Which partition/subvolume to mount as/
is defined in the kernel boot parameters,grub-btrfs
takes care of this for snapshots. See the entries starting withlinux
insidegrub-btrfs.cfg
in your boot partition.As for
/home
- since you are doing snapshots anyways at the same time when/
is snapshotted, maybe consider not having a@home
subvolume at all, so that your snapshots automatically include the home tree ?Yes, I gue…