How can I auto-mount an internal SSD without entering my password?
Asked by
simmer...slowly
I'm using Fedora 44 with KDE and have an internal SSD dedicated to games and other files. I enabled automatic mounting in KDE's settings, but I'm prompted for my password every time I boot. Is there a safe way to configure the drive so it mounts automatically without asking for authentication?
Answers
KDE can be configured with a suitable polkit rule to allow mounting that specific internal partition without repeatedly authenticating. This is more targeted than broadly allowing every user to mount every disk, so the rule should be limited to the intended drive and users.
Reply to this answer
For a normal, unencrypted filesystem, the usual solution is to add the partition to /etc/fstab and disable KDEโs automatic-mount setting for that drive. Using its UUID and an appropriate mount point lets the system mount it during boot without relying on the desktop prompt.
Reply to this answer
First check whether the SSD is encrypted with LUKS. If it is, adding an fstab entry alone wonโt remove the password promptโyouโll need a crypttab configuration as well, or another unlock method such as storing the key with a supported TPM setup. If it isnโt encrypted, fstab is generally all you need.
Reply to this answer
You can also configure this through a disk utility such as GNOME Disks, even while using KDE. Select the partition, open the mount-options editor, enable mounting at system startup, and make sure the option requiring additional user authorization is disabled. Review the generated settings carefully before applying them.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions