Date: Sat, 15 Apr 2000 17:15:49 -0400 From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: Dan Nelson <dnelson@emsphone.com> Cc: Piotr Smyrak <smyru@eko.wroc.pl>, freebsd-questions@FreeBSD.ORG Subject: Re: moving with dump and restore Message-ID: <20000415171549.A43905@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <20000415143128.D29750@dan.emsphone.com>; from dnelson@emsphone.com on Sat, Apr 15, 2000 at 02:31:28PM -0500 References: <8879.000415@eko.wroc.pl> <20000415143128.D29750@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 15, 2000 at 02:31:28PM -0500, Dan Nelson wrote: > In the last episode (Apr 15), Piotr Smyrak said: > > I tried to transfer my system to a new bigger drive. I use 'dump' in > > conjunction with 'restore'. The new disk is partitioned to /,/usr,/var > > and all this slices are mounted as /mnt/root /mnt/usr /mnt/var. > > > > I tried to: > > --- > > /mnt/usr> dump 0f - /usr | restore rf - > > DUMP: Date of this level 0 dump: Sat Apr 15 18:11:49 2000 > > DUMP: Date of last level 0 dump: the epoch > > DUMP: Dumping /usr to standard output > > DUMP: bad sblock magic number > > DUMP: The ENTIRE dump is aborted. > > Tape is not a dump tape > > --- > > The old disk was one slice + swap, is this a reason I cannot do it > > with 'dump'? How can I split the OS into 3 partitions while moving? > > Thanks for your time. > > 'dump' only works on entire disks. dump(8) only operates on _filesystems._ The argument to dump(8) must be a filesystem. > Restore, on the other hand, doesn't > care. You can simply do this: > > dump 0f - / | (cd /mnt ; restore rf - ) > > That'll dump the entire original disk, and restore to /mnt, /mnt/usr, > and /mnt/var automatically. You'll get a couple warnings about > /mnt/usr and /mnt/var already existing, but in your case, that is > expected. I think the original poster needs more guidance on how to remount his new disk (assume it's ad1s1), # mount /dev/ad1s1a /mnt # cd /mnt # mkdir usr var # mount /dev/ad1s1e /mnt/usr # mount /dev/ad1s1d /mnt/var # dump -0af - / | restore -xf - -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000415171549.A43905>