From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,51556130822eddda X-Google-Attributes: gid1164f8,public From: ripley@nostromo.in-berlin.de (H. Eckert) Subject: Re: DEC 5000/240 Date: 2000/09/14 Message-ID: #1/1 X-Deja-AN: 669681676 Cache-Post-Path: elch.in-berlin.de!unknown@nostromo.in-berlin.de References: <39be689e$1_2@news4.newsfeeds.com> <39BF9467.81A0EAC9@onsite.de> X-Trace: fu-berlin.de 968948143 14445213 192.109.42.5 (16 35) Organization: Private access site (FreeBSD 3.3), Berlin, Germany, Europe X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) User-Agent: slrn/0.9.6.2 (FreeBSD) Newsgroups: comp.sys.dec 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