LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 04-25-2005, 08:37 AM   #1
haimat
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Rep: Reputation: 0
problem getting USB HDD to work


Hi all,

recently I installed Slackware 10.1 on one of our servers, now I want to
backup it's data to an external USB HDD (Western Digitial w/ 250 GB).

I included USB and usb-storage support into kernel, started hotplug, and
get this messages in /var/log/debug

Code:
Apr 25 14:09:55 server kernel: usb-storage: act_altsettting is 0 
Apr 25 14:09:55 server kernel: usb-storage: id_index calculated to be: 120 
Apr 25 14:09:55 server kernel: usb-storage: Array length appears to be: 122 
Apr 25 14:09:55 server kernel: usb-storage: USB Mass Storage device detected 
Apr 25 14:09:55 server kernel: usb-storage: Endpoints: In: 0xd4c09494 Out: 0xd4c09480 Int: 0x00000000 (Period 0) 
Apr 25 14:09:55 server kernel: usb-storage: New GUID 105804023733343435313139 
Apr 25 14:09:55 server kernel: usb-storage: GetMaxLUN command result is 1, data is 0 
Apr 25 14:09:55 server kernel: usb-storage: Transport: Bulk 
Apr 25 14:09:55 server kernel: usb-storage: Protocol: Transparent SCSI 
Apr 25 14:09:55 server kernel: usb-storage: *** thread sleeping. 
Apr 25 14:09:55 server kernel: usb-storage: queuecommand() called 
Apr 25 14:09:55 server kernel: usb-storage: *** thread awakened. 
Apr 25 14:09:55 server kernel: usb-storage: Command INQUIRY (6 bytes) 
Apr 25 14:09:55 server kernel: usb-storage: 12 00 00 00 ff 00 e2 d4 b1 83 1c c0 
Apr 25 14:09:55 server kernel: usb-storage: Bulk command S 0x43425355 T 0x1 Trg 0 LUN 0 L 255 F 128 CL 6 
Apr 25 14:09:55 server kernel: usb-storage: Bulk command transfer result=0 
Apr 25 14:09:55 server kernel: usb-storage: usb_stor_transfer_partial(): xfer 255 bytes 
Apr 25 14:09:55 server kernel: usb-storage: usb_stor_bulk_msg() returned -75 xferred 128/255 
Apr 25 14:09:55 server kernel: usb-storage: usb_stor_transfer_partial(): unknown error 
Apr 25 14:09:55 server kernel: usb-storage: Bulk data transfer result 0x2 
Apr 25 14:09:55 server kernel: usb-storage: Attempting to get CSW... 
Apr 25 14:10:01 server kernel: usb-storage: command_abort() called
Seems there is an error, I can't access the drive. I use Kernel 2.4.29
from Slackware CD-ROM.

Any ideas on this?
TIA and greetings, Matthias
 
Old 04-25-2005, 09:02 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Did you enable SCSI support? You need this for USB drives
 
Old 04-25-2005, 09:14 AM   #3
haimat
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah I enabled it, because I am using a 3ware SATA RAID1 controller, which needs
SCSI as well. I access this RAID1 via /dev/sda ...
 
Old 04-25-2005, 09:44 AM   #4
haimat
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
update: after attaching my USB drive to a windows machine and re-attaching it to
the Linux server afterwards, I get other messages now from syslog:

Code:
Apr 25 15:24:40 server kernel: WARNING: USB Mass Storage data integrity not assured
Apr 25 15:24:40 server kernel: USB Mass Storage device found at 2
Apr 25 15:24:40 server kernel: usb-storage: storage_disconnect() called
Apr 25 15:24:40 server kernel: usb-storage: -- releasing main URB
Apr 25 15:24:40 server kernel: usb-storage: -- usb_unlink_urb() returned -19
Apr 25 15:32:19 server kernel: usb-storage: act_altsettting is 0
Apr 25 15:32:19 server kernel: usb-storage: id_index calculated to be: 120
Apr 25 15:32:19 server kernel: usb-storage: Array length appears to be: 122
Apr 25 15:32:19 server kernel: usb-storage: USB Mass Storage device detected
Apr 25 15:32:19 server kernel: usb-storage: Endpoints: In: 0xd4c09494 Out: 0xd4c09480 Int: 0x00000000 (Period 0)
Apr 25 15:32:19 server kernel: usb-storage: Found existing GUID 105804023733343435313139
Apr 25 15:32:19 server kernel: WARNING: USB Mass Storage data integrity not assured
Apr 25 15:32:19 server kernel: USB Mass Storage device found at 2
And now I can see my drive under /proc/scsi/usb-storage-0/1 as well:

Code:
   Host scsi1: usb-storage
       Vendor: Western Digital
      Product: External HDD
Serial Number: 5743414C3733343435313139
     Protocol: Transparent SCSI
    Transport: Bulk
         GUID: 105804023733343435313139
     Attached: Yes
But I sill can't mount the drive.
Any ideas? Greetings, Matthias
 
Old 04-25-2005, 09:57 AM   #5
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
How are you trying to mount the drive?
 
Old 04-25-2005, 10:09 AM   #6
haimat
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I was looking for a new /dev/sdb device or something similar, but it seems there is
none. Shouldn't dmesg give a output like "Attached scsi removable disk sdb ..."?

I try to mount the HDD via:

Code:
root@server:/dev# mount /dev/hdb /mnt -t vfat
mount: /dev/hdb is not a valid block device
The same goes for /dev/hdb1
vfat is included in my kernel

Any ideas?
Greetings and TIA, Matthias
 
Old 04-25-2005, 10:12 AM   #7
haimat
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
info: the disk does not show up in my scsi device listing, only my
RAID1 on 3ware controller.

Code:
root@server:/dev# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: 3ware    Model: Logical Disk 0   Rev: 1.0
  Type:   Direct-Access                    ANSI SCSI revision: ffffffff
 
Old 04-25-2005, 10:40 AM   #8
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Okay, is it found by "lsusb" as well?

Do you have a dynamic /dev manager (such as udev) that will create /dev entries for you? If so, does it have rules for USB hard drives? If not, you may have to create them manually.
 
Old 04-25-2005, 11:01 AM   #9
haimat
LQ Newbie
 
Registered: Apr 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
root@server:~# lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 003: ID 1058:0402 Western Digital Technologies, Inc.
slackware 10.1 uses udev, and it seems to be configured for USB devices:

Code:
# USB devices
KERNEL="hiddev*",       NAME="usb/%k"
KERNEL="auer*",         NAME="usb/%k"
KERNEL="legousbtower*", NAME="usb/%k"
KERNEL="dabusb*",       NAME="usb/%k"
BUS="usb", KERNEL="lp[0-9]*",   NAME="usb/%k"
 
  


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
usb 2.0 hdd working through usb 2.0 pcmcia card full speed in 2.4, but slow in 2.6 chilly_willy2 Linux - Hardware 11 02-02-2006 07:16 PM
problem with dd/foremoste+usb-hdd - trying to rescue data Barkpingu Linux - Software 2 11-07-2005 09:01 AM
USB Card Reader / HDD / Hub Problem Kenji Miyamoto Linux - Hardware 3 01-10-2005 09:01 PM
Install directly to HDD from iso on HDD/USB, with out burning cd vivinuthappa DamnSmallLinux 7 11-16-2004 11:03 AM
Will this USB/FW HDD work with my system? MadCactus Linux - Hardware 3 09-13-2003 05:07 PM


All times are GMT -5. The time now is 09:34 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration