From owner-freebsd-stable@FreeBSD.ORG Fri Jan 14 12:25:28 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1441106564A for ; Fri, 14 Jan 2011 12:25:28 +0000 (UTC) (envelope-from quakenet1@optusnet.com.au) Received: from fallbackmx06.syd.optusnet.com.au (fallbackmx06.syd.optusnet.com.au [211.29.132.8]) by mx1.freebsd.org (Postfix) with ESMTP id 8E5718FC0A for ; Fri, 14 Jan 2011 12:25:28 +0000 (UTC) Received: from mail02.syd.optusnet.com.au (mail02.syd.optusnet.com.au [211.29.132.183]) by fallbackmx06.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p0EARZQe011000 for ; Fri, 14 Jan 2011 21:27:35 +1100 Received: from [192.168.100.21] (c220-239-108-58.belrs4.nsw.optusnet.com.au [220.239.108.58]) by mail02.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p0EARXeZ012165 for ; Fri, 14 Jan 2011 21:27:33 +1100 From: Jerahmy Pocott Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 14 Jan 2011 21:27:32 +1100 Message-Id: <659F3C99-CA41-4685-B981-115802734D02@optusnet.com.au> To: freebsd-stable@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Subject: USB Drive not showing up correctly in 8.1 (works in 7.3) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2011 12:25:29 -0000 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=3D121601 heads=3D255 sectors/track=3D63 (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=3D121601 heads=3D255 sectors/track=3D63 (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: The data for partition 3 is: The data for partition 4 is: 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 =20 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: on usbus4 umass0: SCSI over Bulk-Only; quirks =3D 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device=20 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!