USB Drive not showing up correctly in 8.1 (works in 7.3)
Jerahmy Pocott
quakenet1 at optusnet.com.au
Fri Jan 14 12:25:29 UTC 2011
Hello,
I have a USB Drive that was working fine under 7.3, but since updating to 8.1 no longer
has the correct /dev entries. Under 7.3 it was da0s1, in 8.1 there is now only da0 and da0a,
which shouldn't exist..
# fdisk /dev/da0 shows:
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=121601 heads=255 sectors/track=63 (16065 blks/cyl)
Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=121601 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 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 1953520002 (953867 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 768/ 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>
Which is correct, and thus should result in a s1 in the dev tree..
# bsdlabel /dev/da0 shows:
# /dev/da0:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 1953525152 16 unused 0 0
c: 1953525168 0 unused 0 0 # "raw" part, don't edit
I don't think there should even be a label at that level..
# gpart list shows:
Geom name: da0
fwheads: 255
fwsectors: 63
last: 1953525167
first: 0
entries: 8
scheme: BSD
Providers:
1. Name: da0a
Mediasize: 1000204877824 (932G)
Sectorsize: 512
Mode: r0w0e0
rawtype: 0
length: 1000204877824
offset: 8192
type: !0
index: 1
end: 1953525167
start: 16
Consumers:
1. Name: da0
Mediasize: 1000204886016 (932G)
Sectorsize: 512
Mode: r0w0e0
The scheme seems to indicate that geom is not reading the fdisk data?
The dmesg output for the device is:
umass0: <MSC Bulk-Only Transfer> on usbus4
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0:0:0:-1: Attached to scbus0
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0: <SAMSUNG HD103UJ > Fixed Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
There is also an error message during boot, which I'm not sure if it's related but says:
usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER
Any ideas on how to correct this problem?
Cheers!
More information about the freebsd-stable
mailing list