*BSD News Article 93999


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!news.maxwell.syr.edu!newsfeed.nacamar.de!fu-berlin.de!IN-Berlin.DE!fub!mind.de!nostromo.in-berlin.de!ripley
From: ripley@nostromo.in-berlin.de (H. Eckert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Hard Disk Maintenance
Date: 20 Apr 1997 15:31:38 GMT
Organization: Private access site (FreeBSD 2.2.1), Berlin, Germany, Europe
Lines: 58
Message-ID: <slrn5lkdmq.o9p.ripley@nortobor.nostromo.in-berlin.de>
References: <5j8r78$r4l$1@nntp2.ba.best.com>
NNTP-Posting-Host: nortobor.nostromo.in-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: slrn (0.9.3.2 UNIX)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39401

haggis@cesium.com (John R. Haggis):
> I set up FreeBSD about a year and a half ago.  We've outgrown our /usr 
> partition and I need to expand the disk.  Due to disk needs, I plan to 

I'd recommend setting up 2.2.1-Release on the new disk from scratch
and migrating the local configuration and datafiles.  While this will
be more work than a simple dump/restore of all filesystems, it will
certainly be worth it to get the new features that 2.1.x doesn't have.

> 1.  Read the old partition size info, so I know how to partition the 
> new disk (fdisk doesn't do it;  just shows one big partition).

Isn't the df output sufficient ?  You only get one big partition
from fdisk since it reports the physical layer of the disk.  FreeBSD
takes a big slice from the drive (what is called a primary partition
for the DOS scheme) and divides it into several filesystems  (much
like a secondary DOS partition that can contain more than one DOS
drive).

> 2.  Partition the new disk (including sub-partitions?).

You can do this quite easily from the /stand/sysinstall utility.

> 3.  Do I need to format the partitions, or is that what newfs does?

Sort of. Yes.

> 4.  Do I even need to newfs, if I'm doing dump | restore?

Yes.

> 1.  I seem to automagically have a /dev/rst0 device.  Is that the 
> right one for this tape drive?  I have no other st devices in /dev.

This device is sort of an alias to the real scsi-id.

> 2.  How do I format the DAT tapes?  (No "format" command on my 
> system.)

You don't.

> 3.  If I dump "/", will it dump my other mounted partitions, or do I 
> have to dump them separately?

Have you read "man dump" ?

> 4.  If separately, how do I dump multiple partitions onto one tape?  

Use the /dev/nrst0 so the tape driver doesn't rewind the tape after
dump closes the device.

Greetings,
				Ripley
-- 
H. Eckert, 10777 Berlin, Germany
ISO 8859-1: Ä=Ae, Ö=Oe, Ü=Ue, ä=ae, ö=oe, ü=ue, ß=sz.
"(Technobabbel)" (Jetrel) - "Müssen wir uns diesen Schwachsinn wirklich
anhören?" (Neelix)