LinuxQuestions.org
Help answer threads with 0 replies.
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-14-2003, 08:26 AM   #1
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Rep: Reputation: 30
USB hard disk problem


hi,
I have an IBM USB hard disk but I don't know how to install it on my RH 8 box and make it mountable.
I checed the /proc/scsi/usb-storage-0 there is a file named 0 , the entry is like this:
Host scsi0: usb-storage
Vendor: EagleTec
Product: USB TO IDE
Serial Number: None
Protocol: Transparent SCSI
Transport: Bulk
GUID: 05e307020000000000000000
Attached: Yes
and the /proc/scsi/scsi file has the following content:
ttached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: EagleTec Model: External Hard Di Rev: 0002
Type: Direct-Access ANSI SCSI revision: 02
can anyone help me to install this USB hardisk?
thank you.
 
Old 09-14-2003, 10:27 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
when you do (as root)

fdisk -l

does the USB drive show up? I think it usually shows up as /dev/sda - it does for me. If it does, you can mount it by

mount /dev/sdax /mointpoint

where x is the partition number. Of course, the partition has to be formatted and you might have to specify the filesystem type, etc.
 
Old 09-15-2003, 07:03 AM   #3
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
hi , fdisk -l doesn't show me any usb or scsi related devices apart from hdx.
 
Old 09-15-2003, 07:43 AM   #4
MyRee
LQ Newbie
 
Registered: Sep 2003
Location: P.R.China
Posts: 13

Rep: Reputation: 0
GB:½
 
Old 09-15-2003, 09:41 AM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
So fdisk -l shows nothing with /dev/scsi? Have you tried
fdisk -l /dev/sda or fdisk -l /dev/sdb?

the /proc/scsi etc. look basically the same for me (except that my ext. drive is toshiba) so it should work. Do you have all the modules loaded? You'll need the usb related stuff, in particular usb-storage, and scsi_mod.
 
Old 09-15-2003, 09:04 PM   #6
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
thanks for your advice,
but it willbe much appriciated that you can give me detailed procedure to follow when a usb harddrive is attached. i head sth about hotplug, fiddled arround iwth it, still much confusion.
thanks
 
Old 09-15-2003, 09:13 PM   #7
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
i am just reading this post, which looks quite useful
http://www.qbik.ch/usb/devices/showdev.php?id=1303
if you have an eagle tec drive, you also can find good info in this post.
i will give it a try when i get home, but still even if it works , it is still a device specific fix, i would like to know any generic overall fix for most usb hdd.
 
Old 09-15-2003, 09:14 PM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
the thing is, the usb drive and its partitions showed up immediately when I did fdisk -l after plugging it in so I didn't have any problems. They show up as /dev/scsi/blah/blah/blah/part1 or something like that - it's not immediately obvious it's your usb drive actually.
But here is a guess. Open a console window, become root and then do

lsmod

this will give you a list of modules that are currently loaded. If scsi and/or usb-storage do not show up, you can load them by

modprobe modulename

Other modules that might be related are usb-ohci and usbcore. After loading these modules, see if your device shows up. Once they do show up, you mount them like any other harddrive partiton with the difference that the device is something like /dev/sda (/dev/sdb or sdc, depending on whether you have other devices that get treated as scsi).
Hope this helps.
 
Old 09-17-2003, 06:45 AM   #9
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
hi Guatsch,
the lsmod shows the following:
Module Size Used by Not tainted
usb-storage 62000 0
ide-cd 33608 0 (autoclean)
cdrom 33696 0 (autoclean) [ide-cd]
soundcore 6532 0 (autoclean)
binfmt_misc 7524 1
autofs 13348 0 (autoclean) (unused)
rhinefet 29216 1
iptable_filter 2412 0 (autoclean) (unused)
ip_tables 14936 1 [iptable_filter]
vfat 13084 0 (autoclean)
fat 38712 0 (autoclean) [vfat]
sd_mod 13584 0 (autoclean)
scsi_mod 107176 2 (autoclean) [usb-storage sd_mod]
mousedev 5524 1
keybdev 2976 0 (unused)
hid 22244 0 (unused)
input 5888 0 [mousedev keybdev hid]
usb-uhci 26188 0 (unused)
ehci-hcd 17480 0 (unused)
usbcore 77024 1 [usb-storage hid usb-uhci ehci-hcd]
ext3 70368 3
jbd 52212 3 [ext3]

well, i think the right module is loaded but the fdisk -l still says:
/dev/hdb1 * 1 38 305203+ 83 Linux
/dev/hdb2 39 548 4096575 83 Linux
/dev/hdb3 549 803 2048287+ 83 Linux
/dev/hdb4 804 2434 13101007+ 5 Extended
/dev/hdb5 804 867 514048+ 82 Linux swap

