Forum
[PROBLEM] External drive only detected after boot - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Kodi (/forum-18.html)
+--- Thread: [PROBLEM] External drive only detected after boot (/thread-3020.html)



External drive only detected after boot - besgum - 5th Jun, 2015 06:17 AM

Hi xbian community, Im having problem with and old Maxtor 500gb external hard drive.
This drive is connected without a hub to the raspberry and it has its own 2amp power supply.

The disk works great, xbian automount it, when im not using it, it spins down and when I need it it wokes up perfectly.

The only problem I got, is that sometimes you need to reboot your pi, and when I do that, I can´t see the disk, not using fdisk -l or any other option. Is not a mount problem, is that the pi can´t get the disk is already connected. The only way to fix it is plug off/on the power supply of the disk, then the disk start working perfectly.

Hope you guys can help my with this.

This is my dmesg when I turn on the pi
Code:
[    1.508771] Indeed it is in host mode hprt0 = 00001101
[    1.681917] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.681944] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.682923] hub 1-1:1.0: USB hub found
[    1.683076] hub 1-1:1.0: 5 ports detected
[    1.956628] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.040867] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.040892] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.043790] smsc95xx v1.0.4
[    2.084416] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:de:09:93
[    2.157625] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.230620] usb 1-1.2: device descriptor read/64, error 18
[    2.404623] usb 1-1.2: device descriptor read/64, error 18
[    2.578618] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[    2.651637] usb 1-1.2: device descriptor read/64, error 18
[    2.825628] usb 1-1.2: device descriptor read/64, error 18
[    2.999619] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[    3.011032] usb 1-1.2: device descriptor read/8, error -61
[    3.123025] usb 1-1.2: device descriptor read/8, error -61
[    3.296633] usb 1-1.2: new high-speed USB device number 7 using dwc_otg
[    3.308019] usb 1-1.2: device descriptor read/8, error -61
[    3.420026] usb 1-1.2: device descriptor read/8, error -61
[    3.520639] usb 1-1-port2: unable to enumerate USB device
[    3.593628] usb 1-1.4: new high-speed USB device number 8 using dwc_otg
[    3.678077] usb 1-1.4: New USB device found, idVendor=1a40, idProduct=0101
[    3.678104] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.678120] usb 1-1.4: Product: USB 2.0 Hub
[    3.679117] hub 1-1.4:1.0: USB hub found
[    3.679284] hub 1-1.4:1.0: 4 ports detected
[    3.941632] usb 1-1.4.4: new high-speed USB device number 9 using dwc_otg
[    4.015703] usb 1-1.4.4: New USB device found, idVendor=1132, idProduct=4511
[    4.015732] usb 1-1.4.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.015748] usb 1-1.4.4: Product: IT-CEO USB Device
[    4.015762] usb 1-1.4.4: Manufacturer: IT-CEO
[    4.015775] usb 1-1.4.4: SerialNumber: 533257484D37515820202020
[    4.016801] usb-storage 1-1.4.4:1.0: USB Mass Storage device detected
[    4.017388] scsi host0: usb-storage 1-1.4.4:1.0
[    5.019386] scsi 0:0:0:0: Direct-Access     IT-CEO   USB2.0SATADevice 1.14 PQ: 0 ANSI: 4
[    5.021672] sd 0:0:0:0: [sda] 976773167 512-byte logical blocks: (500 GB/465 GiB)
[    5.022183] sd 0:0:0:0: [sda] Write Protect is off
[    5.022217] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    5.022715] sd 0:0:0:0: [sda] No Caching mode page found
[    5.022743] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.086590]  sda: sda1
[    5.089719] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.192331] BTRFS: device label xbian devid 1 transid 34548 /dev/root
[    6.196576] BTRFS info (device mmcblk0p2): enabling auto defrag
[    6.196637] BTRFS info (device mmcblk0p2): disk space caching is enabled
[    6.196650] BTRFS: has skinny extents
[    6.254147] BTRFS: detected SSD devices, enabling SSD mode
[    6.280597] VFS: Mounted root (btrfs filesystem) on device 0:12.
[    6.283863] devtmpfs: mounted
[    6.284418] Freeing unused kernel memory: 156K (c06a3000 - c06ca000)
[    6.284432] BFS CPU scheduler v0.460 by Con Kolivas.
[    6.941062] random: init urandom read with 114 bits of entropy available
[    7.594208] random: nonblocking pool is initialized
[   14.018155] BTRFS info (device mmcblk0p2): disk space caching is enabled
[   17.532320] init: xbian-failaccess main process (195) killed by TERM signal
[   18.509628] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   20.216388] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   23.165001] udevd[724]: starting version 175
[   24.889432] bcm2708_i2c_init_pinmode(1,2)
[   24.889542] bcm2708_i2c_init_pinmode(1,3)
[   24.890242] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[   25.587046] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[   25.588036] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[   27.506144] pcm512x 1-004d: Failed to reset device: -5
[   27.506203] pcm512x: probe of 1-004d failed with error -5
[   27.506535] pcm512x 1-004c: Failed to reset device: -5
[   27.506581] pcm512x: probe of 1-004c failed with error -5
[   28.528062] init: failsafe main process (71) killed by TERM signal
[   36.204039] EXT4-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
[   36.435325] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   71.351993] init: wait-for-state (xbmcxbmc-loaded) main process (1314) killed by TERM signal
[   80.170349] Bluetooth: Core ver 2.19
[   80.263240] NET: Registered protocol family 31
[   80.263615] Bluetooth: HCI device and connection manager initialized
[   80.263746] Bluetooth: HCI socket layer initialized
[   80.263782] Bluetooth: L2CAP socket layer initialized
[   80.263846] Bluetooth: SCO socket layer initialized
[   80.448949] Bluetooth: RFCOMM TTY layer initialized
[   80.449028] Bluetooth: RFCOMM socket layer initialized
[   80.449044] Bluetooth: RFCOMM ver 1.11
[   81.146702] init: xbmc-failed-start main process (551) killed by TERM signal
[   81.349717] init: wait-for-state (zram-swapxbmc-done) main process (1125) killed by TERM signal
[   84.515161] Adding 250876k swap on /dev/mmcblk0p3.  Priority:0 extents:1 across:250876k SSFS

And this is when I repluged the power supply of the Maxtor external disk
Code:
[  418.631232] usb 1-1.2: new high-speed USB device number 10 using dwc_otg
[  418.720670] usb 1-1.2: New USB device found, idVendor=0d49, idProduct=7300
[  418.720702] usb 1-1.2: New USB device strings: Mfr=1, Product=3, SerialNumber=2
[  418.720716] usb 1-1.2: Product: OneTouch        
[  418.720729] usb 1-1.2: Manufacturer: Maxtor  
[  418.720740] usb 1-1.2: SerialNumber: 2HAACB9Y    
[  418.731226] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[  418.731668] scsi host1: usb-storage 1-1.2:1.0
[  419.735134] scsi 1:0:0:0: Direct-Access     Maxtor   OneTouch         0121 PQ: 0 ANSI: 4
[  419.841403] sd 1:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[  419.853090] sd 1:0:0:0: [sdb] Write Protect is off
[  419.853132] sd 1:0:0:0: [sdb] Mode Sense: 2d 08 00 00
[  419.853942] sd 1:0:0:0: [sdb] No Caching mode page found
[  419.854104] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[  419.987319]  sdb: sdb1
[  419.991773] sd 1:0:0:0: [sdb] Attached SCSI disk
[  420.130164] sd 0:0:0:0: Attached scsi generic sg0 type 0
[  420.131293] sd 1:0:0:0: Attached scsi generic sg1 type 0
[  423.465297] fuse init (API version 7.23)



RE: External drive only detected after boot - f1vefour - 17th Jun, 2015 10:49 AM

Could you post this issue to github so the developers can see it?