*BSD News Article 26945


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!olivea!inews.intel.com!frx198!mwilley
From: mwilley@frx198.NoSubdomain.NoDomain (Mark Willey - PCD)
Newsgroups: comp.os.386bsd.misc
Subject: How I got NetBSD to boot on wd1...
Date: 4 Feb 1994 17:08:22 GMT
Organization: Intel
Lines: 51
Sender: mwilley@frx198 (Mark Willey - PCD)
Distribution: world
Message-ID: <2itve6$k59@inews.intel.com>
References: <2if74a$jir@dogwood.cs.scarolina.edu> <RISNER.94Jan31203005@batman.lexmark.com> <CKMI16.L9s@boulder.parcplace.com>
NNTP-Posting-Host: frx198.intel.com

In article <CKMI16.L9s@boulder.parcplace.com>, imp@boulder.parcplace.com (Warner Losh) writes:
|> In article <RISNER.94Jan31203005@batman.lexmark.com>
|> risner@lexmark.com (James Risner) writes: 
|> >Linux (the last time I installed it) could reside on the second disk.
|> >*BSD (the last time I installed it) could NOT reside on the second disk,
|> >but it's swap and any other extra partitions could be on disk2.
|> 
|> FreeBSD (and I suspect NetBSD as well) works well on a second disk.
|> Today I have two hard disks in my system.  The first one has Linux on
|> it (sd0) and the second one has FreeBSD on it (sd1).  I boot FreeBSD
|> with Lilo and it works fine for me.  The second disk has two
|> partitions on it.  One for FreeBSD (which further subdivides the
|> partition) and one for extra linux goodies (not bootable)

I just yesterday got my NetBSD to boot on wd1 (second IDE).  It's described in the FAQ, but not very completely...

1)  Modify kernel to say "root on wd1 swap on wd1" by editing the
/sys/arch/1386/sys/arch/1386/config/WHATEVER_CONFIG_FILE_YOU_USE
2) in that directory, type "make"
3) cd ../compile/WHATEVER_CONFIG_FILE_NAME
4) "make depend"
5) "make"
6) cp netbsd /.
7) cd /sys/arch/1386/boot
8) modify boot.c as per the FAQ, using the australian guy's method of making
drive = 0
unit = (disk & 0x&F)  (or something like this - check the FAQ)
9) modify the makefile to see that under the wd0: target, the disklabel command
has YOUR HARD DRIVE TYPE in it, and make sure your hard drive configuration
is in the /etc/disktab file.  You may need to make one, and it's not to big of
a deel.  Use "disklabel -r /dev/A_PARTITION_ON_YOUR_WD0 to get the current
configuration of your drive
10) make install
11) make wd0
12) edit the /etc/fstab entries to reflect the fact that you now expect to
be booting from wd1.  Otherwise, it will be bad.
13) shutdown -h now "plug n pray..."
14) reboot and hope it works

Oh, and btw, you need a boot selector on the first drive's MBR to get it to boot wd1, I used Wolfram's OS-BS, but I think OS/2's Boot Manager will do it also.  (I have OS-BS booting to the Boot Manager sometimes...)  ;-)  (don't ask...)

Good luck, and these expanded instructions should probably be verified,
clarified, and included in the FAQ.  It was rough going for me to figure out
all this stuff.  Thx goes to the PURDUE DAEMONS for their occasional clues.

Mark

--
This message was posted on my time, not company time.
Opinions in this message are mine and not necessarily those of Intel.
mwilley@pcocd2.intel.com