WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

1.3K

Title pretty much says it all. I have a secondary storage HDD that I want mounted on start up, but it asks for a password every boot. In gnome I could set it to automount without asking, but in KDE I can't seem to find a way to do it.

Any suggestions to try?

Title pretty much says it all. I have a secondary storage HDD that I want mounted on start up, but it asks for a password every boot. In gnome I could set it to automount without asking, but in KDE I can't seem to find a way to do it. Any suggestions to try?

(post is archived)

[–] 2 pts

It sounds like you have a regular partition (maybe EXT4 format) inside of an encrypted volume.

I have a bunch of these. Here’s an example of how I set one of them up to auto mount.

I make an entry in /etc/crypttab to tell the OS to open the encrypted volume on boot.

storage_003_cryptpart UUID=4be15e12-fd47-34e1-7abf-f2b265b34e31 /etc/luks-keys/storage_003_cryptpart luks,auto

/etc/luks-keys/storage_003_cryptpart is a file that contains nothing but the key (passphrase) for the encrypted volume. I keep that readable only by root and it’s in the main encrypted volume so it can’t be read unless the machine is up and running.

Then I have an entry in /etc/fstab that tells it to auto mount the EXT4 partition inside of that encrypted volume.

UUID=3373a107-ede9-4f17-d0f3-229a38c52e2e /media/storage_003 ext4 user,auto,noatime,rw,exec 0 0

To get the UUID of your encrypted volumes and regular partitions enter lsblk -f

For that drive lsblk -f shows this:

sdb
└─sdb1                     crypto_LUKS 2              4be15e12-fd47-34e1-7abf-f2b265b34e31
  └─storage_003_cryptpart  ext4        1.0            3373a107-ede9-4f17-d0f3-229a38c52e2e      3.4T    48% /media/storage_003

The UUID next to crypto_LUKS2 goes in /etc/crypttab. The UUID next to ext4 is used in /etc/fstab.

[–] 1 pt

Systemd? If so.

Do it similar to this. I just grabbed that from my fstab. as you see it mounts my nfs share after boot, without asking me for my password or anything. If you need credentials, you can do that also, look at the options.

10.10.1.99:/volume1/Backups /mnt/nfs nfs tcp,_netdev,nofail,x-systemd.automount 0 0

[–] 1 pt

I believe I tried the fstab route, but I'll revisit it again later this evening

[–] 1 pt

note the x-systemd and automount parameters.

Is it a network share, or connected to the computer with USB?

Something like this would work for a cifs share adding credentials if you need those to access a share.

//server/share /pathto/mountpoint cifs credentials=/home/username/.smbcredentials,uid=shareuser,gid=sharegroup 0 0

[–] 1 pt

It's sata internal. My old HDD. Mainly used for inactive steam games and media storage