My FSTab /etc/fstab
allows 2 boots partitions, one on the machine HDD (where there are swap
and FS /
), another on a USB pendrive.
I duplicated the boot
line in /etc/fstab
and changed the UUID and format:
UUID=</boot partition on HDD> /boot ext2 defaults 0 2
UUID=</boot partition on USB> /boot vfat defaults 0 2
Can I tell FSTAb to "priorize" USB ? How ?
Thanks a lot (I promise I googled, but maybe with not-right words...)
EDIT What am I aiming ? This process: if USB is plugged then use USB /boot, else: use HDD boot.
Why am I aiming that ? Because my USB pendrive contains a LUKS-keyfile registered in /etc/crypttab
. Maybe I dont even need to boot from USB, but I need to only mount it ; anyway crypt
has to get my key.
It's a fallback plan: no USB ? give the LUKS text passphrase input. USB ? get the keyfile from USB mounted drive.
nofail
parameter.nofail
stuff. You should post an answer, rather than comment, ? BR