From owner-freebsd-stable@FreeBSD.ORG Sat Sep 30 12:22:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B464E16A40F for ; Sat, 30 Sep 2006 12:22:12 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A2F843DB4 for ; Sat, 30 Sep 2006 12:21:12 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id k8UCKafG079742; Sat, 30 Sep 2006 14:20:37 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 4B357B836; Sat, 30 Sep 2006 14:20:36 +0200 (CEST) Date: Sat, 30 Sep 2006 14:20:36 +0200 From: Roland Smith To: Brian King Message-ID: <20060930122036.GA63969@slackbox.xs4all.nl> Mail-Followup-To: Brian King , freebsd-stable@freebsd.org References: <2cc028020609300334y3ca1b8bfs9204f1262aebc460@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <2cc028020609300334y3ca1b8bfs9204f1262aebc460@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-stable@freebsd.org Subject: Re: western digital mybook (external usb drive, 250gb) takes 15 minutes to be recognized 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: Sat, 30 Sep 2006 12:22:12 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 30, 2006 at 12:34:10PM +0200, Brian King wrote: > i'm seeing strange behavior for a wd mybook on freebsd 6.1-RELEASE-p5, > GENERIC kernel. >=20 > - the system hangs on boot if it's attached. it stops right after it has > recognized my internal hard drives and dvd writer. perhaps it would > eventually complete the booting process, but i give up after several > minutes, unplug the usb drive and press the reset button. > - after boot, if i attach the drive i see this message on the first > terminal: > ----- > umass0: Western Digital External HDD, rev 2.00/2.06, addr 2 > ----- >=20 > about 15 minutes later (!), i see: > ----- > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-0 device > da0: 40.000MB/s transfers > da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) > ----- I've got an external harddrive with a WD disk. It works without problems; umass0: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device=20 da0: 40.000MB/s transfers da0: 238475MB (488397168 512 byte sectors: 255H 63S/T 30401C) I've encrypted mine with GEOM_ELI though, and put a single filesystem on the encryped disk. > no other messages related to the drive are displayed on the console during > these 15 minutes. >=20 > once the da0 device is recognized, i can mount the partitions (i've got it > split into two roughly equal-sized primary partitions, one ext2fs and one > msdos), e.g.: > mount -t ext2fs /dev/da0s1/mnt/backup Maybe the driver is looking for FreeBSD slices? Do you see any disk activity during this 15 minute period? =20 > here is what i see about my usb hardware with dmesg: > ----- > uhci0: port 0xd400-0xd41f at device 16.0 on p= ci0 > uhci0: [GIANT-LOCKED] > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0xd000-0xd01f at device 16.1 on p= ci0 > uhci1: [GIANT-LOCKED] > usb3: companion controllers, 2 ports each: usb0 usb1 usb2 > usb3: on ehci0 > usb3: USB revision 2.0 > uhub3: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > uhub3: 6 ports with 6 removable, self powered > ----- Got more or less the same here. A couple of 83C572's with a VT6202 for USB 2.0. =20 > here is my /etc/usbd.conf file (i've never modified it, i guess this is t= he > default): > ----- Have you even enabled it? It's disabled by default. As I understand, it's deprecated in favour of devd. I can't find any devd events on my system for the drive, probably because it's handled by atapicam(4). > what could be causing this delay between the attachment of the drive and > registration of the da0 device? Looking for FreeBSD slices is one thing I can think of. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFHmEUEnfvsMMhpyURAgzuAJ95ltj98rKRTyS0CBNK0ipv9q8tkQCfUTvb B0eC7eD1KE1DD6aUkp2mvJA= =S6LA -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--