I have a 1gb USB Flash Drive and i formatted it on Windows XP so i can
move files from windows to openbsd and vice versa. i plugged the usb
on my bsd box and dmesg shows up as:
** dmesg: **
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: SONY USB 2.0 Flash, rev 1.10/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: <SONY, USB 2.0 Flash, %z!Y> SCSI2
0/direct removable
sd0: 1024MB, 1024 cyl, 64 head, 32 sec, 512 bytes/sec, 2097280 sec total
it seems that openbsd sees the drive .. cool
but when i mount it
relic# mount -t msdos /dev/sd0a /mnt
mount_msdos: /dev/sd0a on /mnt: Inappropriate file type or format
i check the disklabel, and fdisk results:
** disklabel: **
relic# disklabel sd0
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: USB 2.0 Flash
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 1024
total sectors: 2097280
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097217 63 MSDOS # Cyl 0*- 1024*
c: 2097280 0 unused 0 0 # Cyl 0 - 1024*
** fdisk: **
relic# fdisk sd0
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: sd0 geometry: 1024/64/32 [2097280 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*3: 0B 0 1 1 - 1023 63 32 [ 32: 2097120 ] Win95 FAT-32
it seems that openbsd sees the fs as is FAT32 .. but i still don't get
it why it's saying something like " Inappropriate file type or format
" maybe I'm missing something .. any help from you guys out there ..as
a workaround .. i've tried to format the usb drive via newfs_msdos (
newfs_msdos /dev/sd0a ) it was able to format it and all but when it's
time to put it on the xp box .. it says drive cannot be read .. I'm
using OpenBSD 3.7 GENERIC#50
any input is cool.... any answers .. will be awesome!!
edgar