*BSD News Article 60611


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.uoknor.edu!news.nodak.edu!netnews1.nwnet.net!news.u.washington.edu!uw-beaver!uhog.mit.edu!news.mathworks.com!fu-berlin.de!news.dfn.de!news.uni-jena.de!news.HRZ.HAB-Weimar.DE!News.HTWM.De!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: HD copy
Date: 26 Jan 1996 23:33:50 GMT
Organization: Private BSD site, Dresden
Lines: 38
Message-ID: <4ebocu$ke2@uriah.heep.sax.de>
References: <31087250.6742@server.wulaw.wustl.edu>
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.3

Matt Rosenberg <matt@server.wulaw.wustl.edu> writes:

> dd if=/dev/rwd1 of=/dev/rwd2
> 
> PROBLEM:  I can't find such a small (431 MB) hard drive anywhere with 
> the exact same geometry.  If installed a larger hard drive with at least 
> as many heads, cylinders, and sectors/track, but told the BIOS that it 
> really had the geomtry of the other disk, would this still work under 
> FreeBSD????

You could perhaps even enlarge it later, if you are careful.  Make
sure the BIOS uses the same number of sectors/track and heads/cylinder,
otherwise it won't find the boot loader.

Initially, both drives will look identically.  If you're going to
enlarge them, you have to tweak two things: the fdisk (``slice'')
table, so the FreeBSD slice will become larger (or you could add
another slice at the end as well).  Note that the exact numbers for
ending cylinder/sector/head are rather irrelevant for FreeBSD, the
starting c/h/s numbers are, but only for the BIOS to boot.  What
matters is the size of the slice in sectors.

Then, assuming you have extended the existing FreeBSD slice,
run disklabel -e on it, and extend the `c' partition to exactly the
same number of sectors as you did in the fdisk table.  After this,
you could create a new BSD partition in the newly gained space.

I assume that all this will only work reliable when being made from
the `fixit' floppy, so no file system is mounted by that time.

Disclaimer: Use at your own risk. :-)

-- 
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. ;-)