From owner-freebsd-geom@FreeBSD.ORG Thu Mar 3 14:47:47 2011 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 255C31065670 for ; Thu, 3 Mar 2011 14:47:47 +0000 (UTC) (envelope-from xi@borderworlds.dk) Received: from kazon.borderworlds.dk (kazon.borderworlds.dk [IPv6:2a01:4f8:101:4201::1:1]) by mx1.freebsd.org (Postfix) with ESMTP id B4FE38FC14 for ; Thu, 3 Mar 2011 14:47:46 +0000 (UTC) Received: from borg.borderworlds.dk (localhost [127.0.0.1]) by kazon.borderworlds.dk (Postfix) with ESMTP id 665725C3B for ; Thu, 3 Mar 2011 15:47:45 +0100 (CET) Message-ID: <4D6FAA10.5040202@borderworlds.dk> Date: Thu, 03 Mar 2011 15:47:44 +0100 From: Christian Laursen Organization: The Border Worlds User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.14) Gecko/20110302 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Is it possible to delay the root mount? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2011 14:47:47 -0000 Hello, I'm having some problems when booting from a USB memstick and mounting root from a /dev/label partition on said memstick. I am using 8.2-RELEASE. I get the usual "Root mount waiting for: usbXX" message when booting but most of the time when the kernel is done waiting the /dev/label partition has not yet been detected and the root mount then fails. It seems to depend on the timing of the USB discovery. I plugged in a USB keyboard to be able to enter the correct device at the mountroot prompt and that changed the timing in a way that made the root mount succeed... Is there a way to make the root mount wait for a specific device like /dev/label/myroot? Even a statically configured sleep before mounting root would solve my problem. If there is an easy way to patch such a thing into the kernel I would be happy. A tunable would of course be event better. Thanks in advance for any help regarding this. By the way, the box I'm working with is documented a little bit here: http://borderworlds.dk/~xi/BRIK/ -- Christian Laursen