Issue #8 resolved

Not mounting an external HD.

Anonymous created an issue

Hi Byron. Firstly, thanks a lot for your piece of software. I think it's one of the best solutions around for auto-mounting. I find a strange behaviour though: - I have an external HD, formatted with HFSplus with my MacBook pro that I use with my iBook G4. - UDiskie will mount my other devices, but not this disk. Here's the udisks --dump output: {{{ ======================================================================== Showing information for /org/freedesktop/UDisks/devices/hda native-path: /sys/devices/pci0002:20/0002:20:0d.0/ide0/0.0/block/hda device: 3:0 device-file: /dev/hda presentation: /dev/hda by-path: /dev/disk/by-path/pci-0002:20:0d.0 detected at: Mon 22 Nov 2010 20:08:57 CET system internal: 1 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:08:57 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 30005821440 block size: 512 job underway: no usage:
type:
version:
uuid:
label:
partition table: scheme: apm count: 4 drive: vendor:
model:
revision:
serial:
WWN:
detachable: 0 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media:
compat:
interface: (unknown) if speed: (unknown) ATA SMART: not available

======================================================================== Showing information for /org/freedesktop/UDisks/devices/hda1 native-path: /sys/devices/pci0002:20/0002:20:0d.0/ide0/0.0/block/hda/hda1 device: 3:1 device-file: /dev/hda1 presentation: /dev/hda1 by-path: /dev/disk/by-path/pci-0002:20:0d.0-part1 detected at: Mon 22 Nov 2010 20:08:57 CET system internal: 1 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:08:57 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 32256 block size: 512 job underway: no usage:
type:
version:
uuid:
label:
partition: part of: /org/freedesktop/UDisks/devices/hda scheme: apm number: 1 type: Apple_partition_map flags: allocated allow_read allow_write offset: 512 alignment offset: 0 size: 32256 label: Apple uuid:

======================================================================== Showing information for /org/freedesktop/UDisks/devices/hda2 native-path: /sys/devices/pci0002:20/0002:20:0d.0/ide0/0.0/block/hda/hda2 device: 3:2 device-file: /dev/hda2 presentation: /dev/hda2 by-path: /dev/disk/by-path/pci-0002:20:0d.0-part2 detected at: Mon 22 Nov 2010 20:08:57 CET system internal: 1 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:08:57 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 1 presentation nopolicy: 0 presentation name:
presentation icon:
size: 819200 block size: 512 job underway: no usage: filesystem type: hfs version:
uuid:
label: bootstrap partition: part of: /org/freedesktop/UDisks/devices/hda scheme: apm number: 2 type: Apple_Bootstrap flags: allocated allow_read allow_write offset: 32768 alignment offset: 0 size: 819200 label: bootstrap uuid:

======================================================================== Showing information for /org/freedesktop/UDisks/devices/hda3 native-path: /sys/devices/pci0002:20/0002:20:0d.0/ide0/0.0/block/hda/hda3 device: 3:3 device-file: /dev/hda3 presentation: /dev/hda3 by-id: /dev/disk/by-uuid/820b369e-2836-4b7d-83e4-d6802ff54a73 by-path: /dev/disk/by-path/pci-0002:20:0d.0-part3 detected at: Mon 22 Nov 2010 20:08:57 CET system internal: 1 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:08:57 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 1073741824 block size: 512 job underway: no usage: other type: swap version: 2 uuid: 820b369e-2836-4b7d-83e4-d6802ff54a73 label:
partition: part of: /org/freedesktop/UDisks/devices/hda scheme: apm number: 3 type: Apple_UNIX_SVR2 flags: allocated allow_read allow_write offset: 851968 alignment offset: 0 size: 1073741824 label: swap uuid:

======================================================================== Showing information for /org/freedesktop/UDisks/devices/hda4 native-path: /sys/devices/pci0002:20/0002:20:0d.0/ide0/0.0/block/hda/hda4 device: 3:4 device-file: /dev/hda4 presentation: /dev/hda4 by-id: /dev/disk/by-uuid/07e4eac6-180c-4b97-a5b2-66a9e2c43ea7 by-path: /dev/disk/by-path/pci-0002:20:0d.0-part4 detected at: Mon 22 Nov 2010 20:08:57 CET system internal: 1 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:08:57 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: / mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 28931227648 block size: 512 job underway: no usage: filesystem type: ext3 version: 1.0 uuid: 07e4eac6-180c-4b97-a5b2-66a9e2c43ea7 label:
partition: part of: /org/freedesktop/UDisks/devices/hda scheme: apm number: 4 type: Apple_UNIX_SVR2 flags: allocated allow_read allow_write offset: 1074593792 alignment offset: 0 size: 28931227648 label: root uuid:

======================================================================== Showing information for /org/freedesktop/UDisks/devices/hdc native-path: /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00020000:ata-3/ide1/1.0/block/hdc device: 22:0 device-file: /dev/hdc presentation: /dev/hdc by-path: /dev/disk/by-path/pci-0001:10:17.0 detected at: Mon 22 Nov 2010 20:08:57 CET system internal: 0 removable: 1 has media: 0 detects change: 1 detection by polling: 1 detection inhibitable: 1 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 0 block size: 0 job underway: no usage:
type:
version:
uuid:
label:
drive: vendor:
model:
revision:
serial:
WWN:
detachable: 0 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 1 adapter: Unknown ports: similar devices: media:
compat: optical_cd optical_cd_r optical_cd_rw optical_dvd optical_mrw optical_mrw_w interface: (unknown) if speed: (unknown) ATA SMART: not available

======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda native-path: /sys/devices/pci0001:10/0001:10:1b.2/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sda device: 8:0 device-file: /dev/sda presentation: /dev/sda by-id: /dev/disk/by-id/usb-Samsung_STORY_Station_0000002AE09310500AC9-0:0 by-path: /dev/disk/by-path/pci-0001:10:1b.2-usb-0:2:1.0-scsi-0:0:0:0 detected at: Mon 22 Nov 2010 20:12:59 CET system internal: 0 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:12:59 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 1500301910016 block size: 512 job underway: no usage:
type:
version:
uuid:
label:
partition table: scheme: mbr count: 1 drive: vendor: Samsung model: STORY Station revision: 0000 serial: 0000002AE09310500AC9 WWN:
detachable: 1 can spindown: 1 rotational media: Yes, unknown rate write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media:
compat:
interface: usb if speed: 480000000 bits/s ATA SMART: Updated at Mon 22 Nov 2010 20:12:59 CET overall assessment: UNKNOWN =============================================================================== Attribute Current|Worst|Threshold Status Value Type Updates =============================================================================== raw-read-error-rate 100|100| 51 good 0 Pre-fail Online spin-up-time 70| 70| 11 good 9.7 secs Pre-fail Online start-stop-count 99| 99| 0 n/a 1004 Old-age Online reallocated-sector-count 100|100| 10 good 0 sectors Pre-fail Online seek-error-rate 253|253| 51 good 0 Pre-fail Online seek-time-performance 100|100| 15 good 0 Pre-fail Offline power-on-hours 100|100| 0 n/a 99.0 days Old-age Online spin-retry-count 100|100| 51 good 0 Pre-fail Online calibration-retry-count 100|100| 0 n/a 0 Old-age Online power-cycle-count 100|100| 0 n/a 101 Old-age Online read-soft-error-rate 100|100| 0 n/a 0 Old-age Online attribute-183 100|100| 0 n/a 0 Old-age Online attribute-184 100|100| 0 n/a 0 Pre-fail Online reported-uncorrect 100|100| 0 n/a 0 sectors Old-age Online attribute-188 100|100| 0 n/a 0 Old-age Online airflow-temperature-celsius 76| 73| 0 n/a 24C / 75.2F Old-age Online temperature-celsius-2 71| 68| 0 n/a 29C / 84.2F Old-age Online hardware-ecc-recovered 100|100| 0 n/a 769451 Old-age Online reallocated-event-count 100|100| 0 n/a 0 Old-age Online current-pending-sector 100|100| 0 n/a 0 sectors Old-age Online offline-uncorrectable 100|100| 0 n/a 0 sectors Old-age Offline udma-crc-error-count 100|100| 0 n/a 0 Old-age Online multi-zone-error-rate 100|100| 0 n/a 0 Old-age Online soft-read-error-rate 253|253| 0 n/a 0 Old-age Online

======================================================================== Showing information for /org/freedesktop/UDisks/devices/sda1 native-path: /sys/devices/pci0001:10/0001:10:1b.2/usb1/1-2/1-2:1.0/host6/target6:0:0/6:0:0:0/block/sda/sda1 device: 8:1 device-file: /dev/sda1 presentation: /dev/sda1 by-id: /dev/disk/by-id/usb-Samsung_STORY_Station_0000002AE09310500AC9-0:0-part1 by-id: /dev/disk/by-uuid/47aa6c11-2516-322e-8d84-15731eaba51a by-path: /dev/disk/by-path/pci-0001:10:1b.2-usb-0:2:1.0-scsi-0:0:0:0-part1 detected at: Mon 22 Nov 2010 20:12:59 CET system internal: 0 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:12:59 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 1500301877760 block size: 512 job underway: no usage: filesystem type: hfsplus version:
uuid: 47aa6c11-2516-322e-8d84-15731eaba51a label: Shadaloo partition: part of: /org/freedesktop/UDisks/devices/sda scheme: mbr number: 1 type: 0xaf flags:
offset: 32256 alignment offset: 0 size: 1500301877760 label:
uuid:

======================================================================== Showing information for /org/freedesktop/UDisks/devices/sdb native-path: /sys/devices/pci0001:10/0001:10:1b.2/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb device: 8:16 device-file: /dev/sdb presentation: /dev/sdb by-id: /dev/disk/by-id/usb-Multi_Flash_Reader_058F091111B-0:0 by-path: /dev/disk/by-path/pci-0001:10:1b.2-usb-0:1.2:1.0-scsi-0:0:0:0 detected at: Mon 22 Nov 2010 20:20:24 CET system internal: 0 removable: 1 has media: 1 (detected at Mon 22 Nov 2010 20:20:24 CET) detects change: 1 detection by polling: 1 detection inhibitable: 1 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths:
mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 4075290624 block size: 512 job underway: no usage:
type:
version:
uuid:
label:
partition table: scheme: mbr count: 1 drive: vendor: Multi model: Flash Reader revision: 1.00 serial: 058F091111B WWN:
detachable: 1 can spindown: 0 rotational media: Yes, unknown rate write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media:
compat:
interface: usb if speed: 480000000 bits/s ATA SMART: not available

======================================================================== Showing information for /org/freedesktop/UDisks/devices/sdb1 native-path: /sys/devices/pci0001:10/0001:10:1b.2/usb1/1-1/1-1.2/1-1.2:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sdb1 device: 8:17 device-file: /dev/sdb1 presentation: /dev/sdb1 by-id: /dev/disk/by-id/usb-Multi_Flash_Reader_058F091111B-0:0-part1 by-path: /dev/disk/by-path/pci-0001:10:1b.2-usb-0:1.2:1.0-scsi-0:0:0:0-part1 detected at: Mon 22 Nov 2010 20:20:24 CET system internal: 0 removable: 0 has media: 1 (detected at Mon 22 Nov 2010 20:20:24 CET) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /media/EOS_DIGITAL mounted by uid: 501 presentation hide: 0 presentation nopolicy: 0 presentation name:
presentation icon:
size: 4071096320 block size: 512 job underway: no usage: filesystem type: vfat version: FAT32 uuid:
label: EOS_DIGITAL partition: part of: /org/freedesktop/UDisks/devices/sdb scheme: mbr number: 1 type: 0x0b flags: boot offset: 4194304 alignment offset: 0 size: 4071096320 label:
uuid:

========================================================================

}}}

