The original post: /r/debian by /u/Living_Attitude6963 on 2025-01-29 15:39:30.
Debian 12 (stable), KDE 5.27.5
When i connect EXTERNAL drive with LUKS/ext4 partition;
- Dialog for removable media pops up (I click mount & open)
- Dialog for LUKS password pop-up (i type it)
- Viola, partition is mounted as expected (partition has LABEL Backup, therefore it’s mounted into /media/user/Backup)
$ lsblk sda 8:0 0 465.8G 0 disk └─sda1 8:2 0 395.8G 0 part └─luks-20b2037d-…-e0c9d7abf202 254:2 0 395.8G 0 crypt /media/user/Backup
$ mount /dev/mapper/luks-20b2037d-…-e0c9d7abf202 on /media/user/Backup type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
EDIT; Same behavior applies, if i ignore pop-up and go directly in Dolphin and click on external partition. It only asks for LUKS password.
Now to my problem;
On internal drive (besides root, boot, swap partitions) I have another LUKS/etx4 partition that i want to mount manually, only when needed. I prefer to do this via file manager/gui.
- To not mount it at boot, i entered this line into crypttab:
nvme0n1p5_crypt UUID=a1fd-...-9cd none luks,discard,noauto
- I click on partition in file manager
- It asks for LUKS password
- And then is asks for root password. WHY?
- Partition gets mounted with same flags
$ mount /dev/mapper/nvme0n1p5_crypt on /media/user/169deee8-…-b90986d5c2ca type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)
From user perspective, there shouldn’t be any difference. Why do i have to enter root password for internal partition, but not for external? How can i make this work (to only enter LUKS password).
ps. I tried making static entry in fstab, but it doesn’t solve anything
/dev/mapper/nvme0n1p5_crypt /media/user/Privat ext4 defaults,noauto,users 0 2