From owner-freebsd-current@FreeBSD.ORG Tue Mar 24 07:55:49 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05268106564A for ; Tue, 24 Mar 2009 07:55:49 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id BF8198FC0C for ; Tue, 24 Mar 2009 07:55:48 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.156] (adsl-1-207-58.bna.bellsouth.net [65.1.207.58]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n2O7sQcn018342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 24 Mar 2009 03:54:26 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: "Paul B. Mahol" In-Reply-To: <3a142e750903231646x165d2bf2jcac4c6ca2c83702c@mail.gmail.com> References: <200903231541.n2NFfP6f002755@monk.cnd.dundas.on.ca> <1237829409.1771.13.camel@balrog.2hip.net> <3a142e750903231646x165d2bf2jcac4c6ca2c83702c@mail.gmail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-X3cEprJjEKoymoGIThb1" Organization: FreeBSD Date: Tue, 24 Mar 2009 02:55:23 -0500 Message-Id: <1237881323.1771.15.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 FreeBSD GNOME Team Port X-Spam-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_PBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: Douglas Berry , freebsd-current Subject: Re: Booting from usb hard disk X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 07:55:49 -0000 --=-X3cEprJjEKoymoGIThb1 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2009-03-24 at 00:46 +0100, Paul B. Mahol wrote: > On 3/23/09, Robert Noland wrote: > > On Mon, 2009-03-23 at 11:41 -0400, Douglas Berry wrote: > >> On Mon, 23 Mar 2009 05:36:15 CDT, Robert Noland wrote: > >> > So I have my i386 install on a usb hard disk, which I can only boot > >> > on one machine now. The one machine that I can make work has a bios > >> > option that reads "BIOS ehci handoff". This used to work with the > >> > old usb stack. The machines that it doesn't work on, boot the > >> > kernel, but fail to mount root, giving me the forbidding mountroot> > >> > prompt, which is immediately followed by the message saying that da0 > >> > is attached. da0 is however not listed in the available boot > >> > devices list. I tried playing around with the timeout in > >> > vfs_mount.c, but that didn't seem to have any impact. It has been > >> > suggested that this may be a "geom" timeout, but I don't know > >> > anything about the boot system really. > >> > >> I have been using tunefs(8) labeled partitions on my usb hard disk > >> under CURRENT. I changed the fstab entries to match the labels > >> (eg. assume mylabel is myroot, /dev/da0s1a becomes /dev/ufs/myroot) > >> It works well on most systems. On some systems, I see the symptom > >> you show, but I am saved by the labels showing up just after the > >> mountroot prompt. I am then able to type > >> > >> ufs:/dev/ufs/myroot > >> > >> and resume the boot. Maybe this helps you? > > > > Well, I haven't tried labeling the partitions, but ufs:/dev/da0s1a > > doesn't work from the rootmount> prompt. Even after da0 shows up. >=20 > That is strange, I just recently have used one of usb sticks (256MB) to f= ix > stupid sysinstall error. In my case da0 appeared after some delay but > usual da0s1a appeared after ? and I was able to mount root > partition multiple times. > I used usb via modules, on i386 revision r190297, with "boot -s" > (I hacked fbsd installation on stick because I didnt have time for fine > details ....) >=20 > Could try just with uhci (but it will be too sloow) So, my final work around was to set the tuneable kern.cam.scsi_delay=3D10000. That is probably too long, but it worked and I haven't had any issues since. robert. >=20 --=20 Robert Noland FreeBSD --=-X3cEprJjEKoymoGIThb1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAknIkesACgkQM4TrQ4qfROPInQCfdktWE2UliU8pkgZcTxvgTAl6 CYEAmwUttzr9lPeRGemVV/JMpua3iChl =9Al0 -----END PGP SIGNATURE----- --=-X3cEprJjEKoymoGIThb1--