????
 
Old 09-17-2003, 07:34 AM   #10
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
my boot log is :
Sep 16 22:11:06 linux rc.sysinit: Initializing USB controller (ehci-hcd): succeeded
Sep 16 22:11:06 linux rc.sysinit: Initializing USB controller (usb-uhci): succeeded
Sep 16 22:11:06 linux rc.sysinit: Mounting USB filesystem: succeeded
Sep 16 22:11:06 linux rc.sysinit: Initializing USB HID interface: succeeded
Sep 16 22:11:06 linux rc.sysinit: Initializing USB keyboard: succeeded
Sep 16 22:11:30 linux sshd: succeeded
Sep 16 22:11:06 linux rc.sysinit: Initializing USB mouse: succeeded
Sep 16 22:11:30 linux sshd:
Sep 16 22:11:06 linux fsck: /: clean, 140548/513024 files, 665141/1024143 blocks
Sep 16 22:11:30 linux rc: Starting sshd: succeeded
Sep 16 22:11:06 linux rc.sysinit: Checking root filesystem succeeded
Sep 16 22:11:06 linux rc.sysinit: Remounting root filesystem in read-write mode: succeeded
Sep 16 22:11:06 linux rc.sysinit: Activating swap partitions: succeeded
Sep 16 22:11:09 linux rc.sysinit: Finding module dependencies: succeeded
Sep 16 22:11:10 linux fsck: /boot: clean, 41/76304 files, 23131/305203 blocks
Sep 16 22:11:10 linux fsck: /home: clean, 956/256512 files, 208846/512071 blocks
Sep 16 22:11:10 linux fsck: dosfsck 2.8, 28 Feb 2001, FAT32, LFN
Sep 16 22:11:10 linux fsck: open /dev/sda1:No such device or address
Sep 16 22:11:10 linux rc.sysinit: Checking filesystems succeeded
Sep 16 22:11:12 linux mount: mount: /dev/sda1 is not a valid block device
Sep 16 22:11:12 linux rc.sysinit: Mounting local filesystems: failed
Sep 16 22:11:12 linux rc.sysinit: Enabling local filesystem quotas: succeeded
Sep 16 22:11:13 linux rc.sysinit: Enabling swap space: succeeded
Sep 16 22:11:17 linux kudzu: Updating /etc/fstab succeeded
Sep 16 22:11:24 linux kudzu: succeeded
Sep 16 22:11:24 linux rc: Starting iptables: succeeded
 
Old 09-17-2003, 08:18 AM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,384

Rep: Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469
It appears that all required modules are being loaded.

Look at dmesg and see what if any errors show up for USB. Is your drive being recognized?
 
Old 09-17-2003, 08:52 AM   #12
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
dmesg:
SCSI device (ioctl) reports ILLEGAL REQUEST.
SCSI device sda: 58605120 512-byte hdwr sectors (30006 MB)
sda: test WP failed, assume Write Enabled
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
 
Old 09-17-2003, 10:20 AM   #13
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
have you tried hooking the drive up to another computer? If it's windows formatted, a windows computer with usb should be able to see it without problems.
 
Old 09-17-2003, 10:33 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,384

Rep: Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469Reputation: 5469
Look here, maybe this will work:
http://www.linuxquestions.org/questi...LEGAL+REQUEST.
 
Old 09-20-2003, 11:26 PM   #15
taoweijia
Member
 
Registered: Sep 2003
Posts: 163

Original Poster
Rep: Reputation: 30
now i attached the IBM travelstar usb harddrive to mt rh 8 box the dmesg shows:
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: EagleTec Model: External Hard Di Rev: 0002
Type: Direct-Access ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 9767520 512-byte hdwr sectors (5001 MB)
sda: test WP failed, assume Write Enabled
sda: sda1
SCSI device (ioctl) reports ILLEGAL REQUEST.
SCSI device sda: 9767520 512-byte hdwr sectors (5001 MB)
sda: test WP failed, assume Write Enabled
sda: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table

the fdisk -l still shows no sda, or sdb...
the usb harddrive has no problem with windows.

i checked the unusual_devs.h file and didn't really know how to modify it to issue a valid request.
 
  


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
Playing video from USB hard disk problem neranjana Linux - Software 1 03-04-2005 06:30 AM
200G external usb hard disk problem CrystalAtom Linux - Hardware 0 12-01-2004 01:39 AM
problem while booting my new distrib from usb flash and hard disk mundri Linux - General 1 06-07-2004 08:47 AM
problem while booting my new distrib from usb flash and hard disk mundri Linux From Scratch 1 06-07-2004 08:19 AM
USB External Hard Disk problem with large files nick1.41 Linux - Hardware 0 05-26-2004 07:33 PM

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

All times are GMT -5. The time now is 10:04 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