*BSD News Article 93861


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!howland.erols.net!europa.clark.net!news.mathworks.com!news1.best.com!nntp2.ba.best.com!orca
From: haggis@cesium.com (John R. Haggis)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Hard Disk Maintenance
Date: Fri, 18 Apr 97 22:05:26 GMT
Organization: Central Intelligence Organization
Lines: 43
Message-ID: <5j8r78$r4l$1@nntp2.ba.best.com>
NNTP-Posting-Host: orca.yamato.com
X-Newsreader: News Xpress 2.0
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39300


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 
replace the 1GB drive with a 2GB, partition it about the same (except 
for a larger partition for /usr), copy all the file systems with dump 
| restore, and then take the old 1GB disk and use it in my Sun which 
is in dire need of space also.

I'm a bit weak on low-level maintenance functions in Unix, although I 
did add disks to SunOS before.

I have a 4.4BSD manual, but some of the commands (format, scsiformat) 
don't appear to be in FreeBSD.  I'd like it if someone could guide me 
toward the right commands to do what I need to do (and I'll figure it 
out from there).  Here are the tasks I see:

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).
2.  Partition the new disk (including sub-partitions?).
3.  Do I need to format the partitions, or is that what newfs does?
4.  Do I even need to newfs, if I'm doing dump | restore?


And in a related question, I hooked up an HP DAT drive (Surestore 
6000) and I want to make dumps.  A few questions:

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.
2.  How do I format the DAT tapes?  (No "format" command on my 
system.)
3.  If I dump "/", will it dump my other mounted partitions, or do I 
have to dump them separately?
4.  If separately, how do I dump multiple partitions onto one tape?  
(I have 2GB tapes;  no problem with space.)

Thanks in advance for any pointers you can give.  Email cc will help.

Regards,

John

--
John R. Haggis                  haggis@cesium.com