Subject: Re: USB 2.0 FLASH DISK not work.
To: Ricardo A. Reis <ricardo_bsd@yahoo.com.br>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: current-users
Date: 07/04/2005 14:43:53
On Thu, Jun 30, 2005 at 07:12:20PM -0300, Ricardo A. Reis wrote:
> [...]
> 
> ------ with-pendrive-----
> 
> umass0 at uhub0 port 1 configuration 1 interface 0
> umass0: vendor 0x10d6 USB 2.0(FS) FLASH DISK, rev 1.10/1.00, addr 2
> umass0: using ATAPI over Bulk-Only
> atapibus1 at umass0: 2 targets
> sd0 at atapibus1 drive 0: <USB2.0, (FS) FLASH DISK, 1.00> disk removable
> sd0: fabricating a geometry
> sd0: 1001 MB, 1001 cyl, 64 head, 32 sec, 512 bytes/sect x 2051809 sectors
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> sd0: fabricating a geometry
> 
> -------without-pendrive-------
> umass0: at uhub0 port 1 (addr 2) disconnected
> sd0 detached
> atapibus1 detached
> umass0 detached
> 
> Disklabel output!!
> 
> # sudo disklabel sd0
> # /dev/rsd0d:
> type: ATAPI
> disk: mydisk
> label: fictitious
> flags: removable
> bytes/sector: 512
> sectors/track: 32
> tracks/cylinder: 64
> sectors/cylinder: 2048
> cylinders: 1001
> total sectors: 2051809
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # microseconds
> track-to-track seek: 0  # microseconds
> drivedata: 0
> 
> 7 partitions:
> #        size    offset     fstype [fsize bsize cpg/sgs]
> d:   2051809         0     unused      0     0        # (Cyl.      0 
> -   1001*)
> e: 168689522 1869771365    unknown                     # (Cyl. 912974+- 
> 995342+)
> f: 1869881465 1701519481    unknown                     # (Cyl. 
> 830820+- 1743848+)
> disklabel: boot block size 0
> disklabel: super block size 0
> disklabel: partition e: offset past end of unit
> disklabel: partition e: partition extends past end of unit
> disklabel: partitions e and f overlap
> disklabel: partition f: offset past end of unit
> disklabel: partition f: partition extends past end of unit
> disklabel: warning, partition g: size 0, but offset 2573
> zsh: 1185 exit 106   sudo disklabel sd0
> 
> 
> Mount output
> 
> 
> #sudo mount_msdos -l /dev/sd0e /mnt/pendrive
> mount_msdos: /dev/sd0e on /mnt/pendrive: Invalid argument
> zsh: 806 exit 1     sudo mount_msdos -l /dev/sd0e /mnt/pendrive

From the disklabel output, it looks like your device doesn't have a partition
table. So try /dev/sd0d instead.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--