[Bug 411447] New: Mounting LUKS-encrypted partition of internal harddrive via hal fails with "Method "Mount" with signature "ssas" on interface "org.freedesktop.Hal. Device.Volume" doesn't exist"
https://bugzilla.novell.com/show_bug.cgi?id=411447 Summary: Mounting LUKS-encrypted partition of internal harddrive via hal fails with "Method "Mount" with signature "ssas" on interface "org.freedesktop.Hal.Device.Volume" doesn't exist" Product: openSUSE 11.0 Version: Final Platform: 32bit OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: AxelKoellhofer@web.de QAContact: qa@suse.de Found By: Customer Created an attachment (id=229424) --> (https://bugzilla.novell.com/attachment.cgi?id=229424) lshal after unlocking device After unlocking an encrypted partition of my internal harddisk with kcryptomedia (or kcrypt which both work fine) mounting fails with the following error-message: Method "Mount" with signature "ssas" on interface "org.freedesktop.Hal.Device.Volume" doesn't exist Same partition with same tools on an also installed Archlinux on the same machine (and same hal-version hal-0.5.11 is used) can be mounted without problems. Mounting the partition by hand works also like a charm. I compared the lshal outputs before and after unlocking the device (to get only the information about the new device) and got the following output (sorry, for the "patch-like" style, but using diff made sense to me) --- hal1 2008-07-22 02:58:37.000000000 +0200 +++ hal2 2008-07-22 03:02:01.000000000 +0200 @@ -1,5 +1,5 @@ -Dumping 103 device(s) from the Global Device List: +Dumping 104 device(s) from the Global Device List: ------------------------------------------------- udi = '/org/freedesktop/Hal/devices/computer' info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list) @@ -1273,6 +1273,37 @@ storage.vendor = 'ATA' (string) volume.ignore = true (bool) +udi = '/org/freedesktop/Hal/devices/volume_part_1_size_0' + block.device = '/dev/dm-0' (string) + block.is_volume = true (bool) + block.major = 253 (0xfd) (int) + block.minor = 0 (0x0) (int) + block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) + info.capabilities = {'volume', 'block'} (string list) + info.category = 'volume' (string) + info.parent = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) + info.product = 'Volume' (string) + info.udi = '/org/freedesktop/Hal/devices/volume_part_1_size_0' (string) + linux.hotplug_type = 3 (0x3) (int) + linux.sysfs_path = '/sys/devices/virtual/block/dm-0' (string) + storage.model = '' (string) + volume.block_size = 512 (0x200) (int) + volume.crypto_luks.clear.backing_volume = '/org/freedesktop/Hal/devices/volume_uuid_7e68c41d_25fc_4f6b_8a68_de85b5a457a2' (string) + volume.fstype = '' (string) + volume.fsusage = '' (string) + volume.fsversion = '' (string) + volume.ignore = true (bool) + volume.is_disc = false (bool) + volume.is_mounted = false (bool) + volume.is_mounted_read_only = false (bool) + volume.is_partition = false (bool) + volume.label = '' (string) + volume.linux.is_device_mapper = true (bool) + volume.mount_point = '' (string) + volume.num_blocks = 0 (0x0) (int) + volume.size = 0 (0x0) (uint64) + volume.uuid = '' (string) + udi = '/org/freedesktop/Hal/devices/volume_uuid_f22f80d5_5f30_46c0_8a47_468d21ffd2fe' block.device = '/dev/sda9' (string) block.is_volume = true (bool) @@ -1595,6 +1626,7 @@ block.major = 8 (0x8) (int) block.minor = 1 (0x1) (int) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) + info.callouts.remove = {'hal-luks-remove'} (string list) info.capabilities = {'volume', 'block'} (string list) info.category = 'volume' (string) info.interfaces = {'org.freedesktop.Hal.Device.Volume.Crypto'} (string list) @@ -2336,6 +2368,6 @@ pci.vendor_id = 32902 (0x8086) (int) -Dumped 103 device(s) from the Global Device List. +Dumped 104 device(s) from the Global Device List. Same output with Archlinux --- hal1 2008-07-22 08:22:46.000000000 +0200 +++ hal2 2008-07-22 08:23:44.000000000 +0200 @@ -1,5 +1,5 @@ -Dumping 111 device(s) from the Global Device List: +Dumping 112 device(s) from the Global Device List: ------------------------------------------------- udi = '/org/freedesktop/Hal/devices/computer' info.addons = {'hald-addon-cpufreq', 'hald-addon-acpi'} (string list) @@ -1235,6 +1235,44 @@ storage.vendor = 'ATA' (string) volume.ignore = false (bool) +udi = '/org/freedesktop/Hal/devices/volume_uuid_f015eed7_dc60_4339_965c_a937056774ae' + block.device = '/dev/mapper/luks_crypto_7e68c41d-25fc-4f6b-8a68-de85b5a457a2' (string) + block.is_volume = true (bool) + block.major = 254 (0xfe) (int) + block.minor = 0 (0x0) (int) + block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) + info.capabilities = {'volume', 'block'} (string list) + info.category = 'volume' (string) + info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list) + info.parent = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) + info.product = 'Volume (reiserfs)' (string) + info.udi = '/org/freedesktop/Hal/devices/volume_uuid_f015eed7_dc60_4339_965c_a937056774ae' (string) + linux.hotplug_type = 3 (0x3) (int) + linux.sysfs_path = '/sys/block/dm-0' (string) + org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options'} (string list) + org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount'} (string list) + org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount'} (string list) + org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as'} (string list) + storage.model = '' (string) + volume.block_size = 512 (0x200) (int) + volume.crypto_luks.clear.backing_volume = '/org/freedesktop/Hal/devices/volume_uuid_7e68c41d_25fc_4f6b_8a68_de85b5a457a2' (string) + volume.fstype = 'reiserfs' (string) + volume.fsusage = 'filesystem' (string) + volume.fsversion = '3.6' (string) + volume.ignore = false (bool) + volume.is_disc = false (bool) + volume.is_mounted = false (bool) + volume.is_mounted_read_only = false (bool) + volume.is_partition = false (bool) + volume.label = '' (string) + volume.linux.is_device_mapper = true (bool) + volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec'} (string list) + volume.mount_point = '' (string) + volume.num_blocks = 6151800 (0x5dde78) (int) + volume.size = 3149721600 (0xbbbcf000) (uint64) + volume.unmount.valid_options = {'lazy'} (string list) + volume.uuid = 'f015eed7-dc60-4339-965c-a937056774ae' (string) + udi = '/org/freedesktop/Hal/devices/volume_uuid_f22f80d5_5f30_46c0_8a47_468d21ffd2fe' block.device = '/dev/sda9' (string) block.is_volume = true (bool) @@ -1557,6 +1595,7 @@ block.major = 8 (0x8) (int) block.minor = 1 (0x1) (int) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) + info.callouts.remove = {'hal-luks-remove'} (string list) info.capabilities = {'volume', 'block'} (string list) info.category = 'volume' (string) info.interfaces = {'org.freedesktop.Hal.Device.Volume.Crypto'} (string list) @@ -2377,6 +2416,6 @@ volume.ignore = false (bool) -Dumped 111 device(s) from the Global Device List. +Dumped 112 device(s) from the Global Device List. ------------------------------------------------ At least the error-message is now clear, as the respective fields are really missing under openSUSE 11.0 With other, none-encrypted partitions anything is ok. udi = '/org/freedesktop/Hal/devices/volume_uuid_80fbbfe2_ca26_4e47_8b03_7de72c3a358f' block.device = '/dev/sda2' (string) block.is_volume = true (bool) block.major = 8 (0x8) (int) block.minor = 2 (0x2) (int) block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) info.capabilities = {'volume', 'block'} (string list) info.category = 'volume' (string) info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list) info.parent = '/org/freedesktop/Hal/devices/storage_serial_SATA_ST9100823A_3LG00M1F' (string) info.product = 'Volume (ext3)' (string) info.udi = '/org/freedesktop/Hal/devices/volume_uuid_80fbbfe2_ca26_4e47_8b03_7de72c3a358f' (string) linux.hotplug_type = 3 (0x3) (int) linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sda/sda2' (string) org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list) org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list) org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list) org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list) storage.model = '' (string) volume.block_size = 512 (0x200) (int) volume.fstype = 'ext3' (string) volume.fsusage = 'filesystem' (string) volume.fsversion = '1.0' (string) volume.ignore = true (bool) volume.is_disc = false (bool) volume.is_mounted = true (bool) volume.is_mounted_read_only = false (bool) volume.is_partition = true (bool) volume.label = '' (string) volume.linux.is_device_mapper = false (bool) volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr', 'data='} (string list) volume.mount_point = '/VM' (string) volume.num_blocks = 41945715 (0x2800a73) (int) volume.partition.flags = {} (string list) volume.partition.label = '' (string) volume.partition.media_size = 100030242816 (0x174a446000) (uint64) volume.partition.number = 2 (0x2) (int) volume.partition.scheme = 'mbr' (string) volume.partition.start = 3150282240 (0xbbc57e00) (uint64) volume.partition.type = '0x83' (string) volume.size = 21476206080 (0x50014e600) (uint64) volume.unmount.valid_options = {'lazy'} (string list) volume.uuid = '80fbbfe2-ca26-4e47-8b03-7de72c3a358f' (string) The full output of lshal under openSUSE 11.0 after unlocking the device is attached. I also tried to (re)build hal from git using the official src.rpm of 11.0 (i.e. its spec and patches) but the problem remained the same. Best wishes, Axel Koellhofer (Hopefully this isn't the second submission, on first try I got an error-message to validate my email-address, although I aready did) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c1
--- Comment #1 from Axel Köllhofer
https://bugzilla.novell.com/show_bug.cgi?id=411447
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c2
Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c3
--- Comment #3 from Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c4
--- Comment #4 from Axel Köllhofer
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c5
--- Comment #5 from Axel Köllhofer
1) please don't use such long summary
Agreed.
2) attach full output of lshal (as attachment) if this happen.
Sorry, I'm not completely sure what you mean with "if this happen"? The attachment of lshal in the first post was done after successfully unlocking the device and before the hal-error. Anyway, I attached lshal again after unlocking an trying to mount the device. I also created an output of lshal after unlocking und before mounting the device, which is absolutely identical (just to be sure).
Btw. which HAL and udev version is used by ArchLinux
Arch: pacman -Q hal udev hal 0.5.11-1 udev 119-1 openSUSE: rpm -q udev hal udev-120-13.1 hal-0.5.11-8.1 I also ran 'lshal -m' and 'udevadm monitor', here are the outputs: lshal -m Start monitoring devicelist: ------------------------------------------------- 19:21:07.742: volume_part_1_size_0 added 19:21:07.834: volume_part_1_size_0 removed 19:21:07.849: volume_part_1_size_0 added 19:21:07.914: volume_uuid_7e68c41d_25fc_4f6b_8a68_de85b5a457a2 property info.callouts.remove = {'hal-luks-remove', 'hal-luks-remove', 'hal-luks-remove', 'hal-luks-remove'} 19:21:20.308: volume_part_1_size_0 removed 19:21:20.320: volume_uuid_7e68c41d_25fc_4f6b_8a68_de85b5a457a2 property info.callouts.remove = {'hal-luks-remove', 'hal-luks-remove', 'hal-luks-remove'} udevadm monitor udevmonitor will print the received events for: UDEV the event which udev sends out after rule processing UEVENT the kernel uevent UEVENT[1216833667.731079] add /devices/virtual/block/dm-0 (block) UDEV [1216833667.758336] add /devices/virtual/block/dm-0 (block) UEVENT[1216833667.758937] change /devices/virtual/block/dm-0 (block) UDEV [1216833667.774447] change /devices/virtual/block/dm-0 (block) UEVENT[1216833667.831409] remove /devices/virtual/block/dm-0 (block) UDEV [1216833667.837667] remove /devices/virtual/block/dm-0 (block) UEVENT[1216833667.838076] add /devices/virtual/block/dm-0 (block) UDEV [1216833667.856594] add /devices/virtual/block/dm-0 (block) UEVENT[1216833667.857215] change /devices/virtual/block/dm-0 (block) UDEV [1216833667.872217] change /devices/virtual/block/dm-0 (block) UEVENT[1216833680.306662] remove /devices/virtual/block/dm-0 (block) UDEV [1216833680.316238] remove /devices/virtual/block/dm-0 (block) The outputs are generated by unlocking the device, trying to mount and unlocking it. For a full lshal-output, see attachment. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c6
Axel Köllhofer
https://bugzilla.novell.com/show_bug.cgi?id=411447
Axel Köllhofer
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c7
--- Comment #7 from Axel Köllhofer
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c8
Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c9
--- Comment #9 from Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c10
Axel Köllhofer
1) What is kcryptomedia/kcrypt ?
An embarassing "double-typo" of me, in fact the real names are "kryptomedia" (part of kdebase3-SuSE) and "krypt". http://www.kde-apps.org/content/show.php/Krypt?content=80641 As the latter works together with kwallet and the LUKS-passphrase is 64 charakters long, this little tool is very convenient, so I built a little RPM-package for openSUSE 11.0.
2) Mounting of internal hardisk partitions via HAL is forbidden in general.
Is this a special policy introduced to hal in openSUSE? If so, the whole thing of course is not worth reporting it as a bug (sorry then), but as it worked under another distribution with the same hal-version, it looked like one for me at first glance. I also tried to remove the respective entry of the internal partiton completely from /etc/fstab in order to circumvent potential problems and to make it "look like it is not internal" (OK, perhaps not too clever), unfortunately with no effect. Mounting of "real" external devices also sometimes shows the same problem (see my last post), so at least there seems to be some other problem. For now, I decrypt the internal partition with one of the tools mentioned above and mount it by hand, which is at least a reasonable workaround.
3) looks as if you fstype wasn't detected. What prints:
/lib/udev/vol_id /dev/dm-0 (replace dm-0 with the related dm device)
/lib/udev/vol_id /dev/dm-0 ID_FS_USAGE=filesystem ID_FS_TYPE=reiserfs ID_FS_VERSION=3.6 ID_FS_UUID=1a3dedab-0ccc-4736-84fe-eed1d7aea8de ID_FS_UUID_ENC=1a3dedab-0ccc-4736-84fe-eed1d7aea8de ID_FS_LABEL= ID_FS_LABEL_ENC= ID_FS_LABEL_SAFE= After decrypting and unmounted, filesystem is reiserfs. (In reply to comment #9 from Danny Kukawka)
Ping
Sorry for the late reply, I wasn't able to check my Email for quite some time. Greetings, Axel Köllhofer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c11
Danny Kukawka
(In reply to comment #8 from Danny Kukawka) [...]
2) Mounting of internal hardisk partitions via HAL is forbidden in general.
Is this a special policy introduced to hal in openSUSE? If so, the whole thing of course is not worth reporting it as a bug (sorry then), but as it worked under another distribution with the same hal-version, it looked like one for me at first glance.
It's policy we have since HAL was introduced into SUSE products ages ago. But this will change with openSUSE 11.1.
I also tried to remove the respective entry of the internal partiton completely from /etc/fstab in order to circumvent potential problems and to make it "look like it is not internal" (OK, perhaps not too clever), unfortunately with no effect.
fstab is not the criteria to mark a partition as internal.
3) looks as if you fstype wasn't detected. What prints:
/lib/udev/vol_id /dev/dm-0 (replace dm-0 with the related dm device)
/lib/udev/vol_id /dev/dm-0 ID_FS_USAGE=filesystem ID_FS_TYPE=reiserfs ID_FS_VERSION=3.6 ID_FS_UUID=1a3dedab-0ccc-4736-84fe-eed1d7aea8de ID_FS_UUID_ENC=1a3dedab-0ccc-4736-84fe-eed1d7aea8de ID_FS_LABEL= ID_FS_LABEL_ENC= ID_FS_LABEL_SAFE=
After decrypting and unmounted, filesystem is reiserfs.
But as it looks not in HAL. Please follow http://en.opensuse.org/HAL#HAL_crashes_or_hangs, repdroduce the problem and attach the log to this bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=411447
User AxelKoellhofer@web.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c12
Axel Köllhofer
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c13
Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=411447
User kasievers@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c14
Kay Sievers
https://bugzilla.novell.com/show_bug.cgi?id=411447
Danny Kukawka
https://bugzilla.novell.com/show_bug.cgi?id=411447
User dkukawka@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=411447#c15
Danny Kukawka
participants (1)
-
bugzilla_noreply@novell.com