From owner-freebsd-questions Sat Apr 15 12:31:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 43BF337B81D for ; Sat, 15 Apr 2000 12:31:37 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA04895; Sat, 15 Apr 2000 14:31:28 -0500 (CDT) (envelope-from dan) Date: Sat, 15 Apr 2000 14:31:28 -0500 From: Dan Nelson To: Piotr Smyrak Cc: freebsd-questions@FreeBSD.ORG Subject: Re: moving with dump and restore Message-ID: <20000415143128.D29750@dan.emsphone.com> References: <8879.000415@eko.wroc.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.9i In-Reply-To: <8879.000415@eko.wroc.pl>; from "Piotr Smyrak" on Sat Apr 15 21:06:25 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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