From owner-freebsd-questions Mon Jun 21 5: 9:25 1999 Delivered-To: freebsd-questions@freebsd.org Received: from btr0xe.rz.uni-bayreuth.de (btr0xe.rz.uni-bayreuth.de [132.180.15.14]) by hub.freebsd.org (Postfix) with ESMTP id 3929814C8C for ; Mon, 21 Jun 1999 05:09:13 -0700 (PDT) (envelope-from a0037@stud.uni-bayreuth.de) Received: from jl2.hnet.de (root@btdial-a-079.dial.uni-bayreuth.de [132.180.246.79]) by btr0xe.rz.uni-bayreuth.de (8.8.2/8.7.3) with ESMTP id OAA06777 for ; Mon, 21 Jun 1999 14:09:10 +0200 (MET DST) Received: (from a0037@localhost) by jl2.hnet.de (8.8.7/8.8.7) id OAA07007 for freebsd-questions@FreeBSD.ORG; Mon, 21 Jun 1999 14:00:35 +0200 Date: Mon, 21 Jun 1999 14:00:35 +0200 From: Juergen Leising To: freebsd-questions@FreeBSD.ORG Subject: Re: change root device with /boot/loader Message-ID: <19990621140035.B5229@jl2.hnet.de> Reply-To: Juergen Leising References: <19990620223923.C9116@apogee.whack.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <19990620223923.C9116@apogee.whack.org>; from Andrew Perkins on Sun, Jun 20, 1999 at 10:39:23PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jun 20, 1999 at 10:39:23PM -0700, Andrew Perkins wrote: > Hello everyone, > > After searching for the answer to this question, I have noticed > that other folks are having the same sort of problem, and no answer > has been posted. > > 1. Intro > FreeBSD 3.x (3.2-RELEASE in my case) uses a new 'third stage' boot > loader to augment the limited feature set of the 'second stage' > boot loader that many 2.2.x users are familiar with. > > 2. Problem > When FreeBSD is installed on the secondary IDE master drive, it > becomes necessary to explicitly specify an alternate root device. > This can be accomplished by telling the 'second stage' boot loader > where to boot from: (i.e. 0:wd(x,a)kernel in /boot.config, where > 'x' is the drive number). However, if one wishes to use some > features of the 'third stage' boot loader, setting rootdev may > not give the desired result as 'lsdev' in '/boot/loader' prints > something like: > > A: disk0 > C: disk1 > ... freebsd partitions here ... > D: disk2 > > when in reality, the BIOS boot order is set to 'D,A' and the > FreeBSD partitions should be located under disk2 (where they > really do exist, and where the kernel will look for them once > loaded.) > > 3. Question > How does one set the secondary IDE master drive as the root > device using /boot/loader.conf or related files? > I myself have put the following into /boot/loader.rc: set root_disk_unit=2 in order to have the kernel searching for / on the third disk: i. e. the first disk on the second controller. Bye, bye, Juergen. -- ***************************************************************** * Juergen Leising, E-Mail: juergen.leising@stud.uni-bayreuth.de * * http://www.stud.uni-bayreuth.de/~a0037/ * ***************************************************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message