Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 1999 13:52:15 -0600
From:      "Thomas T. Veldhouse" <veldy@visi.com>
To:        "FreeBSD-Current" <freebsd-current@FreeBSD.ORG>
Subject:   /boot/loader and booting off of second IDE
Message-ID:  <000001be4252$e2562340$0264a8c0@rover.mn.mediaone.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
OK.  I have tried to figure out how to boot off of my second IDE drive and I
am close, but I still haven't got it.  I need to boot wd2s1a.  Here is what
I have done.

Booting off of a floppy with the old boot blocks:

    1:wd(2,a)/boot/loader

    I get to the prompt and type:

    set currdev=disk2s1a
    set rootdev=disk2s1a

    when I type show, I see loaddev=disk2s1a:, but there does not seem to be
any documentation on this.  Anybody know if this is significant?  Anyway,  I
then do:

    boot -rootdev

And the kernel proceeds to boot and it actually mounts the correct root
(wd2s1a).  It shows the all the drives are clean and then it fails, stating
that it can't mount wd2s1a because the device is incompatible (or something
like that - I am running from memory, as I have blown my system with fdisk
(DOS) and am rebuilding) and then drops to a single user shell with /
mounted read-only.  It seems to me that it is having a problem going from
root as a read-only filesystem to a read-write filesystem.  I have tried
many combinations without success.  If it mounts root, it always fails
during the remount (fstab).  If I don't pass rootdev as an argument to the
kernel, it tries to mount wd1s1 and then it panics, obviously because there
is no [UFS] filesystem there.

Any ideas what else to try?

Tom Veldhouse
veldy@visi.com

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content='"MSHTML 4.72.3612.1700"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>OK.&nbsp; I have tried to figure out how to boot off of my second IDE 
drive and I am close, but I still haven't got it.&nbsp; I need to boot 
wd2s1a.&nbsp; Here is what I have done.</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>Booting off of a floppy with the old boot blocks:</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp; 1:wd(2,a)/boot/loader</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp; I get to the prompt and type:</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp; set currdev=disk2s1a</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp; set rootdev=disk2s1a</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp; when I type show, I see loaddev=disk2s1a:, but there 
does not seem to be any documentation on this.&nbsp; Anybody know if this is 
significant?&nbsp; Anyway,&nbsp; I then do:</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2>&nbsp;&nbsp;&nbsp; boot -rootdev</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial size=2>And 
the kernel proceeds to boot and it actually mounts the correct root 
(wd2s1a).&nbsp; It shows the all the drives are clean and then it fails, stating 
that it can't mount wd2s1a because the device is incompatible (or something like 
that - I am running from memory, as I have blown my system with fdisk (DOS) and 
am rebuilding) and then drops to a single user shell with / mounted 
read-only.&nbsp; It seems to me that it is having a problem going from root as a 
read-only filesystem to a read-write filesystem.&nbsp; I have tried many 
combinations without success.&nbsp; If it mounts root, it always fails during 
the remount (fstab).&nbsp; If I don't pass rootdev as an argument to the kernel, 
it tries to mount wd1s1 and then it panics, obviously because there is no [UFS] 
filesystem there.</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial size=2>Any 
ideas what else to try?</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial size=2>Tom 
Veldhouse</FONT></SPAN></DIV>
<DIV><SPAN class=620513819-17011999><FONT color=#000000 face=Arial size=2><A 
href="mailto:veldy@visi.com">veldy@visi.com</A></FONT></SPAN></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001be4252$e2562340$0264a8c0>