How can I auto-mount an internal SSD without entering my password?
Asked by
5 jars of marmalade
I'm running Fedora 44 with KDE and use an internal SSD for games and other files. I configured it to mount automatically through KDE's settings, but I'm prompted for my password every time I boot. Is there a safe way to have this drive mount automatically without asking for a password?
Answers
You can also configure the driveโs mount options with a disk-management utility such as GNOME Disks, even while using KDE. Select the partition, open its mount settings, and enable mounting at system startup. Be careful with the options, since an incorrect fstab or mount configuration can prevent the drive from mounting.
Reply to this answer
KDEโs password request is usually coming from the desktop authorization system rather than the filesystem itself. A polkit rule can allow a particular user or group to mount the drive without authentication, but that should be written carefully because it grants extra mounting privileges. For a fixed internal SSD, a system-level fstab setup is usually cleaner.
Reply to this answer
For a permanently installed internal drive, the usual solution is to add a proper entry for its filesystem to /etc/fstab and disable KDEโs automount configuration. It can then be mounted during boot instead of through the desktopโs interactive mounting service. Use the partitionโs UUID and choose the correct filesystem type and mount options.
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 to configure the encrypted device in /etc/crypttab as well, potentially using a TPM or another key-unlock method. If it isnโt encrypted, fstab is generally all thatโs needed.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions