Public bug reported:

Binary package hint: hal

I have an external USB harddrive with two NTFS partitions, one of which
is LUKS encrypted. When I insert the HD hal recognizes both partitions
and mounts them correctly. When I try to unmount the LUKS partition I
get the following message in a popup error:

Error tearing down /dev/sdb2 - fs still mounted?.

The partition is unmounted but the DM device in /dev/mapper/ stays
active. From the daemon.log I see:

Jan  6 22:35:51 galar3 ntfs-3g[29282]: Version 2010.8.8 external FUSE 28
Jan  6 22:35:51 galar3 ntfs-3g[29282]: Mounted /dev/dm-2 (Read-Write, label 
"LarryWD500", NTFS 3.1)
Jan  6 22:35:51 galar3 ntfs-3g[29282]: Cmdline options: 
rw,nosuid,nodev,uhelper=hal,uid=1000,umask=0077
Jan  6 22:35:51 galar3 ntfs-3g[29282]: Mount options: 
rw,nosuid,nodev,uhelper=hal,allow_other,nonempty,relatime,fsname=/dev/dm-2,blkdev,blksize=4096,default_permissions
Jan  6 22:35:51 galar3 ntfs-3g[29282]: Global ownership and permissions 
enforced, configuration type 1
Jan  6 22:36:19 galar3 ntfs-3g[29282]: Unmounting /dev/dm-2 (LarryWD500)
Jan  6 22:36:19 galar3 hald: unmounted /dev/dm-2 from '/media/LarryWD500' on 
behalf of uid 1000

But:

$ sudo cryptsetup status luks_crypto_3873f57c-7755-4c39-aaf1-1f16e780f305
/dev/mapper/luks_crypto_3873f57c-7755-4c39-aaf1-1f16e780f305 is active:
  cipher:  serpent-cbc-essiv:sha256
  keysize: 256 bits
  device:  /dev/sdb2
  offset:  2056 sectors
  size:    956765084 sectors
  mode:    read/write

I then have to remove the mapping manually with:

$ sudo cryptsetup luksClose
luks_crypto_3873f57c-7755-4c39-aaf1-1f16e780f305

which completes its task without error, removing the mapping.

If I don't remove the mapping manually and disconnect the HD, the next
time I plug it, the LUKS partition is not automounted (the unencrypted
partition is mounted alright but now as /dev/sdc1, whereas before it was
/dev/sdb1).

I followed the instructions from
https://wiki.ubuntu.com/DebuggingRemovableDevices and produced a hal.log
and udev.log which I am attaching to this bug report.

I don't know if this problem has to do with the fact that the Harddrive
has 2 partitions, one encrypted and one unencrypted, but at the moment I
don't have any other HD with just one partition in order to perform more
tests.

I'm using Xubuntu, i.e., with Xfce and Thunar as the file manager. I
don't know if this problems arises on Gnome or KDE.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: hal 0.5.14-0ubuntu6 [modified: 
usr/lib/hal/scripts/linux/hal-luks-teardown-linux]
ProcVersionSignature: Ubuntu 2.6.35-24.42-generic 2.6.35.8
Uname: Linux 2.6.35-24-generic x86_64
Architecture: amd64
Date: Thu Jan  6 22:38:38 2011
InstallationMedia: Xubuntu 10.04 "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: hal

** Affects: hal (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/698338

Title:
  Error tearing down LUKS device

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to