LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-01-2004, 01:39 AM   #1
CrystalAtom
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Unhappy 200G external usb hard disk problem


Hi friends,

I got some problems in setting up a 200G hard disk in an external usb enclosure, mainly it is recognized as 137.4GB by fdisk while other things seems to work till now. I tried hard to figure it out and not very successful so far and would like to have your input.

It is a bit lengthy but I try to be organized and clear.

OS:
Redhat Linux 9.0 kernel 2.4.20-31.9smp, kernal recompiled but not much changed to default
with CONFIG_USB_STORAGE=m and all CONFIG_USB_STORAGE_*=y

HD:
7200rpm Western Digital Caviar SE WD2000 EIDE (24321c x 255h x 63s)

USB enclosures:
I have two, both Bytecc ME-720U Ali chipset, an old one claims to support more than 200G (250G?). The other new one support 300G.

When I connect the WD 200G as internal, everything works fine. And I have a Maxtor 80G in the old Bytecc enclosure and it was working so the OS should support USB external hard disk so far. The problem comes when I try to install the WD 200G to the new Bytecc enclosure. It was not recognized by /sbin/fdisk at the beginning or gave some cylinder numbering problem. I tried somehow and find out if I use the old usb enclosure for 200G and new one for 80G both can be recognized under windows xp so I stick to this configuration.

The size of the 200G was not correct when in the usb enclosure so I partitioned 3 equal partitions (8107cylinders each partition) when it is connected as internal, one (1) as ext3, two(2,3) as vfat 32bit. mkfs works fine. And it looks good under windows xp using parition magic v8.0. The two vfat partitions can be recognized under windows xp.

Now under linux, command p after "/sbin/fdisk /dev/sdb" gives:

Disk /dev/sdb: 137.4 GB, 137438952960 bytes
255 heads, 63 sectors/track, 16709 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 8107 65119446 83 Linux
/dev/sdb2 8108 16214 65119477+ c Win95 FAT32 (LBA)
/dev/sdb3 16215 24321 65119477+ c Win95 FAT32 (LBA)

Notice the 137.4GB there, which is not the sum of sizes of any two partitions.

I can mount all the partitions and copy files to them seems working so far excepting a failure to copy a big movie file (~700M) to /dev/sdb2

The other problem is that the speed of the hard disk is quite slow, hdparm -t /dev/sdb1 gives
only 2.36 MB/s while when it was connected as internal, it gives 53MB/s, and the maxtor 80G 5400rpm gives average 24MB/s in the usb enclosure.

looking into the /var/log/message I found the following when I plug the usb line into the pc

Dec 1 01:22:15 zhejiang kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Dec 1 01:22:15 zhejiang kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Dec 1 01:22:15 zhejiang kernel: sda : READ CAPACITY failed.
Dec 1 01:22:15 zhejiang kernel: sda : status = 1, message = 00, host = 0, driver = 08
Dec 1 01:22:15 zhejiang kernel: Current sd00:00: sense key Not Ready
Dec 1 01:22:15 zhejiang kernel: Additional sense indicates Medium not present
Dec 1 01:22:15 zhejiang kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Dec 1 01:22:15 zhejiang kernel: sda: I/O error: dev 08:00, sector 0
Dec 1 01:22:15 zhejiang kernel: I/O error: dev 08:00, sector 0
Dec 1 01:22:15 zhejiang kernel: unable to read partition table
Dec 1 01:22:15 zhejiang kernel: SCSI device sdb: 268435455 512-byte hdwr sectors (137439 MB)
Dec 1 01:22:15 zhejiang kernel: sdb: sdb1 sdb2 sdb3

And there is numerous repetitive error for sda

Dec 1 01:35:15 zhejiang kernel: sda : READ CAPACITY failed.
Dec 1 01:35:15 zhejiang kernel: sda : status = 1, message = 00, host = 0, driver = 08
Dec 1 01:35:15 zhejiang kernel: Current sd00:00: sense key Not Ready
Dec 1 01:35:15 zhejiang kernel: Additional sense indicates Medium not present
Dec 1 01:35:15 zhejiang kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Dec 1 01:35:15 zhejiang kernel: sda: Write Protect is off
Dec 1 01:35:15 zhejiang kernel: sda: I/O error: dev 08:00, sector 0
Dec 1 01:35:15 zhejiang kernel: I/O error: dev 08:00, sector 0
Dec 1 01:35:15 zhejiang kernel: unable to read partition table

I spent three nights on this stupid problem and was driven mad after numerous searches on google and assemble/dissemble hardware.

Please give me some advice.
 
  


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 controller dies mounting external usb hard disk komasoftware Linux - Hardware 4 11-30-2005 01:18 PM
External USB Hard Disk Nishy Linux - Hardware 2 09-28-2005 06:35 AM
Problem: USB external hard disk on woody 2.4.18-bf2.4 Explorer2005 Linux - Newbie 7 08-04-2005 01:23 AM
external partitioned usb hard disk mr_a_ali Linux - Hardware 2 08-14-2004 10:22 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 11:07 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
Open Source Consulting | Domain Registration