Bug 488468 - Can't mount encrypted FS in 'Places->41GB Encrypted'
Can't mount encrypted FS in 'Places->41GB Encrypted'
Status: CLOSED WORKSFORME
Product: Fedora
Classification: Fedora
Component: DeviceKit-disks (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: David Zeuthen
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-04 09:32 EST by Tom London
Modified: 2013-03-05 22:58 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-03-04 14:34:14 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Screenshot of "device busy" popup (11.90 KB, image/png)
2009-03-04 09:32 EST, Tom London
no flags Details

  None (edit)
Description Tom London 2009-03-04 09:32:18 EST
Created attachment 334001 [details]
Screenshot of "device busy" popup

Description of problem:
After a fresh boot, if I try to mount an encrypted FS (/dev/sda2) by clicking on '41GB Encrypted' in Places, I get the usual passphrase prompt.

After entering the passphrase, I get an error popup (attached) saying "Unable to mount 41GB Encrypted" and "org.freedesktop.DeviceKit.Disks.Error.Busy: device is busy"   (attached)

I can mount the device using palimpsect, but the icon displayed on the desktop is "wrong".  Instead of one with a label of "41GB Encrypted" (or "extra", its label) it says "22GB Filesystem".

"22GB Filesystem" is /dev/sda1 (an NTFS filesystem).  It is not mounted....

Version-Release number of selected component (if applicable):
DeviceKit-disks-003-2.fc11.x86_64
gnome-disk-utility-0.2-1.fc11.x86_64

Some "stuff" requested in an earlier BZ:

[root@tlondon ~]# devkit-disks --enumerate
/devices/dm_0
/devices/dm_1
/devices/dm_2
/devices/dm_3
/devices/sda1
/devices/sda2
/devices/sda3
/devices/sda4
/devices/sda5
/devices/sr0
/devices/sda
[root@tlondon ~]# for i in 0 1 2 3; do echo /devices/dm_$i; devkit-disks --show-info /devices/dm_$i; done
/devices/dm_0
Showing information for /devices/dm_0
  native-path:             /sys/devices/virtual/block/dm-0
  device-file:             /dev/dm-0
    by-id:                 /dev/disk/by-id/dm-name-luks-cc25f1b4-d5be-4622-a5be-955e007c2356
  system internal:         1
  removable:               0
  has media:               1
    detects change:        0
    detection inhibitable: 0
    detection inhibited:   0
  is read only:            0
  is mounted:              0
  is busy:                 1
  mount path:              
  mounted by uid:          0
  presentation name:       
  presentation icon:       
  size:                    96399720960
  block size:              512
  job underway:            no
  usage:                   raid
  type:                    LVM2_member
  version:                 LVM2\x20001
  uuid:                    rUPfuD-5Hrp-VDf1-Glbp-MqnJ-SG0G-gWhDU4
  label:                   
  cleartext luks device:
    backed by:             /devices/sda5
    unlocked by:           uid 0
/devices/dm_1
Showing information for /devices/dm_1
  native-path:             /sys/devices/virtual/block/dm-1
  device-file:             /dev/dm-1
    by-id:                 /dev/disk/by-id/dm-name-VolGroup00-LogVol00
    by-id:                 /dev/disk/by-id/dm-uuid-LVM-vDVyxNhd8H34jAse6Hm1a16uMSnnCGtukSpoPKyieXp7SeiLTpKUiEKRpsqJpKsS
    by-id:                 /dev/disk/by-uuid/3791cb31-70ca-4b2f-bb5b-3a9cb4aa8279
  system internal:         0
  removable:               0
  has media:               1
    detects change:        0
    detection inhibitable: 0
    detection inhibited:   0
  is read only:            0
  is mounted:              1
  is busy:                 1
  mount path:              /
  mounted by uid:          0
  presentation name:       
  presentation icon:       
  size:                    92174024704
  block size:              512
  job underway:            no
  usage:                   filesystem
  type:                    ext3
  version:                 1.0
  uuid:                    3791cb31-70ca-4b2f-bb5b-3a9cb4aa8279
  label:                   F10-Snap2-x86_64
  drive:
    vendor:                
    model:                 
    revision:              
    serial:                
    ejectable:             0
    require eject:         0
    media:                 
      compat:             
    interface:     (unknown)
    if speed:              (unknown)
    S.M.A.R.T.:            not capable
/devices/dm_2
Showing information for /devices/dm_2
  native-path:             /sys/devices/virtual/block/dm-2
  device-file:             /dev/dm-2
    by-id:                 /dev/disk/by-id/dm-name-VolGroup00-LogVol01
    by-id:                 /dev/disk/by-id/dm-uuid-LVM-vDVyxNhd8H34jAse6Hm1a16uMSnnCGtuplU8fcBdFKq7Y4gYB1me1FLsVuRoQ25i
    by-id:                 /dev/disk/by-uuid/0a395632-46fd-4d7e-9bf7-82063d7f9876
  system internal:         0
  removable:               0
  has media:               1
    detects change:        0
    detection inhibitable: 0
    detection inhibited:   0
  is read only:            0
  is mounted:              0
  is busy:                 0
  mount path:              
  mounted by uid:          0
  presentation name:       
  presentation icon:       
  size:                    4160749568
  block size:              512
  job underway:            no
  usage:                   other
  type:                    swap
  version:                 2
  uuid:                    0a395632-46fd-4d7e-9bf7-82063d7f9876
  label:                   
  drive:
    vendor:                
    model:                 
    revision:              
    serial:                
    ejectable:             0
    require eject:         0
    media:                 
      compat:             
    interface:     (unknown)
    if speed:              (unknown)
    S.M.A.R.T.:            not capable
/devices/dm_3
Showing information for /devices/dm_3
  native-path:             /sys/devices/virtual/block/dm-3
  device-file:             /dev/dm-3
    by-id:                 /dev/disk/by-id/dm-name-devkit-disks-luks-uuid-49955702-1c8b-4f5b-9ab3-0ce4ee2873e9-uid500
    by-id:                 /dev/disk/by-uuid/90235c2d-8703-4517-b866-2032ef8a0409
  system internal:         1
  removable:               0
  has media:               1
    detects change:        0
    detection inhibitable: 0
    detection inhibited:   0
  is read only:            0
  is mounted:              1
  is busy:                 1
  mount path:              /media/extra
  mounted by uid:          500
  presentation name:       
  presentation icon:       
  size:                    41413756416
  block size:              512
  job underway:            no
  usage:                   filesystem
  type:                    ext3
  version:                 1.0
  uuid:                    90235c2d-8703-4517-b866-2032ef8a0409
  label:                   extra
  cleartext luks device:
    backed by:             /devices/sda2
    unlocked by:           uid 500
[root@tlondon ~]# ls -l /dev/dm-*
brw-rw----. 1 root disk 253, 0 2009-03-04 06:01 /dev/dm-0
brw-rw----. 1 root disk 253, 1 2009-03-04 06:01 /dev/dm-1
brw-rw----. 1 root disk 253, 2 2009-03-04 06:01 /dev/dm-2
brw-rw----. 1 root disk 253, 3 2009-03-04 06:03 /dev/dm-3
[root@tlondon ~]# ls -l /dev/mapper/*
crw-rw----. 1 root root  10, 63 2009-03-04 06:01 /dev/mapper/control
brw-rw----. 1 root disk 253,  3 2009-03-04 06:03 /dev/mapper/devkit-disks-luks-uuid-49955702-1c8b-4f5b-9ab3-0ce4ee2873e9-uid500
brw-rw----. 1 root disk 253,  0 2009-03-04 06:01 /dev/mapper/luks-cc25f1b4-d5be-4622-a5be-955e007c2356
brw-rw----. 1 root disk 253,  1 2009-03-04 06:01 /dev/mapper/VolGroup00-LogVol00
brw-rw----. 1 root disk 253,  2 2009-03-04 06:01 /dev/mapper/VolGroup00-LogVol01
[root@tlondon ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime,nodiratime,errors=continue,user_xattr,acl,data=ordered 0 0
/dev /dev tmpfs rw,mode=755 0 0
/proc /proc proc rw 0 0
/sys /sys sysfs rw 0 0
none /selinux selinuxfs rw 0 0
/proc/bus/usb /proc/bus/usb usbfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620,ptmxmode=000 0 0
/dev/sda3 /boot ext3 rw,noatime,nodiratime,errors=continue,user_xattr,acl,data=ordered 0 0
tmpfs /dev/shm tmpfs rw 0 0
tmpfs /tmp tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
gvfs-fuse-daemon /home/tbl/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user_id=500,group_id=500 0 0
/dev/dm-3 /media/extra ext3 rw,nosuid,nodev,errors=continue,data=ordered 0 0
[root@tlondon ~]# cat /etc/mtab
/dev/mapper/VolGroup00-LogVol00 / ext3 rw,noatime,nodiratime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda3 /boot ext3 rw,noatime,nodiratime 0 0
tmpfs /dev/shm tmpfs rw 0 0
tmpfs /tmp tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
gvfs-fuse-daemon /home/tbl/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=tbl 0 0
/dev/dm-3 /media/extra ext3 rw,nosuid,nodev,uhelper=devkit 0 0
[root@tlondon ~]# 


How reproducible:
Not sure yet....

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:
Comment 1 Tom London 2009-03-04 12:16:53 EST
Seems to work better with 

gnome-disk-utility-format-0.2-git20090304.1.fc11.x86_64.rpm
nautilus-gdu-0.2-git20090304.1.fc11.x86_64.rpm

from koji.

It now mounts properly, and the proper "icon name" is displayed. In my case, the icon is labelled "extra" (the label of the FS).

Unless something "breaks", I'll close this when it hits rawhide.....
Comment 2 David Zeuthen 2009-03-04 14:34:14 EST
Not sure that gnome-disk-utility-format or nautilus-gdu should make a difference, the packages to care about here are DeviceKit-disks, gnome-disk-utility. 

In the future when reporting bugs regarding wrong icons/names (e.g. in the Places menu and the file manager) on the desktop please include the output of 'gvfs-mount -li'. And probably file it against the gnome-disk-utility product.

FWIW, I just added a --dump option to devkit-disks(1). So when filing bugs against both gnome-disk-utility and DeviceKit-disks please include the output of 'devkit-disks --dump' (and also the contents of /proc/mounts if applicable). This option is available in the next rawhide update, here's the koji build

http://koji.fedoraproject.org/koji/taskinfo?taskID=1221360

if you need it before.

(Also, please put output longer than 20ish lines in attachments of type text/plain so it's easier to read the bug reports.)

OK. The devkit-disks output looks right so at least this bug is not a DeviceKit-disks bug. So I'm closing it for now. Please reopen it and move it to the gnome-disk-utility product if something looks wrong.

And, btw, thanks for testing this stuff.

Note You need to log in before you can comment on or make changes to this bug.