USB Pen drive

walt wa1ter at myrealbox.com
Tue Jul 4 15:29:33 PDT 2006


On Tue, 4 Jul 2006, Matthew Dillon wrote:

>
> :...
> :interleave: 1
> :trackskew: 0
> :cylinderskew: 0
> :headswitch: 0		# microseconds
> :track-to-track seek: 0	# microseconds
> :drivedata: 0
> :
> :
> :5 partitions:
> :#        size    offset     fstype [fsize bsize cpg/sgs]
> : d:   4030464         0     unused      0     0        # (Cyl.      0 -   7871)
> : e:   4030432        32      MSDOS                     # (Cyl.      0*-   7871)
> :
> :-- snip --
> :
> :Now, I'd like to fool around some more and get this thing working, but
> :I have no idea what to do next. Any pointers from anybody, please?
> :
> :Thanks,
> :Karthik.
>
>     What does fdisk have to say?  Do:
>
>     fdisk da0	(or whatever the usb stick attached itself as).
>
>     Note that DragonFly disklabel's are specific to DragonFly.  You won't
>     be able to read a NetBSD disklabel from a DragonFly box.  Also,
>     generally, you have to specify the slice that the label exists in,

Just as an example, here is my 'fdisk /dev/da0' for comparison:

# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=993 heads=32 sectors/track=63 (2016 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=993 heads=32 sectors/track=63 (2016 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 6,(Primary 'big' DOS (> 32MB))
    start 245, size 1999627 (976 Meg), flag 0
        beg: cyl 0/ head 3/ sector 57;
        end: cyl 991/ head 31/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

On the other hand, even though DragonFly will mount and use my USB
stick perfectly, disklabel gives me only error messages when trying
to read from it.  This makes sense because I've never written a DFly
disklabel to the USB stick -- nor is there any need to do so.  I
think that disklabels are irrelevant to the use of USB memory sticks
on DragonFly.

Here is how is I mount the USB stick:
# mount_msdos /dev/da0s1 /mnt    ...and it 'just works' for me.

When I plug the stick into the machine, this is what gets logged:
Jul  4 15:22:11 k9 kernel: umass0: SanDisk Corporation Cruzer Mini, rev
2.00/0.20, addr 2
Jul  4 15:22:11 k9 kernel: umass0: SCSI over Bulk-Only; quirks = 0x0000
Jul  4 15:22:11 k9 kernel: umass0:4:0:-1: Attached to scbus4
Jul  4 15:22:11 k9 kernel: da0 at umass-sim0 bus 0 target 0 lun 0
Jul  4 15:22:11 k9 kernel: da0: <SanDisk Cruzer Mini 0.2> Removable Direct
Access SCSI-2 device
Jul  4 15:22:11 k9 kernel: da0: 1.000MB/s transfers
Jul  4 15:22:11 k9 kernel: da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C)


I'd be happy to help with further debugging if anyone wants help.






More information about the Users mailing list