Subject: Can't read/write raw device on USB drive
To: None <current-users@netbsd.org>
From: Curt Sampson <cjs@cynic.net>
List: current-users
Date: 12/17/2003 13:52:05
I'm running a 1.6ZG build from yesterday, though this problem's been
around for at least a month.
I have two USB clip drives, a 128 MB "Genuine":
umass0: EasyDisk Flash Disk, rev 1.10/1.00, addr 4
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd1 at scsibus0 target 0 lun 0: <VTEC, USB FLASH DRIVE, 1.00> disk removable
sd1: fabricating a geometry
sd1: 125 MB, 125 cyl, 64 head, 32 sec, 512 bytes/sect x 256000 sectors
and a 256 MB Buffalo:
umass0 at uhub4 port 2 configuration 1 interface 0
umass0: USB Flash Disk, rev 1.10/1.10, addr 4
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd1 at scsibus0 target 0 lun 0: <BUFFALO, ClipDrive, 1.88> disk removable
sd1: fabricating a geometry
sd1: 250 MB, 250 cyl, 64 head, 32 sec, 512 bytes/sect x 512000 sectors
The 128 MB one works just fine. The 256 I can newfs, mount, and read and
write in a filesystem, but if I try to install boot blocks or even use
dd on a raw device, it just doesn't work:
ironic $ dd if=/dev/rsd1d of=/dev/null count=128
0+0 records in
0+0 records out
0 bytes transferred in 0.005 secs (0 bytes/sec)
ironic $ dd if=/dev/rsd1a of=/dev/null count=128
0+0 records in
0+0 records out
0 bytes transferred in 0.005 secs (0 bytes/sec)
(These commands work fine on the 128 MB drive.)
My securelevel is -1, so I don't think that's the problem. Anybody got
any idea what the heck is wrong?
cjs
--
Curt Sampson <cjs@cynic.net> +81 90 7737 2974 http://www.NetBSD.org
Don't you know, in this new Dark Age, we're all light. --XTC