From owner-freebsd-stable@FreeBSD.ORG Thu Jan 15 00:04:24 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B0D51065672 for ; Thu, 15 Jan 2009 00:04:24 +0000 (UTC) (envelope-from heliocentric@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 3888F8FC0C for ; Thu, 15 Jan 2009 00:04:23 +0000 (UTC) (envelope-from heliocentric@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so344878ywe.13 for ; Wed, 14 Jan 2009 16:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=wcmrbVB8EZPWMIyqkDp1kyL3/3iNSZjxoeRD/1x3qrg=; b=Vw//CUMrphTz+JmApGcyRVdHSaqShEwF5oP2PYHb5tHqTa4LMf8aX+ElMGR+lBP89R E7W1WlZ54rwHGE2x/f3PQS1ehFOqqgG+YluZN7k0rYrIsp22g/WUYkFoO11kz7lT2boB 8bs8GMwlEcUbJ0o+kJF6JBPPdIM2V4DVbRx+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=lkTU6s5C27/C7jde28izcR47xwjkHNcoDx4Ds5KMN420xrcS60bOCP+tujwBBy+JVw CBUNunwFeHiAtkZ30YvzOphGVTOlOaDFNDWHE7EpBQT5pxuojypH6Jv/EE1MJePd0CW+ tg/BSjbkzlrYcJ5EtG5MKki/uSUNpx9KYj+jU= Received: by 10.90.105.6 with SMTP id d6mr481725agc.22.1231977863445; Wed, 14 Jan 2009 16:04:23 -0800 (PST) Received: by 10.90.36.7 with HTTP; Wed, 14 Jan 2009 16:04:23 -0800 (PST) Message-ID: Date: Wed, 14 Jan 2009 19:04:23 -0500 From: "Dylan Cochran" To: "=?ISO-8859-1?Q?V=E1clav_Haisman?=" In-Reply-To: <496E282A.5070004@sh.cvut.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <496E282A.5070004@sh.cvut.cz> Cc: freebsd-stable@freebsd.org Subject: Re: Mounting / using /dev/ufs/name 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, 15 Jan 2009 00:04:24 -0000 On Wed, Jan 14, 2009 at 1:00 PM, V=E1clav Haisman wr= ote: > Hi, > I tried to mount root slice using the device nodes provided in /dev/ufs > directory. It works fine for other slices but not for the root slice. If = I > try it I get prompt asking for root slice at boot time. It this not possi= ble > at all or am I doing something wrong? You should add vfs.root.mountfrom=3D"ufs:ufs/whatever" to /boot/loader.conf This will short circuit the bootloader's attempts to resolve it from the rootdev:/etc/fstab entry for /, which, occasionally, will be unable to deal with an fstab with an otherwise legal ufs label. I noticed it a few years ago when I moved every machine I had to using geom_label to find the root device, but I was unable to find the source of the bug in the code (src/sys/boot/common/boot.c, the getrootmount routine).