From owner-freebsd-stable@FreeBSD.ORG Thu Oct 5 13:51:01 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 C897316A40F for ; Thu, 5 Oct 2006 13:51:01 +0000 (UTC) (envelope-from free.as.in.speech@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24A3443D46 for ; Thu, 5 Oct 2006 13:51:01 +0000 (GMT) (envelope-from free.as.in.speech@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so509893wxd for ; Thu, 05 Oct 2006 06:50:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=WCkZRpe1aHkH+ciDlti4plPjnDPCqyeouthtdEVa7uCV/AuSjs8cNdT/Q88SJgJlEqbKgVZalm1ht/sC0fUHrYT8QhW6lZ5rlXxGw8X1eXU6W/jDBdlTU7DeM9bcGHJ62I7m02q5aBPMPBeDlTG5DGYp+NXjoj4inuAjnutDkfQ= Received: by 10.70.19.16 with SMTP id 16mr3184986wxs; Thu, 05 Oct 2006 06:50:59 -0700 (PDT) Received: by 10.70.50.6 with HTTP; Thu, 5 Oct 2006 06:50:59 -0700 (PDT) Message-ID: <2cc028020610050650u75aaa2b7y41b15060c35a0fe3@mail.gmail.com> Date: Thu, 5 Oct 2006 15:50:59 +0200 From: "Brian King" To: "Brian King" , freebsd-stable@freebsd.org In-Reply-To: <20060930235227.GA79580@slackbox.xs4all.nl> MIME-Version: 1.0 References: <2cc028020609300334y3ca1b8bfs9204f1262aebc460@mail.gmail.com> <20060930122036.GA63969@slackbox.xs4all.nl> <2cc028020609301532q3f30489dm194d7d83383c7a36@mail.gmail.com> <20060930235227.GA79580@slackbox.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Thu, 05 Oct 2006 13:51:01 -0000 hi roland, i formatted the disk and created a single bsd slice, but no luck. it's interesting to hear that the mybook 500gb version works fine, as well as freebsd releng6 from sep.19. i'm going to hook mine up someplace else on the network, so i'm not going t= o compile a new kernel with the CAMDEBUG option. thanks again for you suggestions and help! brian On 10/1/06, Roland Smith wrote: > > 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. > > > >no other messages related to the drive are displayed on the console > during > > >> 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 an= d > > >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? > > > > > > 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) > > > > "camcontrol devlist" gives this right after plugging in the drive: > > at scbus0 target 0 lun 0 (probe0) > > > > and after it finally attaches to da0 "camcontrol devlist" gives: > > at scbus0 target 0 lun 0 (pass0,da0) > > > > so it seems that the probe phase is what is taking so long. > > 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? > > 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.0= 6) > or > > on windows xp on this computer. > > > > 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 > -- > 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) > > >