From owner-freebsd-current@FreeBSD.ORG Fri Mar 5 13:17:00 2010 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 992741065672 for ; Fri, 5 Mar 2010 13:17:00 +0000 (UTC) (envelope-from giovanni.trematerra@gmail.com) Received: from mail-fx0-f223.google.com (mail-fx0-f223.google.com [209.85.220.223]) by mx1.freebsd.org (Postfix) with ESMTP id 2BCC68FC18 for ; Fri, 5 Mar 2010 13:16:59 +0000 (UTC) Received: by fxm23 with SMTP id 23so2585944fxm.3 for ; Fri, 05 Mar 2010 05:16:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=JE8tBGo7TmTlnwyevoob/ygBhSSegYnUnjHHrVJiKH0=; b=Nc19xGwR96gGOENmgiKN2+OB8gOnAOw9FB3+Hr3dBiqoKcOaxzBS2zzTR1CWQLHH7X 9jphoVt55thhCBsZ6jlpILlFVf4unC/BDVv4VHSIfxIqemdk4XLERja13JOEkdol3u+C nnN6MBldSS5TN2viLDClkyh8NPWo++OsVxkl0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SycVIbaTUIz8tJEHF52tUMHv2pOHQ2oGT42gOLWT5KIN7hWVW5nwAaGisXtS+yRllr mSr2lE0bHGrISuDXxAHGf2xWCIQq4XYoY3VyqO1nZA7BhhNUTgTS2uUjD3U2l+gDYTq4 GMfzEvTK7r932CtsNHN0O8mRlj7yOL9LCe1/U= MIME-Version: 1.0 Received: by 10.223.132.209 with SMTP id c17mr1046609fat.37.1267795015126; Fri, 05 Mar 2010 05:16:55 -0800 (PST) In-Reply-To: <201003011731.20790.hselasky@c2i.net> References: <201003011731.20790.hselasky@c2i.net> Date: Fri, 5 Mar 2010 14:16:55 +0100 Message-ID: <4e6cba831003050516r3cf2ee88p65486248e861dbed@mail.gmail.com> From: Giovanni Trematerra To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org Subject: Re: [FAQ] FBSD on a USB stick 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: Fri, 05 Mar 2010 13:17:00 -0000 Instead of this patch people can use kern.cam.boot_delay Just set a delay in ms. That works on 8-STABLE too. -- Gianni On Mon, Mar 1, 2010 at 5:31 PM, Hans Petter Selasky wrot= e: > Hi, > > Sometimes the USB sticks won't get detected in time. You can fix this by = using > the following simple quick and dirty patch. > > --HPS > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/kern/vfs_mount.c =A0 =A0 =A0 =A0(revision 204512) > +++ sys/kern/vfs_mount.c =A0 =A0 =A0 =A0(local) > @@ -1656,6 +1656,8 @@ > =A0 =A0 =A0 =A0 =A0 =A0UMA_ALIGN_PTR, UMA_ZONE_NOFREE); > =A0 =A0 =A0 =A0devfs_first(); > > +repeat: > + > =A0 =A0 =A0 =A0/* > =A0 =A0 =A0 =A0 * We are booted with instructions to prompt for the root = filesystem. > =A0 =A0 =A0 =A0 */ > @@ -1725,9 +1727,10 @@ > =A0 =A0 =A0 =A0 * Everything so far has failed, prompt on the console if = we haven't > =A0 =A0 =A0 =A0 * already tried that. > =A0 =A0 =A0 =A0 */ > - =A0 =A0 =A0 if (!asked) > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (!vfs_mountroot_ask()) > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 goto mounted; > + =A0 =A0 =A0 if (!asked) { > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 pause("WDISK", 1*hz); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 goto repeat; > + =A0 =A0 =A0 } > > =A0 =A0 =A0 =A0panic("Root mount failed, startup aborted."); > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >