[opensuse-kde] mount/unmount luks partition
Hi, what is the status of mounting/umounting an external hard disk with encrypted partition? In 11.3, after plugging the hard disk, an icon for an encrypted container with an open padlock will apper in the device notifier applet. Clicking on such icon will prompt for a password After providing the correct password, the encrypted container will show a closed padlock and a new icon of a removable media will appear. Clicking on such icon will finally mount the encripted partition. To remove, the reverse sequence is necessary: first click on the removable media icon to dismount it, then click on the encrypted container icon: the removable media icon will disappear and an open padlock image will show that the content of the encrypted container is not accessible anymore. with halmount the command sequence will be: halmount /dev/sdb1 (prompt for a password) halmount /dev/dm-0 (mount the partition) and to dismount: halmount -u /dev/dm-0 halmount -u /dev/sdb1 Now on 11.4: I plug the hard disk, the encrypted container icon with an open padlock appears in device notifier applet. Clicking on such icon will prompt for a password. After providing the correct password, the content of the encrypted container is accessible AND the encripted partition is mounted. But in the device notifier applet the encrypted container icon will still show an open padlock and no icon for the newly avalable removable media appears. After that it's not possible to remove the mounted encrypted partition with the device notifier applet. I'm also failing to access the encrypted partition using udisks. The command: udisks --mount /dev/sdb1 fails with the error message: Mount failed: Not a mountable file system I know that udisks is aware of luks encrypted partitions: /usr/share/polkit-1/actions/org.freedesktop.udisks.policy contains an action like: action id="org.freedesktop.udisks.luks-unlock" to unlock an encrypted device. The udisks man page does not have any mention about how to unlock an encrypted device so I assume that using the --mount option will do it, but that's not the case. Anyone know how to use udisks to mount an encrypted device? Of course I can use cryptsetup and mount/unmount, but I would like to do it as a normal user, as I was able in 11.3. Thanks. Giacomo -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
On Sat, Apr 16, 2011 at 10:29 AM, Giacomo Comes <comes@naic.edu> wrote:
Now on 11.4: I plug the hard disk, the encrypted container icon with an open padlock appears in device notifier applet. Clicking on such icon will prompt for a password. After providing the correct password, the content of the encrypted container is accessible AND the encripted partition is mounted. But in the device notifier applet the encrypted container icon will still show an open padlock and no icon for the newly avalable removable media appears.
There is no icon because the luks container and the encrypted partition are treated as a single disk. Just click the encrypted container again to open the device. .
After that it's not possible to remove the mounted encrypted partition with the device notifier applet.
Click the padlock should unmount it, but it doesn't seem t. This is most likely a bug.
I'm also failing to access the encrypted partition using udisks. The command: udisks --mount /dev/sdb1 fails with the error message: Mount failed: Not a mountable file system I know that udisks is aware of luks encrypted partitions: /usr/share/polkit-1/actions/org.freedesktop.udisks.policy contains an action like: action id="org.freedesktop.udisks.luks-unlock" to unlock an encrypted device. The udisks man page does not have any mention about how to unlock an encrypted device so I assume that using the --mount option will do it, but that's not the case. Anyone know how to use udisks to mount an encrypted device?
It works fine for me on three different encrypted disks, -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
On Sat, Apr 16, 2011 at 02:26:28PM -0400, todd rme wrote:
On Sat, Apr 16, 2011 at 10:29 AM, Giacomo Comes <comes@naic.edu> wrote:
Now on 11.4: I plug the hard disk, the encrypted container icon with an open padlock appears in device notifier applet. Clicking on such icon will prompt for a password. After providing the correct password, the content of the encrypted container is accessible AND the encripted partition is mounted. But in the device notifier applet the encrypted container icon will still show an open padlock and no icon for the newly avalable removable media appears.
There is no icon because the luks container and the encrypted partition are treated as a single disk. Just click the encrypted container again to open the device. .
After that it's not possible to remove the mounted encrypted partition with the device notifier applet.
Click the padlock should unmount it, but it doesn't seem t. This is most likely a bug.
Ok, this is a bug of kde 4.6.x. See https://bugs.kde.org/show_bug.cgi?id=268020
I'm also failing to access the encrypted partition using udisks. The command: udisks --mount /dev/sdb1 fails with the error message: Mount failed: Not a mountable file system I know that udisks is aware of luks encrypted partitions: /usr/share/polkit-1/actions/org.freedesktop.udisks.policy contains an action like: action id="org.freedesktop.udisks.luks-unlock" to unlock an encrypted device. The udisks man page does not have any mention about how to unlock an encrypted device so I assume that using the --mount option will do it, but that's not the case. Anyone know how to use udisks to mount an encrypted device?
It works fine for me on three different encrypted disks,
It doesn't work for me on different installations and with different encrypted disks, This is what I do: on a fresh 11.4 installation, I boot and do a console login as root. I plug the usb disk and type: udisks --mount /dev/sdb1 result: Mount failed: Not a mountable file system Of course the result is the same if I do a graphic login and run the command as normal user. Also I can succesfully use cryptsetup and/or halmount. It's just udisks that doesnt work for me. Any suggestion? Giacomo -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
On Sun, Apr 17, 2011 at 09:58:53PM -0400, Giacomo Comes wrote:
On Sat, Apr 16, 2011 at 02:26:28PM -0400, todd rme wrote:
On Sat, Apr 16, 2011 at 10:29 AM, Giacomo Comes <comes@naic.edu> wrote:
Now on 11.4: I plug the hard disk, the encrypted container icon with an open padlock appears in device notifier applet. Clicking on such icon will prompt for a password. After providing the correct password, the content of the encrypted container is accessible AND the encripted partition is mounted. But in the device notifier applet the encrypted container icon will still show an open padlock and no icon for the newly avalable removable media appears.
There is no icon because the luks container and the encrypted partition are treated as a single disk. Just click the encrypted container again to open the device. .
After that it's not possible to remove the mounted encrypted partition with the device notifier applet.
Click the padlock should unmount it, but it doesn't seem t. This is most likely a bug.
Ok, this is a bug of kde 4.6.x. See https://bugs.kde.org/show_bug.cgi?id=268020
The bug was recently fixed: https://projects.kde.org/projects/kde/kdelibs/repository/revisions/6315b732c... I hope we can see the fix in 11.4. Giacomo -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kde+help@opensuse.org
participants (2)
-
Giacomo Comes
-
todd rme