Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!col.hp.com!news.dtc.hp.com!hpscit.sc.hp.com!cupnews0.cup.hp.com!hppad.waterloo.hp.com!alex From: alex@waterloo.hp.com (Alex Dumitru) Subject: Re: Installing FreeBSD in 2nd Hard Drive ? Sender: news@waterloo.hp.com (NetNews) Message-ID: <CpC8Er.A4L@waterloo.hp.com> Date: Thu, 5 May 1994 16:28:00 GMT References: <2q73ap$plo@hk.super.net> <2q9phr$t1p@news.tamu.edu> Nntp-Posting-Host: hppadbb.waterloo.hp.com Organization: HP Panacom Div Waterloo ON Canada X-Newsreader: TIN [version 1.2 PL2] Lines: 37 Dan Hickman (hickman@prism.tamu.edu) wrote: : Mr Alan Ko (alanko@HK.Super.NET) wrote: : : How can I install FreeBSD in my 2nd Hard Drive and boot it there ? : I then physically switched out hard drives and : did the complete installation procedure on the new hard drive. That's the hard way. To get *bsd to work on the second drive edit your kernel config file and make sure that all references to sd0/wd0 point to sd1/wd1. Next edit boot/boot.c in the kernel source and make sure that it references drive 1. (there's a line that says ... = drive = 0) BTW - how to modify boot.c is documented in the FAQ - Rebuild the kernel and install it in / as 386bsd.1 Keep the old kernel around. Modify your /etc/fstab and make sure all devs now point to the new drive. KEEP A COPY OF THE OLD ONE (in fstab.0 or something). ie: /dev/sd0a => /dev/sd1a Shutdown and change the drive to be the second drive. Reboot and specify 386bsd.1 as the boot kernel. If it all goes ok, you can can then get rid of the old fstab and old kernel. (iff it all goes ok) If it does not go ok, simply move the drive back to the first one, boot the install floppy and move fstab.0 in fstab and reboot. System should come up as normal. cheers alex p.s this worked for me. it might not work for you. always back up your system before doing anything that you are not familiar with... etc. etc.