From owner-freebsd-stable@FreeBSD.ORG Sat Sep 30 23:52:33 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 E3DDB16A403 for ; Sat, 30 Sep 2006 23:52:32 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr6.xs4all.nl (smtp-vbr6.xs4all.nl [194.109.24.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0D7843D4C for ; Sat, 30 Sep 2006 23:52:29 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr6.xs4all.nl (8.13.8/8.13.8) with ESMTP id k8UNqS60082440; Sun, 1 Oct 2006 01:52:28 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id E24C8B836; Sun, 1 Oct 2006 01:52:27 +0200 (CEST) Date: Sun, 1 Oct 2006 01:52:27 +0200 From: Roland Smith To: Brian King Message-ID: <20060930235227.GA79580@slackbox.xs4all.nl> Mail-Followup-To: Brian King , freebsd-stable@freebsd.org References: <2cc028020609300334y3ca1b8bfs9204f1262aebc460@mail.gmail.com> <20060930122036.GA63969@slackbox.xs4all.nl> <2cc028020609301532q3f30489dm194d7d83383c7a36@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline In-Reply-To: <2cc028020609301532q3f30489dm194d7d83383c7a36@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 23:52:33 -0000 --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 01, 2006 at 12:32:06AM +0200, Brian King wrote: > >I've got an external harddrive with a WD disk. It works without > >problems; > interesting. perhaps it's something specific to the MyBook. i'm guessing > that you don't have a MyBook? Correct.=20 > >no other messages related to the drive are displayed on the console duri= ng > >> these 15 minutes. > >> > >> 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 >=20 > no, i haven't noticed any. in fact, after about 10 minutes the disk spins > down because there's been no activity. Then I guess it's time for some kernel debugging. ;-) > ... and then the long pause before it attaches to da0 (nothing more is > displayed at time of attachment) >=20 > "camcontrol devlist" gives this right after plugging in the drive: > at scbus0 target 0 lun 0 (probe0) >=20 > and after it finally attaches to da0 "camcontrol devlist" gives: > at scbus0 target 0 lun 0 (pass0,da0) >=20 > so it seems that the probe phase is what is taking so long.=20 Could be. But it could also be the creation of the appropriate devices. So it might be CAM, devfs or a combination of the two. > is there any > way to specify what action to take when this specific drive is attached, > instead of having the system probe it? =20 Sorry, I don't know. > i also tried running devd verbosely in the foreground (/sbin/devd -d -D). > here is the output when the drive is attached: > -------- > -------- > ... and then the long pause before it attaches to da0 (nothing more is > displayed at time of attachment) That more or less rules out devd, I'd say. > this MyBook doesn't have any delay when connecting on linux (ubuntu 6.06)= or > on windows xp on this computer. >=20 > any ideas? i'm stumped at this point... Could you test if it makes a difference if there are BSD slices on it? Otherwisw check the partition table with fdisk to see if the partition table is OK. According to =A77.3 of "The design and implementation of the FreeBSD operating system" attach operations for da devices are handled in the "CAM peripheral layer", one ot the three layers in the CAM subsystem. It might be usefull to build a kernel with the CAM driver built-in complete with the CAMDEBUG option, see cam(4). You can then use camcontrol(8) to enable debugging options, e.g. CAM_DEBUG_CDB. 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) --ZPt4rx8FFjLCG7dd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFHwM7EnfvsMMhpyURAhStAJ4tbNwQPEMUUMGxJhHDjUVrIM/ALwCeJwON wMaGsWdfeNA7+DOntsmcZyo= =AD/D -----END PGP SIGNATURE----- --ZPt4rx8FFjLCG7dd--