You are not logged in.
I'm a bit of a noob with mounting drives in /etc/fstab but I thought I had it down. Whenever I reboot the system it usually fails to boot and throws me into maintenance mode because one of my external USB drives failed to mount. So I type in my password, edit the /etc/fstab and comment out the external USB drives and then it boots. Running "sudo fdisk -l" and the assigned USB drive path letter has changed, every single time. If I had it mounted in fstab as "/dev/sdf1", when I reboot it's now "/dev/sdg1". I've also tried using the UID instead of the drive path but it's the same result.
I'm sure I'm doing this wrong, or maybe the drives are mounting too slow. Anyone give me some guidance? Here is how they are mounted in my fstab.
/dev/sdf1 /mnt/4TB-Ext ext4 rw,relatime 0 0
/dev/sdg1 /mnt/4TB-Ext2 ext4 rw,relatime 0 0Offline
Use UUIDs, not device names:
https://wiki.archlinux.org/title/Fstab# … stem_UUIDs
Also, nofail may come handy:
https://wiki.archlinux.org/title/Fstab#External_devices
Last edited by kokoko3k (2022-05-12 15:04:00)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Use UUIDs, not device names:
https://wiki.archlinux.org/title/Fstab# … stem_UUIDsAlso, nofail may come handy:
https://wiki.archlinux.org/title/Fstab#External_devices
I tried UUID's before and it would throw "UUID...not found" but I'll try again and look into the nofail. Thank you.
Offline
The drives might show up toolate™
Next to UUIDs (really) use "noauto,x-systemd.automount" to have them mounted on access only, not on boot.
Offline
Doesn't nofail wait for the drives to show up too?
(still, automount seems a better idea anyway)
Last edited by kokoko3k (2022-05-12 21:18:21)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Yes, but you end up stalling the boot (for 90 seconds by default) or (through a tooshort™ timeout) "lose" the mount.
Offline