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;

  1. Dialog for removable media pops up (I click mount & open)

https://preview.redd.it/k04fh5dr8yfe1.png?width=447&format=png&auto=webp&s=843eb31d6134f7c09fb579a525345909dfd7382e

  1. Dialog for LUKS password pop-up (i type it)

https://preview.redd.it/odsfmf688yfe1.png?width=425&format=png&auto=webp&s=52bc29c8c35f1da431fe900ac9e0b522d9f84817

  1. 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.

  1. To not mount it at boot, i entered this line into crypttab: nvme0n1p5_crypt UUID=a1fd-...-9cd none luks,discard,noauto
  2. I click on partition in file manager

https://preview.redd.it/avkx4ye2ayfe1.png?width=257&format=png&auto=webp&s=cce75836b13b3975dfd24c3e69b686567e7f1db4

  1. It asks for LUKS password

https://preview.redd.it/szjxchkoayfe1.png?width=425&format=png&auto=webp&s=0d29db66280fe0f6734ddf9eabe103216519e78b

  1. And then is asks for root password. WHY?

https://preview.redd.it/b79ru3bfbyfe1.png?width=517&format=png&auto=webp&s=c4e3b466c2879ee0e7d6ec34eab855e498eb9735

  1. 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