From: ripley@nostromo.in-berlin.de (H. Eckert)
Subject: Re: DEC 5000/240
Date: 2000/09/14 [thread overview]
Message-ID: <slrn8s0a0l.1m7i.ripley@server.nostromo.in-berlin.de> (raw)
In-Reply-To: 39BF9467.81A0EAC9@onsite.de
Georg.Schwarzwaelder@onsite.de (Georg E. Schwarzwaelder) wrote:
> > I wish to make a backup copy of our DEC 5000/240 hard drive. The OS
> > is Ultrix V4.2. The workstation has a 1 Gig SCSI drive. My Unix
> > skills are somewhat limited. How would I format the new drive and
> > copy the original drive to the new one?
>
> Put in a new drive (should be not smaller as the original) and copy
> the disks with
>
> # dd if=/dev/rrz?c of=/dev/rrz?c
> source destination
It shouldn't be much bigger than the original drive either.
Using this method, you'd give up the remainder of the drive
and this might hurt if the new one is significantly bigger
than the original 1 Gig drive :-)
In that case you'll be much better off using the commands
chpt, newfs, dump and restore.
Use chpt to partition the drive. If you want to use the new
one as the system driver afterwards you want to create at least
the same partitions that are already existing so you can copy
data from each partition onto a corresponding partition on the
new drive. If the new drive is bigger than 2 Gig you'll have
to partition it even if it was just a data drive.
To partition you'll have to run chpt to look at the default
partition table. You'll have to write a filesystem to the 'a'
partition as its superblock will hold the partition data as well.
Once you ran "newfs /dev/rrz?a" (be very careful not to write
to the wrong disk!) you can write the partition table with chpt.
Then resize the partitions to your liking, obeying some simple
rules:
1. Partition 'a' will be the root filesystem on a system disk.
2. Partition 'b' usually holds the swap space so you don't want
to put a filesystem there.
3. Partition 'c' is an alias for "the whole disk". Don't use it
for a filesystem.
4. Be careful not to have overlaps on the partitions you're going
to use. Observe the default partition talbe that the OS makes
up on an empty drive which gives some default alternatives like
a+b+g for root+swap+usr or a+b+d+e for root+swap+usr+home
In this case if you don't change the sizes it's either using 'g'
for the /usr filesystem *or* using 'd' and 'e' for /usr and /home.
You'll probably want to increase the root fs's size a bit and the
swap space, too.
Once your layout is fine (on a 500MB drive I even puzzled around
until I didn't lose data block on the last cylinder group anymore
and assigned the odd remainder to the swap space) and you've ran
newfs on all partitions, use dump and restore (connected by a
pipe so the backup is send directly to restore) to copy your data
from each source filesystem to their respective destination.
If you want to divide some subtree (for example you had the users'
homes on the /usr partition and want to put them on a /home of
their own) the easiest way is to copy those files too and copy the
subtree to its real new place afterwards with tar (don't forget the
'p' option for the extraction!)
Now, why do you want to use "dump" anyway ? It's because it is much
more accurate in preserving every aspect of a file than the other
backup tools around. It keeps the exact permissions, the date and
even more exotic details like sparse files are preserved.
Greetings,
Ripley
--
H. Eckert, 10777 Berlin (demnaechst/soon: 12051 Berlin)
==
"PS: Schlechter Ausdruck ist vermutlich Tonermangel zuzuschreiben." Frank Wilde
next prev parent reply other threads:[~2000-09-14 4:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-12 17:29 DEC 5000/240 user
2000-09-13 14:51 ` Georg E. Schwarzwaelder
2000-09-13 4:00 ` Dennis Grevenstein
2000-09-14 4:00 ` Oisin McGuinness
2000-09-15 4:00 ` Dennis Grevenstein
2000-09-14 4:00 ` megar
2000-09-14 4:00 ` H. Eckert [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-16 18:02 Julien G
2003-01-16 19:16 ` b_corbin
2003-01-16 19:34 ` Peter LANGSTOEGER
2003-01-17 14:47 ` Geoff Biscuit
2003-01-18 15:58 ` VT52
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox