OpenWrt Forum Archive

Topic: USB HDD not accessible

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi

After accidental HD drive unplug (power cord) the router wont do any operation on the hdd. Cant fdisk  /dev/scsi/host0/bus0/target0/lun0/disc nor anything.
ls just return that the 'disc' is there ? Rebooted the router ofcourse..
HDD was doing as swap /opt installation for torrent client - transmission and a samba server.


root@OpenWrt:/etc/modules.d# fdisk /dev/scsi/host0/bus0/target0/lun0/disc

Unable to open /dev/scsi/host0/bus0/target0/lun0/disc


dmesg

PCI: Enabling device 01:03.2 (0000 -> 0002)
ehci_hcd 01:03.2: PCI device 1106:3104
ehci_hcd 01:03.2: irq 2, pci mem c0202000
usb.c: new USB bus registered, assigned bus number 1
EHCI: Enabling VIA 6212 workarounds
ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
hub.c: USB hub found
hub.c: 4 ports detected
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 01:03.2-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: Maxtor 6  Model: Y120P0            Rev: YAR4
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 234375000 512-byte hdwr sectors (120000 MB)
Partition check:
/dev/scsi/host0/bus0/target0/lun0:<6>device wl0 entered promiscuous mode
wl0: attempt to add interface with same source address.
br-lan: port 2(wl0) entering learning state
br-lan: port 2(wl0) entering forwarding state
br-lan: topology change detected, propagating
scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0
SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 50000
I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 2
I/O error: dev 08:00, sector 0
unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
usb.c: USB disconnect on device 01:03.2-1 address 2
hub.c: new USB device 01:03.2-1, assigned address 3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3

I'm sorry to say this, But i had about the same problem and found out that my partition table was corrupted....
I used testdisk to manualy enter the partition table, but the file system had errors so i could not recover all data.
But i managed to restore most. I had to format the disk to get it working properly again.

(Last edited by mrx on 6 Feb 2008, 19:09)

Yes but why am I not able to access it with fdisk ?

somehow 5th reboot fixed it :S

The discussion might have continued from here.