You are not logged in.

#1 2006-04-16 11:53:14

anadyr
Member
Registered: 2005-02-10
Posts: 225

mount HDs through USB

Hey people,

I want to access a HD through USB, and I have a small device/adaptor for this: you can plug your HD in it, and then you can connect it to the USB plug of your computer. But unfortunately, it doesn.t work... the device is recognized, and the usbstorage driver seems to be attached to it, but I dont know what goes wrong. there is nothing added in /dev (like sda or something)

this is the output of /proc/bus/usr/devices on the device:

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04ce ProdID=0002 Rev= 2.60
S:  Manufacturer=ViPower
S:  Product=ViPower
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

and this is the output of dmesg on the device and on usbstorage:

usb 3-1: new full speed USB device using uhci_hcd and address 2
usb 3-1: configuration #1 chosen from 1 choice
usb-storage: USB Mass Storage device detected
usb-storage: -- associate_dev
usb-storage: Vendor: 0x04ce, Product: 0x0002, Revision: 0x0260
usb-storage: Interface Subclass: 0x06, Protocol: 0x50
usb-storage: Transport: Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: *** thread sleeping.
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.

usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
usb-storage: GetMaxLUN command result is 1, data is 0
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x240058 R 0 Stat 0x0
usb-storage: Bulk logical error
usb-storage: -- transport indicates error, resetting
usb 3-1: reset full speed USB device using uhci_hcd and address 2
usb-storage: usb_reset_device returns 0
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x2 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x240058 R 0 Stat 0x0
usb-storage: Bulk logical error
usb-storage: -- transport indicates error, resetting
usb 3-1: reset full speed USB device using uhci_hcd and address 2
usb-storage: usb_reset_device returns 0
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x3 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x240058 R 0 Stat 0x0
usb-storage: Bulk logical error
usb-storage: -- transport indicates error, resetting
usb 3-1: reset full speed USB device using uhci_hcd and address 2
usb-storage: usb_reset_device returns 0
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage:  12 00 00 00 24 00
usb-storage: Bulk Command S 0x43425355 T 0x4 L 36 F 128 Trg 0 LUN 0 CL 6
usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
usb-storage: Status code 0; transferred 31/31
usb-storage: -- transfer complete
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
usb-storage: Status code 0; transferred 36/36
usb-storage: -- transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
usb-storage: Status code 0; transferred 13/13
usb-storage: -- transfer complete
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x240058 R 0 Stat 0x0
usb-storage: Bulk logical error
usb-storage: -- transport indicates error, resetting
usb 3-1: reset full speed USB device using uhci_hcd and address 2
usb-storage: usb_reset_device returns 0
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (1:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (2:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (3:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (4:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (5:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (6:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: queuecommand called
usb-storage: *** thread awakened.
usb-storage: Bad target number (7:0)
usb-storage: scsi cmd done, result=0x40000
usb-storage: *** thread sleeping.
usb-storage: device scan complete

Does anybody know how to get this device recognized, and secondly, how to mount the HD?

thanks!
rogier

Offline

#2 2006-04-16 11:56:22

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: mount HDs through USB

do you get any output from lsusb ?


Mr Green

Offline

#3 2006-04-16 11:59:32

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: mount HDs through USB

yes:

Bus 001 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 003 Device 002: ID 04ce:0002 ScanLogic Corp. SL11R-IDE IDE Bridge

hmm, scanlogic... that is new for me

Offline

#4 2006-04-16 12:09:54

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: mount HDs through USB

you say no device node is created ..... pm me output from ls /dev ...?


Mr Green

Offline

#5 2006-04-16 12:16:02

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: mount HDs through USB

ok... here it is:

adsp     cpu0  hdc      psaux       tty    tty19  tty3   tty40  tty51  tty62
agpgart  disk  initctl  ptmx        tty0   tty2   tty30  tty41  tty52  tty63
audio    dri   input    pts         tty1   tty20  tty31  tty42  tty53  tty7
bus      dsp   kmem     random      tty10  tty21  tty32  tty43  tty54  tty8
cd       dvd   kmsg     sequencer   tty11  tty22  tty33  tty44  tty55  tty9
cdrom    dvd0  log      sequencer2  tty12  tty23  tty34  tty45  tty56  urandom
cdrom0   fd    mem      shm         tty13  tty24  tty35  tty46  tty57  vc
cdrw     full  misc     snd         tty14  tty25  tty36  tty47  tty58  vcc
cdrw0    hda   mixer    sound       tty15  tty26  tty37  tty48  tty59  zero
console  hda1  net      stderr      tty16  tty27  tty38  tty49  tty6
core     hda2  null     stdin       tty17  tty28  tty39  tty5   tty60
cpu      hda3  port     stdout      tty18  tty29  tty4   tty50  tty61

Offline

#6 2006-04-16 22:51:07

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: mount HDs through USB

I got a bit further! whohoo! and how:

1) I read somewhere that I had to upload new firmware to the device, after that, Linux would be able to acces the HD through the USB.
2) flashing theh firmware was only possible on a win98 or me computer (xp didnt work). So I had to find a win98 comp (impossible), or install windows 98.
3) better install win98 then. but then I needed to have an empty HD, which I didnt have... so
4) I backup a small old HD to another HD, and then to format it
5) copied all the files from the win98 cd using 2 different readers, since the cd was too scratched
6) finally installed win98, and flashed the firmware...

That took me about 3 hours...
and now I am a bit closer to my goal: accessing my old HD through usb.

after the flashing, my device just became something else: output of /proc/bus/usb/devices:

T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04ce ProdID=0002 Rev= 2.6c
S:  Manufacturer=SL IDE
S:  Product=SL IDE
S:  SerialNumber=11204EC
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

anyhoo, I have /dev nods now: /dev/sdaX (X are the exact partitions that are present on the HD in question), but when I try to mount them, it gives an error:

[root@anadyr usb]# mount /dev/sda5 -t ext3 /mnt/backup
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


the output of dmesg | tail is:

[root@anadyr usb]# dmesg | tail
usb-storage: Bulk status result = 0
usb-storage: Bulk Status S 0x53425355 T 0x274 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x2, ASC: 0x2, ASCQ: 0x0
usb-storage: (Unknown Key): (unknown ASC/ASCQ)
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
sd 0:0:0:0: Device not ready.
end_request: I/O error, dev sda, sector 48260
EXT3-fs: unable to read superblock

So the problem I am facing right now is: unable to read superblock... any ideas?

Offline

#7 2006-04-24 09:59:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,893
Website

Re: mount HDs through USB

mount /dev/sda5  /mnt/backup 

If /dev/sda5 is present then that should mount it ....

or try mount -t (auto/ext3/vfat etc..) /dev/sda5 /mnt/backup

HTH


Mr Green

Offline

#8 2006-04-24 14:27:41

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: mount HDs through USB

that didnt work...
but I fixed it last week. I downloaded kernel 2.4.20 code, patched it with code I found on the web somewhere, and then I could mount it and copy the stuff... strange that 2.6 kernel do not have support for Scanlogic USB2IDE bridges...

Offline

Board footer

Powered by FluxBB