As you can see, there's my camera's sd card mounted, but the external HD is not. They were plugged in at the same time. Cheers Enric < me(a)enric,me >

Comments (12)

  1. Byron Clark repo owner
    • changed status to open
    • changed version to 0.3.5
    • changed milestone to 0.3.6

    That missing removable flag is the problem. I'll have take a look at the other automounters and see how they handle the situation.

  2. Byron Clark repo owner

    After digging through the gnome-disk-utility code, it appears that the only thing they check is whether a device has the DevicePresentationHide property set to false and a mountable filesystem. From that point they exclude devices listed in fstab, devices with mount points listed in fstab, and cleartext LUKS devices.

    I'll work on converting to that algorithm.

  3. Anonymous

    Good. Keep up the good work Byron! As a workaround, i just turn False to True the device.isremovable function. That solves the problem.

  4. Anonymous

    udiskie seems to fail with my SD card for the same reason:

    Showing information for /org/freedesktop/UDisks/devices/mmcblk0 native-path: /sys/devices/pci0000:00/0000:00:1c.3/0000:07:00.1/mmc_host/mmc0/mmc0:b368/block/mmcblk0 device: 179:0 device-file: /dev/mmcblk0 presentation: /dev/mmcblk0 by-id: /dev/disk/by-id/mmc-SD_0xae1020d7 by-path: /dev/disk/by-path/pci-0000:07:00.1 detected at: Sat 15 Jan 2011 09:21:22 PM JST system internal: 0 removable: 0 has media: 1 (detected at Sat 15 Jan 2011 09:21:22 PM JST) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 0 mount paths: mounted by uid: 0 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 2028994560 block size: 512 job underway: no usage: type: version: uuid: label: partition table: scheme: mbr count: 1 drive: vendor: model: SD revision: 01/2009 serial: ae1020d7 WWN: detachable: 0 can spindown: 0 rotational media: No write-cache: unknown ejectable: 0 adapter: Unknown ports: similar devices: media: flash_sd compat: flash_sd interface: sdio if speed: (unknown) ATA SMART: not available

    Showing information for /org/freedesktop/UDisks/devices/mmcblk0p1 native-path: /sys/devices/pci0000:00/0000:00:1c.3/0000:07:00.1/mmc_host/mmc0/mmc0:b368/block/mmcblk0/mmcblk0p1 device: 179:1 device-file: /dev/mmcblk0p1 presentation: /dev/mmcblk0p1 by-id: /dev/disk/by-id/mmc-SD_0xae1020d7-part1 by-id: /dev/disk/by-uuid/FC30-3DA9 by-path: /dev/disk/by-path/pci-0000:07:00.1-part1 detected at: Sat 15 Jan 2011 09:21:22 PM JST system internal: 0 removable: 0 has media: 1 (detected at Sat 15 Jan 2011 09:21:22 PM JST) detects change: 0 detection by polling: 0 detection inhibitable: 0 detection inhibited: 0 is read only: 0 is mounted: 1 mount paths: /media/FC30-3DA9 mounted by uid: 1000 presentation hide: 0 presentation nopolicy: 0 presentation name: presentation icon: size: 2028866048 block size: 512 job underway: no usage: filesystem type: vfat version: FAT16 uuid: FC30-3DA9 label: partition: part of: /org/freedesktop/UDisks/devices/mmcblk0 scheme: mbr number: 1 type: 0x06 flags: offset: 128512 alignment offset: 0 size: 2028866048 label: uuid:

    What's udisks' definition of removable anyway? And why doesn't my SD card qualify? Mind, I've used udiskie succesfully with this same card about two months ago. Maybe something broke/changed in udisks recently?

    1. !
  5. Anonymous

    [Follow up on the previous comment] mmcblk0p1 shows as mounted above, but that's because I changed the last "return False" to "return True" in "def is_handleable(self):" in /usr/lib/python2.7/site-packages/udiskie/device.py as a temporary hack to get things working here.

  6. Anonymous

    Any news on this issue? It is pretty important, considered that most external HD drives are all affected by this bug.

  7. Anonymous

    You guys can just disable the 'is_removable' def on the udiskie source. I can provide a patch if needed.

  8. Log in to comment