umass troubles again
Andrea Venturoli
ml at netfence.it
Sun Feb 20 19:35:42 UTC 2011
Hello.
I've a 4GB USB memory which is formatted as a single FAT32 partition.
When I insert it, I get:
> root: Unknown USB device: vendor 0x1e3d product 0x2092 bus uhub5
> kernel: ugen5.3: <USB0911B> at usbus5
> kernel: umass1: <USB0911B Flash Disk, class 0/0, rev 2.00/1.00, addr 3> on usbus5
> kernel: umass1: SCSI over Bulk-Only; quirks = 0x0000
> kernel: umass1:3:1:-1: Attached to scbus3
> kernel: da6 at umass-sim1 bus 1 scbus3 target 0 lun 0
> kernel: da6: <USB0911B Flash Disk 5.00> Removable Direct Access SCSI-2 device
> kernel: da6: 40.000MB/s transfers
> kernel: da6: 3855MB (7895040 512 byte sectors: 255H 63S/T 491C)
> kernel: GEOM: da6: geometry does not match label (16h,63s != 255h,63s).
> kernel: GEOM: da6: media size does not match label.
> # ls /dev/|grep da6
> da6
> da6a
(I'd expect da6s1, instead of da6a...)
> # fdisk /dev/da6
> ******* Working on device /dev/da6 *******
> parameters extracted from in-core disklabel are:
> cylinders=491 heads=255 sectors/track=63 (16065 blks/cyl)
>
> parameters to be used for BIOS calculations are:
> cylinders=491 heads=255 sectors/track=63 (16065 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 (0x06),(Primary DOS, 16 bit FAT (>= 32MB))
> start 63, size 7887852 (3851 Meg), flag 0
> beg: cyl 0/ head 1/ sector 1;
> end: cyl 490/ head 254/ sector 63
> The data for partition 2 is:
> <UNUSED>
> The data for partition 3 is:
> <UNUSED>
> The data for partition 4 is:
> <UNUSED>
> # mount -t msdosfs /dev/da6a /mnt/
> # df
> Filesystem 1K-blocks Used Avail Capacity Mounted on
> ...
> /dev/da6a 399904 4048 395856 1% /mnt
Now... isn't that a tenfold error?
> # df -h
> Filesystem Size Used Avail Capacity Mounted on
> ...
> /dev/da6a 391M 4.0M 387M 1% /mnt
The partition should be 4GB, not 400MB...
Any hint on this?
System is 8.1-RELEASE-p2/i386.
bye & Thanks
av.
More information about the freebsd-questions
mailing list