Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2000 15:25:11 +0000
From:      David Banning <tracker@worldy.com>
To:        bduk@earthlink.net
Cc:        questions@FreeBSD.ORG
Subject:   Re: how to set Freebsd boot bisk as secondary drive
Message-ID:  <38D8E5D7.41C67EA6@worldy.com>
References:  <200003221734.JAA00688@arthlink.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Derrick Baumer wrote:
> 
> > From: David Banning <tracker@worldy.com>
> >
> > > I'm really just guessing, but doesn't the kernel config file say where
> > > to expect root to be?  It's compiled into the kernel.
> >
> > It seems the config file you speak of  is loader.conf located in
> > /boot/defaults -
> > but I notice that it does not set the boot drive (although it can) -
> > I tried setting it - no go.
> > If the boot drice is compiled into the kernel I don't know how - I have
> > never seen it in the kernel config files or set it before compiling a
> > kernel.
> 
> The kernel config file I was referring to was the one used in
> compiling the kernel.  Mine is /usr/src/sys/i386/conf/QUAK.  There's a
> line like this:
> 
> config  kernel  root on wd0
> 
> That's the line I'd change.  It usually wouldn't need to be changed
> except in a case like yours.
> 
> > > You probably
> > > need to use some command line switches to get an initial boot;
> >
> > Tried -a and -r that only got me a panic and immediate reboot
> 
> I don't know what the exact switch you use is, but you should be able
> to select the boot device at boot time.  Anybody else know?

I tried as you suggest and re-compiled my Kernel.
When I do the reverse of what I have been doing 
(boot on wd0 while my kernel is now configured for wd1)
bootup message says "changing device to wd0s1a" and keeps
going with a perfect boot.

Just to try it, I wired the drive as wd1 again - no go -same 
problems.  What I did notice however is this;
the emergency read-only shell it brings up it calls
simply wd1s1a (a dev that does not exist).
When I do a df it shows the / file system as 512 byte blocks,
while when I boot the disk without errors in the wired wd0
position, it comes up as 1024 byte blocks.
It is the same file system - same ratio of total to used to available
blocks. Just double the size of each block.
That got me wondering if there is some config place where the machine is
told what size blocks to use. I did grepped "512" and "1024"
in /boot /boot/defaults and /usr/src/sys/i386/conf to see if anything is
configed as such - no luck.


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?38D8E5D7.41C67EA6>