External (USB) HDDs are not automounted in 13.10

Bug #1263013 reported by David Nemeskey
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
udisks (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I don't know if this is a bug in Ubuntu or Unity. If I plug in my external HDD, its partitions do not appear on the Launcher, neither is it automounted in Nautilus. Regular (root) mount works. I have just installed 13.10 yesterday; the drive worked with 12.04.

OS: Ubuntu 13.10
HDD: Western Digital My Book 3TB, with two partitions:
                - primary NTFS, 2 TiB
                - logical Ext4, the rest

lsusb:
Bus 002 Device 002: ID 1058:1170 Western Digital Technologies, Inc.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

sudo blkid:
/dev/sda1: UUID="31e9a086-b20b-4138-b706-b50d614deb6d" TYPE="ext4"
/dev/sda5: UUID="daa0921d-6aca-4a90-82eb-52cbcff016e2" TYPE="ext4"
/dev/sda6: UUID="1578eeb8-3460-4f6c-9597-b55ae6323b75" TYPE="swap"
/dev/sdb1: LABEL="My Book NTFS" UUID="14EC619E4A08C7FC" TYPE="ntfs"
/dev/sdb2: LABEL="My Book Ext4" UUID="77ec8e6e-2634-4be2-92ec-ecaa9ccc20a5" TYPE="ext4"

sudo fdisk -l /dev/sdb:
Note: sector size is 4096 (not 512)

Disk /dev/sdb: 3000.6 GB, 3000558944256 bytes
255 heads, 63 sectors/track, 45599 cylinders, total 732558336 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00028375

   Device Boot Start End Blocks Id System
/dev/sdb1 63 562965794 2251862928 7 HPFS/NTFS/exFAT
/dev/sdb2 562965795 732547934 678328560 83 Linux

Revision history for this message
David Nemeskey (nemeskeyd) wrote :

I forgot to mention: regular USB sticks DO appear on the Launcher.

no longer affects: unity
Revision history for this message
David Nemeskey (nemeskeyd) wrote :

I don't know what package I should report this against; I hope util-linux is the one.

affects: ubuntu → util-linux (Ubuntu)
Revision history for this message
Phillip Susi (psusi) wrote :

Please provide the output of udisks --dump

affects: util-linux (Ubuntu) → udisks (Ubuntu)
Revision history for this message
David Nemeskey (nemeskeyd) wrote :

There you are.

Revision history for this message
Phillip Susi (psusi) wrote :

Can you try running udisks --mount /dev/sdb2?

Revision history for this message
David Nemeskey (nemeskeyd) wrote :

When I first execute the command, it doesn't return for a time. Then:

Mounted /org/freedesktop/UDisks/devices/sdb2 at /media/disk

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in udisks (Ubuntu):
status: New → Confirmed
Revision history for this message
Giovanni Lagorio (giovanni-lagorio) wrote :

I think this bug is specific of MyBook drives with ID 1058:1170 because I have two MyBook drives (one 1140, the other 1170) and only the 1170 one gives problems. That is, the 1170 is not automounted by the system, while the other MyBook drive, and all USB pendrives I have tested, work as expected.

Moreover, I've noticed that the 1170 gets listed by lsusb and blkid, but does not get listed inside /dev/disk/by-uuid/ and its partition is not listed in /dev/disk/by-id either.

My data:
uname -a
Linux sheldon 3.11.0-15-generic #23-Ubuntu SMP Mon Dec 9 18:17:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

lsusb|grep Western
Bus 010 Device 002: ID 1058:1140 Western Digital Technologies, Inc. My Book Essential USB3.0
Bus 010 Device 003: ID 1058:1170 Western Digital Technologies, Inc.

sudo blkid|grep sd[cd]
/dev/sdc2: LABEL="A" UUID="EE46C39E46C365C5" TYPE="ntfs"
/dev/sdd1: LABEL="B" UUID="180EC18A0EC1617C" TYPE="ntfs"

ls -l /dev/disk/by-id/ | grep sd[cd]
lrwxrwxrwx 1 root root 9 gen 6 12:19 ata-WDC_WD20EARX-00PASB0_WD-WCAZAL788234 -> ../../sdd
lrwxrwxrwx 1 root root 9 gen 6 12:18 usb-WD_My_Book_1140_574D43315430313933393934-0:0 -> ../../sdc
lrwxrwxrwx 1 root root 10 gen 6 12:18 usb-WD_My_Book_1140_574D43315430313933393934-0:0-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 10 gen 6 12:18 usb-WD_My_Book_1140_574D43315430313933393934-0:0-part2 -> ../../sdc2
lrwxrwxrwx 1 root root 9 gen 6 12:19 wwn-0x50014ee208624d98 -> ../../sdd

ls -l /dev/disk/by-uuid/ | grep sd[cd]
lrwxrwxrwx 1 root root 10 gen 6 12:18 EE46C39E46C365C5 -> ../../sdc2

Note that /dev/sdd1, the partition with UUID="180...", does not appear in neither listings.
Anyway, I can manually mount it (with sudo mount...) and it appears to work fine.

udisks --mount /dev/sdd1
Mounted /org/freedesktop/UDisks/devices/sdd1 at /media/disk

Revision history for this message
Phillip Susi (psusi) wrote :

Can you see what new messages show up in dmesg when you plug in this drive?

Revision history for this message
Giovanni Lagorio (giovanni-lagorio) wrote :

Sure; here they are:

[30614.769308] usb 10-1: new SuperSpeed USB device number 8 using xhci_hcd
[30614.791505] usb 10-1: New USB device found, idVendor=1058, idProduct=1170
[30614.791510] usb 10-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[30614.791514] usb 10-1: Product: My Book 1170
[30614.791516] usb 10-1: Manufacturer: Western Digital
[30614.791519] usb 10-1: SerialNumber: 5743415A414C373838323334
[30614.793672] usb-storage 10-1:1.0: USB Mass Storage device detected
[30614.794029] scsi25 : usb-storage 10-1:1.0
[30615.793736] scsi 25:0:0:0: Direct-Access WD My Book 1170 1059 PQ: 0 ANSI: 6
[30615.794073] scsi 25:0:0:1: Enclosure WD SES Device 1059 PQ: 0 ANSI: 6
[30615.794403] sd 25:0:0:0: Attached scsi generic sg4 type 0
[30615.794551] ses 25:0:0:1: Attached Enclosure device
[30615.794660] ses 25:0:0:1: Attached scsi generic sg5 type 13
[30615.796505] ses 25:0:0:1: Failed to get diagnostic page 0x8000002
[30615.796512] ses 25:0:0:1: Failed to bind enclosure -19
[30615.798323] sd 25:0:0:0: [sdc] Spinning up disk...
[30616.800155] ............ready
[30627.988101] sd 25:0:0:0: [sdc] 3906963456 512-byte logical blocks: (2.00 TB/1.81 TiB)
[30627.988842] sd 25:0:0:0: [sdc] Write Protect is off
[30627.988846] sd 25:0:0:0: [sdc] Mode Sense: 53 00 10 08
[30627.989671] sd 25:0:0:0: [sdc] No Caching mode page found
[30627.989676] sd 25:0:0:0: [sdc] Assuming drive cache: write through
[30627.991514] sd 25:0:0:0: [sdc] No Caching mode page found
[30627.991519] sd 25:0:0:0: [sdc] Assuming drive cache: write through
[30628.149113] sdc: sdc1
[30628.150933] sd 25:0:0:0: [sdc] No Caching mode page found
[30628.150937] sd 25:0:0:0: [sdc] Assuming drive cache: write through
[30628.150941] sd 25:0:0:0: [sdc] Attached SCSI disk
[30658.629523] usb 10-1: reset SuperSpeed USB device number 8 using xhci_hcd
[30658.648493] xhci_hcd 0000:02:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8801b2181780
[30658.648510] xhci_hcd 0000:02:00.0: xHCI xhci_drop_endpoint called with disabled ep ffff8801b21817c0

Revision history for this message
Phillip Susi (psusi) wrote :

Hrm... that looks good. Can you run udisksctl monitor while you plug in the drive?

Revision history for this message
Giovanni Lagorio (giovanni-lagorio) wrote :
Download full text (4.0 KiB)

Of course, the output is the following:

Monitoring the udisks daemon. Press Ctrl+C to exit.
16:57:10.812: The udisks-daemon is running (name-owner :1.72).
16:57:34.853: Added /org/freedesktop/UDisks2/drives/WDC_WD20EARX_00PASB0_WD_WCAZAL788234
  org.freedesktop.UDisks2.Drive:
    CanPowerOff: true
    Configuration: {}
    ConnectionBus: usb
    Ejectable: false
    Id: WDC-WD20EARX-00PASB0-WD-WCAZAL788234
    Media:
    MediaAvailable: true
    MediaChangeDetected: true
    MediaCompatibility:
    MediaRemovable: false
    Model: WDC WD20EARX-00PASB0
    Optical: false
    OpticalBlank: false
    OpticalNumAudioTracks: 0
    OpticalNumDataTracks: 0
    OpticalNumSessions: 0
    OpticalNumTracks: 0
    Removable: true
    Revision: 51.0AB51
    RotationRate: -1
    Seat: seat0
    Serial: WD-WCAZAL788234
    SiblingId: /sys/devices/pci0000:00/0000:00:02.0/0000:02:00.0/usb10/10-1/10-1:1.0
    Size: 2000365289472
    SortKey: 01hotplug/1389023854850718
    TimeDetected: 1389023854850718
    TimeMediaDetected: 1389023854850718
    Vendor:
    WWN: 0x50014ee208624d98
  org.freedesktop.UDisks2.Drive.Ata:
    AamEnabled: false
    AamSupported: false
    AamVendorRecommendedValue: 0
    ApmEnabled: false
    ApmSupported: false
    PmEnabled: false
    PmSupported: false
    SecurityEnhancedEraseUnitMinutes: 0
    SecurityEraseUnitMinutes: 0
    SecurityFrozen: false
    SmartEnabled: false
    SmartFailing: false
    SmartNumAttributesFailedInThePast: -1
    SmartNumAttributesFailing: -1
    SmartNumBadSectors: 1
    SmartPowerOnSeconds: 0
    SmartSelftestPercentRemaining: -1
    SmartSelftestStatus:
    SmartSupported: false
    SmartTemperature: 0.0
    SmartUpdated: 0
    WriteCacheEnabled: false
    WriteCacheSupported: false
16:57:34.854: Added /org/freedesktop/UDisks2/block_devices/sdc
  org.freedesktop.UDisks2.Block:
    Configuration: []
    CryptoBackingDevice: '/'
    Device: /dev/sdc
    DeviceNumber: 2080
    Drive: '/org/freedesktop/UDisks2/drives/WDC_WD20EARX_00PASB0_WD_WCAZAL788234'
    HintAuto: true
    HintIconName:
    HintIgnore: ...

Read more...

Revision history for this message
clel (clel) wrote :

Some info on this, I guess it is the same bug: http://www.spinics.net/lists/linux-scsi/msg71552.html

Revision history for this message
Phillip Susi (psusi) wrote :

Wait.. what does sudo blkid -p /dev/sdc and mdadm -E /dev/sdc show?

Revision history for this message
Giovanni Lagorio (giovanni-lagorio) wrote :

sudo blkid -p /dev/sdc
/dev/sdc: PTTYPE="dos"

sudo mdadm -E /dev/sdc
/dev/sdc:
   MBR Magic : aa55
Partition[0] : 3906961408 sectors at 2048 (type 07)

Revision history for this message
clel (clel) wrote :

sudo blkid -p /dev/sdc
/dev/sdc: PTTYPE="gpt"

sudo mdadm -E /dev/sdc
mdadm: No md superblock detected on /dev/sdc.

I reformatted the disk using gpt, but the problems occurred before as well. Sometimes the device is mounted after about 30 seconds. It shows up in Nautilus, but I cannot access it, after a while it is either mounted or disappears.

I already tried it with Xubuntu on a Live System and on my Netbook to make sure it is not hardware specific. Everywhere the same problem. I guess it is the bug, I linked to.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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