Date: Sat, 15 Apr 2000 14:31:28 -0500 From: Dan Nelson <dnelson@emsphone.com> To: Piotr Smyrak <smyru@eko.wroc.pl> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: moving with dump and restore Message-ID: <20000415143128.D29750@dan.emsphone.com> In-Reply-To: <8879.000415@eko.wroc.pl>; from "Piotr Smyrak" on Sat Apr 15 21:06:25 GMT 2000 References: <8879.000415@eko.wroc.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
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. 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. -- Dan Nelson dnelson@emsphone.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?20000415143128.D29750>