I recently switched to CachyOS with KDE Plasma after using Linux Mint Cinnamon for a couple of months. I have a 12TB hard drive connected via SATA that I use for storage. On Mint, I had it set to automatically mount at startup without any password prompts, but I am struggling to do the same on CachyOS. I've messed around with the auto-mount settings, checking options for 'On Login' and 'On Attach', but I'm still being prompted for my password every time I boot up. This is frustrating because some applications are stored on that HDD, and they don't function properly if it doesn't mount automatically. Is there a way to fix this?
4 Answers
Make sure you confirm whether your HDD is encrypted or not. If it isn't, then the /etc/fstab file is definitely where you should be setting things up. Use `genfstab -U /` to generate the entries for all connected drives, then check if it all looks good before writing it to /etc/fstab. That should take care of things!
You might want to check your /etc/fstab file. Adding an entry for your HDD there should allow it to auto-mount at boot time without requiring a password. There are some GUI tools like Gnome-disks or KDE's disk manager that could help you set this up, too. If your HDD uses NTFS, make sure you reference the right filesystem type and use either `ntfs3` or `ntfs-3g` in your fstab entry. Your specific distro may have additional documentation on this, so that could be a good resource too.
If you're still having issues, check out this resource on using a credential file for CIFS mounts in fstab: (link to askubuntu.com). It might help you with any specific setups you need for automatic mounting.
You should definitely check those auto-mount settings again. Sometimes, the init system you're using (like systemd) might not recognize the auto-mount option set in the desktop environment. Ensure your fstab entry is correct, and it should mount automatically when you boot up!
Thanks for the tip! I'll try generating the fstab and see if that works.