From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,de415d2905e853f8 X-Google-Attributes: gidfee84,public From: janes@signal.dra.hmg.gb (Tim W. Janes) Subject: Re: Moving File Systems to Larger Disk? Date: 1995/10/14 Message-ID: <45ohk5$3ps@byron.dra.hmg.gb>#1/1 X-Deja-AN: 117556563 references: <45he5q$769@news.nic.com> organization: Defence research Agency, Malvern UK. newsgroups: comp.unix.osf.osf1 In article <45he5q$769@news.nic.com>, Bruce B. Platt 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