[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: USB mass storage woes
In message <http://monkey.org/openbsd/archive/misc/0309/msg00572.html>,
Dylan Smith <dylan@iompost.co.im> wrote
> I'm trying to mount a 64MB 'keyring' USB flash drive. It refuses to work.
> Relevant parts of dmesg:
> [[...]]
> Anyone had any success with these devices?
I'm using a similar 128MB device with no problems on a Fujitsu/Siemens
E6646 Lifebook (an x86 laptop) under 3.3-stable.
I don't think I ever managed to mount it (I didn't have a proper disk
label), but I didn't try very hard, because mtools (available as a
package or via ports) accesses it just fine (I have a messy-dos file
system on it).
Relevant parts of my dmesg:
OpenBSD 3.3-stable (GENERIC) #1: Tue Aug 5 22:38:34 CEST 2003
jonathan@osmium.aei.mpg.de:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III (Tualatin) ("GenuineIntel" 686-class) 731 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SIMD
real mem = 535801856 (523244K)
avail mem = 491212800 (479700K)
[[...]]
uhci0 at pci0 dev 29 function 0 "Intel 82801CA/CAM USB" rev 0x01: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 2 "Intel 82801CA/CAM USB" rev 0x01: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x0000 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
When I plug it into one of the USB ports, I get a console & dmesg
message like this:
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: vendor 0x0c45 USB Mass Storage Device, rev 1.10/1.00, addr 2
umass0: using SCSI over BBB-P
scsibus0 at umass0: 2 targets
sd0 at scsibus0 targ 1 lun 0: <USB NAND, FLASH DISK, 0.20> SCSI2 0/direct removable
sd0: mode sense (4) returned nonsense; using fictitious geometry
sd0: 125MB, 125 cyl, 64 head, 32 sec, 512 bytes/sec, 256000 sec total
I'm accessing this as the u: drive in mtools. My /etc/mtools.conf
looks like this:
# usb flash drive (left slot on osmium)
MTOOLS_DATE_STRING="yyyy-mm-dd"
drive u:
file="/dev/rsd0c"
mformat_only
cylinders=125
heads=64
sectors=32
drive a:
file="/dev/rfd0Bc"
mformat_only
cylinders=80
heads=2
sectors=18
ciao,
--
-- "Jonathan Thornburg (remove -animal to reply)" <jthorn@aei.mpg-zebra.de>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam