Luks encrypted partitions are not recongnized and not mountable

Bug #39213 reported by ClemensBier
10
Affects Status Importance Assigned to Milestone
gnome-volume-manager (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Situation:
Fresh dist-upgrade from Breezy on April, 10th.

Installed versions:
ubuntu:~$ apt-cache policy gnome-volume-manager
gnome-volume-manager:
  Installed: 1.5.15-0ubuntu3
  Candidate: 1.5.15-0ubuntu3
  Version table:
 *** 1.5.15-0ubuntu3 0
        500 http://archive.ubuntu.com dapper/main Packages
        500 file: dapper/main Packages
        100 /var/lib/dpkg/status

ubuntu:~$ apt-cache policy pmount
pmount:
  Installed: 0.9.9-1ubuntu1
  Candidate: 0.9.9-1ubuntu1
  Version table:
 *** 0.9.9-1ubuntu1 0
        500 http://archive.ubuntu.com dapper/main Packages
        500 file: dapper/main Packages
        100 /var/lib/dpkg/status

Problem description:
Plugging a removable device such as a USB stick with a LUKS encrypted partition
will cause no reaction from the system. The Breezy release recongized the encrypted and prompted the user via dialog to enter the password to decrypt the partition.
In dapper, there is no feedback of this kind any more. When using the disk mounter applet in GNOME, the LUKS partition appears and you can click on the context menu entry "Mount device" but nothing happens.
In fact the following processes are running:

16679 ? S 0:00 /usr/lib/hal/hald-addon-storage
16680 ? S 0:00 /usr/lib/hal/hald-addon-storage
16702 pts/0 Ss+ 0:00 /usr/bin/pmount-hal /dev/sdc3
16704 pts/0 S+ 0:00 pmount --exec /dev/sdc3 usbdisk-1
16706 pts/0 SL+ 0:00 /sbin/cryptsetup luksOpen /dev/sdc3 _dev_sdc3

Running the command

/usr/bin/pmount-hal /dev/sdc3

in a terminal will prompt for the password and mount successfully the partition.

It looks as if the code that should open the password dialog for the user is broken.

I confirm that the wanted behavior works in Breezy.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Martin, could bug 29364 be the fix for this?

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 39213] Luks encrypted partitions are not recongnized and not mountable

 status needsinfo

Hi Clemens,

ClemensBier [2006-04-11 21:49 -0000]:
> Plugging a removable device such as a USB stick with a LUKS
> encrypted partition will cause no reaction from the system. The
> Breezy release recongized the encrypted and prompted the user via
> dialog to enter the password to decrypt the partition. In dapper,
> there is no feedback of this kind any more. When using the disk
> mounter applet in GNOME, the LUKS partition appears and you can
> click on the context menu entry "Mount device" but nothing happens.

It works fine for me, so it's not generally broken. Can you please do
the steps in http://wiki.ubuntu.com/DebuggingRemovableDevices to help
me finding out why it's not working for you? Thanks!

Changed in gnome-volume-manager:
status: Unconfirmed → Needs Info
Revision history for this message
Martin Pitt (pitti) wrote :

@Daniel: no, pmount doesn't use mount.crypt, it calls cryptsetup directly.

Revision history for this message
ClemensBier (clemensbier) wrote : udev.log

udev.log created as described in https://wiki.ubuntu.com/DebuggingRemovableDevices

Revision history for this message
ClemensBier (clemensbier) wrote : Empty gvm.log + screensot fo session applet

I seem to have a bigger problemwith the gvm. It is not running properly. Thus my gvm.log is an empty file.

ubuntu:~$ killall gnome-volume-manager
gnome-volume-manager: no process killed
ubuntu:~$ gnome-volume-manager -n 2>&1 | tee gvm.log
ubuntu:~$ ps ax | grep gnome-volume
 8398 pts/0 S+ 0:00 grep gnome-volume
ubuntu:~$

I also attach a screenshot of the session applet. As stted in the inital post I did a dist-upgrade yesterday. Maybe I missed something?

Revision history for this message
ClemensBier (clemensbier) wrote : lshal.log

lshal.log created as described in https://wiki.ubuntu.com/DebuggingRemovableDevices

Revision history for this message
ClemensBier (clemensbier) wrote : dmesg.log

dmesg.log created as described in https://wiki.ubuntu.com/DebuggingRemovableDevices

Revision history for this message
ClemensBier (clemensbier) wrote :

Hi Matt,
in order to help you find the problem, I did a complete reinstall with today's nightly build install CD. Installation went fine and I dig the nice little dialog that pops up telling me to install the cryptsetup package to mount my LUKS partition.

I observe the following situation: Mounting of the LUKS partition works nicely with a fresh user account/home directory. When I mount now my regular home directory from a separate partition, I can reproduce the bug. Thus, I assume that I have sort of a configuration problem which got created by the Breezy ==> dapper update 3 days ago. Can you point to the interesting config files so that a can attach a diff files of the interestng ones?

Thanks ,
Clemens

Revision history for this message
Martin Pitt (pitti) wrote :

Hi Clemens,

thanks for checking with a new user. Maybe the output of g-v-m's configuration yields something interesting:

  gconftool -a /desktop/gnome/volume_manager

although g-v-m should at least run. If

  killall gnome-volume-manager
  gnome-volume-manager --no-daemon

immediately returns, then there's definitively something wrong. Maybe you can do

  gconftool --dump /desktop/gnome/volume_manager > gvm.xml

and attach gvm.xml here? Maybe I can use it to reproduce the issue here.

Revision history for this message
ClemensBier (clemensbier) wrote : gvm.xml

Last GVM.xml file used by the Breezy release and the upgraded Dapper installation

Revision history for this message
Martin Pitt (pitti) wrote :

<entry name="automount_drives" mtime="1144921709" type="bool" value="false">
        </entry>
<entry name="automount_media" mtime="1144921708" type="bool" value="false">
        </entry

That makes it pretty clear; these settings were done manually. Can you please re-enable them in System -> Settings -> Removable Devices and check again?

Revision history for this message
Daniel Holbach (dholbach) wrote :

As described in the previous comments, your report lacks the information we need to investigate the problem further. We'll close this report for now - please reopen it if you can give us the missing information.

Changed in gnome-volume-manager:
status: Needs Info → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.