Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Oct 2006 01:52:27 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Brian King <free.as.in.speech@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: western digital mybook (external usb drive, 250gb) takes 15 minutes to be recognized
Message-ID:  <20060930235227.GA79580@slackbox.xs4all.nl>
In-Reply-To: <2cc028020609301532q3f30489dm194d7d83383c7a36@mail.gmail.com>
References:  <2cc028020609300334y3ca1b8bfs9204f1262aebc460@mail.gmail.com> <20060930122036.GA63969@slackbox.xs4all.nl> <2cc028020609301532q3f30489dm194d7d83383c7a36@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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;
<snip>
> 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. ;-)

<snip>
> ... 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:
> <WD 2500JB External 0107>          at scbus0 target 0 lun 0 (probe0)
>=20
> and after it finally attaches to da0 "camcontrol devlist" gives:
> <WD 2500JB External 0107>          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:
> --------
<snip>
> --------
> ... 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060930235227.GA79580>