fdisk, firewire enclosure, wrong drive size
Graydon
oak at uniserve.com
Sat Nov 22 20:21:37 UTC 2003
Ok, so, Western Digital 80 GB hard drive, ADS IEEE1394 'Pyro 1394'
external enclosure, sbp2 works fine, drive gets found,
In /proc/scsi/sbp2_0
15:10 sbp2_0 % cat 2
Host scsi2 : SBP-2 IEEE-1394 (ohci1394)
Module options :
max_speed : S800
max_sectors : 255
serialize_io : no
exclusive_login : yes
Attached devices :
[Channel: 00, Id: 00, Lun: 00] Direct-Access WDC WD80 0JB-00ETA0
In /proc/scsi/sg
15:11 sg % cat device_strs
USB2.0 CardReader CF RW 0.0>
PLEXTOR CD-R PX-320A 1.03
WDC WD80 0JB-00ETA0
In /var/log/dmesg
sbp2: $Rev: 1010 $ Ben Collins <bcollins at debian.org>
scsi2 : SCSI emulation for IEEE-1394 SBP-2 Devices
blk: queue dfa36814, I/O limit 4095Mb (mask 0xffffffff)
ieee1394: sbp2: Logged into SBP-2 device
ieee1394: sbp2: Node 0-00:1023: Max speed [S400] - Max payload [2048]
scsi singledevice 1 0 1 0
scsi singledevice 1 0 2 0
scsi singledevice 1 0 3 0
scsi singledevice 1 0 4 0
scsi singledevice 1 0 5 0
scsi singledevice 1 0 6 0
scsi singledevice 1 0 7 0
scsi singledevice 2 0 0 0
Vendor: WDC WD80 Model: 0JB-00ETA0 Rev:
Type: Direct-Access ANSI SCSI revision: 06
blk: queue dfa36a14, I/O limit 4095Mb (mask 0xffffffff)
scsi singledevice 2 0 1 0
scsi singledevice 2 0 2 0
scsi singledevice 2 0 3 0
scsi singledevice 2 0 4 0
scsi singledevice 2 0 5 0
scsi singledevice 2 0 6 0
scsi singledevice 2 0 7 0
scsi singledevice 0 0 1 0
scsi singledevice 0 0 2 0
scsi singledevice 0 0 3 0
scsi singledevice 0 0 4 0
scsi singledevice 0 0 5 0
scsi singledevice 0 0 6 0
scsi singledevice 0 0 7 0
*but* fdisk gets the wrong size for the drive:
[root at grithr root]# fdisk -l /dev/sdb
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
If I attempt to create a partition of the whole (works fine) and to run
mke2fs -j /dev/sdb1
on it, it goes zipping through what looks like about the first 80 GB (up
to 650 of 1024) and then it slows way, way down and starts chewing
through *something* -- not CPU -- to the point that it takes a
noticeable count of seconds for the mouse to move. (though an audio CD
keeps playing correctly.) Several tries have not resulted in it getting
through the mke2fs command.
The place I bought the drive formated it with a win32 file system
without errors. (This is the second drive, first one had the same
problems and I assumed the drive was bad and returned it. I'm told it
accepted a Windows XP install without error.) I haven't had anything
come back that looks like an actual hardware error, either; it looks
like the problem is that fdisk has a mistaken opinion about the size of
the drive.
Have updated to:
util-linux-2.11y-35.sel
e2fsprogs-1.35-2
from devel, but it doesn't help.
(It does cut down on the errors dumped to syslog/the console, so something
changed.)
What do I do to fix this?
Preferably something doesn't involve prayer or black cockerels....
--
oak at uniserve.com | Uton we hycgan hwaer we ham agen,
| ond thonne gedhencan he we thider cumen.
| -- The Seafarer, ll. 117-118.
More information about the users
mailing list