This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Umounting crypted partition within Dolphin

Tags: None
(comma "," separated)
lecbee
Registered Member
Posts
4
Karma
0
OS
Hello,

I created a crypted partition with Luks. When I mount/open it within Dolphin, I got a window-dialog which ask me the password. It's ok, but when I umount/close it (within Doplin), and I re-mount it, Dolphin doesn't ask me the password.

It seems that because "/dev/mapper" still save the partition. When I perform "cryptsetup remove luks_crypto_<uuid_partition>" then it's ok.

So, is it possible to tell Dolphin (via script or conf, I don't know) to perform the "cryptsetup remove" command when umounting the partition ?

Thanks.
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
Is the partition on the computer or on a USB hard drive?


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
lecbee
Registered Member
Posts
4
Karma
0
OS
On the computer.
It's a partition on my main hard disk (where are /, /home, etc.).
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
I can't help then, I'm afraid. All my encrypted partitions are on external drives.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
lecbee
Registered Member
Posts
4
Karma
0
OS
But it's similar ? If you plug in your external drive and mount it, Dolphin ask you the password. If you umount it and then re-mount it, Dolphin doesn't ask you the password, isn't it ?
User avatar
TheBlackCat
Registered Member
Posts
2945
Karma
8
OS
No, it doesn't ask again. The way it works is you have an encrypted partition, then that encrypted partition contains another normal linux partitions. When you unmount as you describe you are not actually unmounting the encrypted partition, you are actually unmounting the normal partition that is stored inside the encrypted partition. So the reason that you don't need to enter your password again is because the encrypted partition is still open and decrypted.

In order to actually unmount the encrypted partition (and have to re-enter your password), you need to first unmount the partition it is containing, then unmount the actual encrypted partition. You did the first step, but not the second. The second step is easy to do with removable devices, but I am not sure how to do it with built-in partitions. Hence my lack of useful advice.


Man is the lowest-cost, 150-pound, nonlinear, all-purpose computer system which can be mass-produced by unskilled labor.
-NASA in 1965
lecbee
Registered Member
Posts
4
Karma
0
OS
Ok, I will try with udev rules.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]