*BSD News Article 98394


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!newsfeed.nacamar.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: changing root disk
Date: 24 Jun 1997 19:11:02 GMT
Organization: Private BSD site, Dresden
Lines: 24
Message-ID: <5op646$2gt@uriah.heep.sax.de>
References: <RHUFF.97Jun24111740@shell1.cybercom.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43460

rhuff@shell1.cybercom.net (Robert Huff) wrote:

> 	My plan is to a) recompile, using "root on sd0", and b)
> change the fstab to point to the correct places.  (There may be
> other stuff, but that will come after the system boots
> correctly.)
> 	Is there anything else I need to change before pulling out
> the Win95 disk?

There's even less: the kernel ``root on sd0'' is purely cosmetic.  By
default, the kernel adjusts its root device to its boot device anyway.

You should even be able to boot the disk without changing anything,
but only up to single-user, since the automatic filesystem mount will
fail.  At this point, ``mount -u -w /dev/sd0a /'', to get the root f/s
read/write, ``ed /etc/fstab'' --> and you are done.  Of course,
editing fstab before is more convenient.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)