Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 1999 14:00:35 +0200
From:      Juergen Leising <a0037@stud.uni-bayreuth.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: change root device with /boot/loader
Message-ID:  <19990621140035.B5229@jl2.hnet.de>
In-Reply-To: <19990620223923.C9116@apogee.whack.org>; from Andrew Perkins on Sun, Jun 20, 1999 at 10:39:23PM -0700
References:  <19990620223923.C9116@apogee.whack.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990621140035.B5229>