[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Openbsd 3.7 using USB 1gb (fat32-winxp) mount says " Inappropriate file type or format "



> > 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 
> > 
 
 looks good until here
 
> > 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*
> > 
 
 First problem:
 If the drive WOULD be formated right the partition would show up as sd0i not 'a'
 this is important since I spent a hell of a time figuring out that a msdos
 Partition is NEVER supposed to show up as 'a'.
 
 How to fix it ? read on...
 
> > ** 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
 
 The initial problem, keep the geometry, but change the Typ from 
 Win95 FAT-32
 to
 DOS > 32MB	( which is number 06 )
 
 then take out the stick, reboot and reinsert it.
 
 now try to "newfs_msdos -F 32 sd0i"
 
 why should this work ?
 I did the same with my 1gig flash drive by Pretec, these things are that small
 and a necklace comes with them ( no I don't sell anything just reporting my
 experience since I had 'bad' ones already as well ).
 
> > 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
> > 
> > 
sorry for bad formating .. forgot the cc to misc@



Visit your host, monkey.org