Hi!. I’m a noob, so sorry if I explain something wrong.
I’ve got 3 drives on my PC, 1TB for boot, home etc, then 1TB for Games and 256GB for downloads.
Main drive, with home, boot etc loads on start of the PC, but others needs to be manually mounted. I usually just click on them in Dolphin (KDE file explorer) and they just mount. I tried adding them to auto mount in “Device Auto Mount” in KDE, but they require password to be put when starting the PC which results in Steam not detecting library. So I thought about changing fstab. I’ve tried to read on Arch Wiki how to do it, but I think in current point in time, it’s a bit too much to understand for someone with such low level of knowledge.
Could someone please make sure that my fstab seems fine? Something tells me that I messed something up here.
I do have a backup made before I edit it, but rather not to have to use it.
Will it still require password on start before mounting?
I’ve read about genfstab yet some people said it might brick the system as it’s not used right after installing the system (?).
If your external drives are formatted as ext4 (or another Linux-native filesystem), then they abide by UNIX permissions.
Therefore, on a single-user installation, it is better to mount them to directories under your user’s home directory, because then the mountpoint will be owned by your user, as opposed to if you mount them under /run/media/, which is a temporary filesystem that ceases to exist once the machine shuts down or reboots. And if you want to mount them to directories in the root directory, then you ought to know that only the root account has write access there.
Please read through the following two elaborate tutorials, and you will understand…
So, they’re not external, they’re internal, connected through SATA inside my PC, they just didn’t mounted on start. I took the bite, saved my settings and it works. I’m going to read through what you sent so thanks for that. My main issue was that I wasn’t sure if I should add the path /run/media/ etc with UUID or not. But yeah, everything works, so thanks!
A useful command for checking your fstab file: sudo findmnt --verify --verbose
This will warn you of any “gotchas”. It’s also worth adding nofail to the options for any new filesystems you add. Otherwise, if for any reason those filesystems aren’t available at boot, systemd will simply hang, giving you no clue what’s wrong.