LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-05-2003, 07:31 AM   #1
max74
LQ Newbie
 
Registered: Aug 2003
Location: North Yorkshire, England
Posts: 17

Rep: Reputation: 0
XS Drive II external USB hard drive/card reader


Hello,

I'm having trouble getting my XS Drive II working. I want to at least be able to access the hard drive. I think I should also be able to access flash cards, but that would be icing on the cake. Linux sees it and even tells me it is a drive, but I get the "not claimed by any active driver." message.

After looking at dmesg output I added this

/dev/sda /mnt/xs vfat auto,user 0 0

to /etc/fstab. But when I tried to mount it, mount hung (and I couldn't even kill the process).

Here's what I have so far:

I'm running Redhat 9 (2.4.20-8).

cat /proc/scsi/scsi output:

Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: USB Model: USB Rev: 1.06
Type: Direct-Access ANSI SCSI revision: 02

lsusb output:

...
Bus 003 Device 002: ID 0d7d:1270 Apacer
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0d7d Apacer
idProduct 0x1270
bcdDevice 1.00
iManufacturer 1
iProduct 2 USB
iSerial 3 0A370E00312E
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type none
wMaxPacketSize 512
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 4
Language IDs: (length=4)
0409 English(US)
...

dmesg output:
...
hub.c: new USB device 00:0f.2-5, assigned address 2
usb.c: USB device 2 (vend/prod 0xd7d/0x1270) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: USB Model: USB Rev: 1.06
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 39070080 512-byte hdwr sectors (20004 MB)
sda: Write Protect is off
sda: sda1 sda2 sda3 sda4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

lsmod output:

Module Size Used by Not tainted
usb-storage 68628 0
radeon 114916 1
agpgart 46752 3
parport_pc 18756 1 (autoclean)
lp 8868 0 (autoclean)
parport 36480 1 (autoclean) [parport_pc lp]
autofs 12948 0 (autoclean) (unused)
tulip 43648 1
ipt_REJECT 3896 6 (autoclean)
iptable_filter 2380 1 (autoclean)
ip_tables 14648 2 [ipt_REJECT iptable_filter]
sg 35980 0 (autoclean)
sr_mod 17912 0 (autoclean)
ide-scsi 11984 0
ide-cd 35196 0
cdrom 33472 0 [sr_mod ide-cd]
sd_mod 13388 0 (autoclean)
scsi_mod 106200 5 (autoclean) [usb-storage sg sr_mod ide-scsi sd_mod]
nls_iso8859-1 3484 1 (autoclean)
nls_cp437 5116 1 (autoclean)
vfat 12844 1 (autoclean)
fat 38328 0 (autoclean) [vfat]
audio 46264 0 (unused)
soundcore 6276 2 [audio]
scanner 11160 0 (unused)
keybdev 2880 0 (unused)
mousedev 5428 1
hid 21700 0 (unused)
input 5792 0 [keybdev mousedev hid]
usb-uhci 25868 0 (unused)
ehci-hcd 19592 0 (unused)
usb-ohci 21160 0 (unused)
usbcore 77696 1 [usb-storage audio scanner hid usb-uhci ehci-hcd usb-ohci]
ext3 69984 2
jbd 51220 2 [ext3]



I've found several sites saying it should work

From the XS drive page at card-media.co.uk
Quote:
FAQ 17 - Linux 2.4 does not automatically recognize my X's-Drive

Answer:
Linux uses a so-called "USB Manager", which does automatically loads kernel modules (drivers) for USB devices. It loads only drivers for devices that are present on the USB bus to reduce memory usage. Per default the USB Manager does not come with X's-Drive pre -configured. However you can easily configure the USB Manager to automatically recognize the X's-Drive yourself. Just add the following to the configuration file, usbmgr.conf(usually in /etc/usbmgr): vendor 0xd7d product 0x100 module scsi_mod, usb-storage.
This line identifies the X's-Drive and tells the USB Manager to load the SCSI as well as the USB storage module. The SCSI module is needed in order to talk to both SCSI and USB Storage devices, while the usb storage module is needed to talk to USB storage devices.
And this from the FAQ at vosonic.com.

Quote:
Question - I have formated the X's-Drive II under Windows, but I cannot mount the volume under Linux by the mount /dev/sdd1 command

Answer - A different volume format called Superfloppy (not including a partition) is made by Windows
- To mount a Superfloppy volume under Linux, a partition number must not be specified in the device name:
mount /dev/sdd
I haven't yet tried usbmgr, since all the modules they mention already are loaded.

Thanks for any help,
Max
 
Old 09-05-2003, 02:15 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,568

Rep: Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865Reputation: 5865
According to dmesg your USB drive has four partitions. Have you tried to mount /dev/sda1, /dev/sda2, /dev/sda3 or /dev/sda4? And are they really FAT32 partitions?

With the few lines of dmesg I don't see any errors pertaining to the USB drive. It appears that all of the USB and SCSI modules are being loaded.
 
Old 09-06-2003, 03:40 PM   #3
max74
LQ Newbie
 
Registered: Aug 2003
Location: North Yorkshire, England
Posts: 17

Original Poster
Rep: Reputation: 0
Partial success.

Even though all the modules were already loading, I tried usbmgr with this line from above: "vendor 0xd7d product 0x100 module scsi_mod, usb-storage." And I can access the hard drive now, but still can't access the card slots. I'm not sure which order they are getting assigned. From this line above:

sda: sda1 sda2 sda3 sda4

it appears to be seeing the four card slots. I've tried mounting my compact flash card using "mount -t vfat /dev/sda1 /mnt/cf" for sda1 to sda4 but mount doesn't like any of them. Either mount hangs or I get a mount error:

mount: wrong fs type, bad option, bad superblock on /dev/sda4,
or too many mounted file systems

How can I narrow down the possible problems mount is having?

I just used this drive and flash card in Windows and both worked. Windows assigned the next drive letter after the hard drive to the CF slot.

Thanks,
Max
 
Old 09-30-2003, 09:51 PM   #4
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
I'm not a qualified person to help but I notice that in the dmesg it lists a usb device that's not claimed with the same manufacturer but a different product number(
usb.c: USB device 2 (vend/prod 0xd7d/0x1270) is not claimed by any active driver.

Maybe everything will work if you change your usbmgr.conf to use that product number.

If it doesn't work, sorry
 
Old 10-20-2003, 04:36 AM   #5
massa
LQ Newbie
 
Registered: Oct 2003
Distribution: redhat9.0
Posts: 3

Rep: Reputation: 0
XS Drive II external USB hard drive/card reader

One thing you have to remember is have

PROBE ALL LUNs YES

in your "make (x)config" when doing the kernel.

But it does not work for me either:

Oct 20 17:27:36 justine kernel: SCSI error: host 3 id 0 lun 0 return code = 8000
002
Oct 20 17:27:36 justine kernel: ^ISense class 7, sense error 0, extended sense 4
Oct 20 17:27:36 justine kernel: Device 08:20 not ready.
Oct 20 17:27:36 justine kernel: I/O error: dev 08:20, sector 0
Oct 20 17:27:36 justine kernel: SCSI error: host 3 id 0 lun 0 return code = 8000
002
Oct 20 17:27:36 justine kernel: ^ISense class 7, sense error 0, extended sense 4
Oct 20 17:27:36 justine kernel: Device 08:20 not ready.
Oct 20 17:27:36 justine kernel: I/O error: dev 08:20, sector 0
Oct 20 17:27:36 justine kernel: FAT: unable to read boot sector

But under Windooooof it works (with the same cable/same xdrive/same machine (dual boot))

Michael

PS: I have tried Kernel 2.6.0-test5 - still does not work.
 
Old 10-20-2003, 04:45 AM   #6
massa
LQ Newbie
 
Registered: Oct 2003
Distribution: redhat9.0
Posts: 3

Rep: Reputation: 0
My output of "usbtree" is

[root@justine etc]# usbtree
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ehci-hcd/6p, 480M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=usb-ohci/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=usb-ohci/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=usb-ohci/2p, 12M
|__ Port 1: Dev 2, If 0, Class=stor., Driver=usb-storage, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=usb-ohci/4p, 12M
|__ Port 1: Dev 8, If 0, Class=print, Driver=usblp, 12M
|__ Port 2: Dev 3, If 0, Class=hub, Driver=hub/4p, 12M
|__ Port 4: Dev 6, If 0, Class=data, Driver=Philips, 12M
|__ Port 4: Dev 6, If 1, Class=audio, Driver=audio, 12M
|__ Port 4: Dev 6, If 2, Class=audio, Driver=audio, 12M


Why does it not use the USB 2.0 (and 480M speed)? Do I need to plug it into
another port?

And why does it show only one device. It should be one harddisk
and 3 card readers (like under windooooof).

Michael

PS: If you don't have 'usbtree' get it here:

cd /usr/local/bin
wget http://www.linux-usb.org/usbtree
chmod 755 usbtree
 
Old 10-20-2003, 04:51 AM   #7
massa
LQ Newbie
 
Registered: Oct 2003
Distribution: redhat9.0
Posts: 3

Rep: Reputation: 0
I used "debug usb-storage" module param and got this:

usb-storage: *** thread awakened.
usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
usb-storage: 1e 00 00 00 00 00 12 c0 00 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x673 Trg 0 LUN 0 L 0 F 0 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x673 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command START_STOP (6 bytes)
usb-storage: 1b 00 00 00 01 00 00 00 84 2a 2e c0
usb-storage: Bulk command S 0x43425355 T 0x674 Trg 0 LUN 0 L 0 F 0 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x674 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command ALLOW_MEDIUM_REMOVAL (6 bytes)
usb-storage: 1e 00 00 00 01 00 cf c3 09 56 14 c0
usb-storage: Bulk command S 0x43425355 T 0x675 Trg 0 LUN 0 L 0 F 0 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x675 R 0 Stat 0x1
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Bulk command S 0x43425355 T 0x675 Trg 0 LUN 0 L 18 F 128 CL 12
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 18 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 18/18
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x675 R 0 Stat 0x0
usb-storage: -- Result from auto-sense is 0
usb-storage: -- code: 0x70, key: 0x4, ASC: 0x0, ASCQ: 0x5
usb-storage: Hardware Error: end of data detected
usb-storage: scsi cmd done, result=0x2
usb-storage: *** thread sleeping.
SCSI error: host 3 id 0 lun 0 return code = 8000002
Sense class 7, sense error 0, extended sense 4



Is the "usb-storage" guy on this list? Any comments from anyone?

---Michael
 
Old 10-21-2003, 10:41 PM   #8
jcd
LQ Newbie
 
Registered: Oct 2003
Distribution: Mandrake Linux
Posts: 1

Rep: Reputation: 0
I was never able to get my X's-Drive recognised under Mandrake, even with usb manager.
But I installed Mandrake 9.2 earlier this week and it is recognised correctly, drive, card slots, everything! Maybe it has to do with kernel 2.4.22, I have not dug deeper, I am too busy planning my migration.

Jean-Claude
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External USB hard drive jhmorris47 Linux - Hardware 6 05-02-2006 04:14 PM
How to mount external USB hard drive? zyzyis Linux - Newbie 6 02-01-2006 09:37 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
External USB hard drive bob10a Linux - General 3 08-09-2003 03:48 PM
external usb hard drive TX_metalhead Linux - Hardware 0 05-06-2002 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration