Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: janes@signal.dra.hmg.gb (Tim W. Janes)
Subject: Re: Moving File Systems to Larger Disk?
Date: 1995/10/14	[thread overview]
Message-ID: <45ohk5$3ps@byron.dra.hmg.gb> (raw)
In-Reply-To: 45he5q$769@news.nic.com

In article <45he5q$769@news.nic.com>, Bruce B. Platt <bbp@nic.com> wrote:
>What's the best way to move a complete set of file systems to a new disk?
>
>Specifically, the old disk has "a" and "g" partitions holding "/" and "/usr"
>respectively.
>
>I'd like to take this disk (which is actually new with factory installed 
>sw from Digital) and before I do anything else with the system, move it's 
>entire contents to a larger disk, and then use the larger disk in place 
>of the original one.

Connect new disk to machine

use disklabel to partition it as required.
newfs on a and g partitions
cd /tmp
mkdir newroot
mount /dev/rz?a /tmp/newroot
mkdir newusr
mount /dev/rz?g /tmp/newusr
dump 0f - / | (cd /tmp/newroot; restore -rf - )
dump 0f - /usr | (cd /tmp/newusr; restore -rf - )

either

shut machine down and swap SCSI ID's of the two disks
reboot

or

edit /tmp/newroot/etc/fstab to be reflect new disk ID
change the link /sbin/swapdefault to point to the new disk
shutdown
change boot varaible at the console prompt
boot

Good luck

I have just done it twice. Once from internal disk onto a spare disk
then repartitioned the internal disk to give 512Mbyte swap and then
moved / and /usr back.

Tim.


PS I would have replied by email but our email is down at the moment



-- 
Tim Janes                   | e-mail : janes@signal.dra.hmg.gb
Defence Research Agency     |    tel : +44 684 894100
Malvern  Worcs              |    fax : +44 684 894384
Gt Britain                  |   #include <std/disclaim.h>



      parent reply	other threads:[~1995-10-14  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-10-11  4:00 Moving File Systems to Larger Disk? Bruce B. Platt
1995-10-12  4:00 ` oberman
1995-10-13  4:00 ` Andrew Sheaff
1995-10-14  4:00 ` Tim W. Janes [this message]
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