From owner-freebsd-questions Sat Apr 15 14:16:32 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 9C89E37B506 for ; Sat, 15 Apr 2000 14:16:27 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id RAA45706; Sat, 15 Apr 2000 17:15:49 -0400 (EDT) (envelope-from cjc) Date: Sat, 15 Apr 2000 17:15:49 -0400 From: "Crist J. Clark" To: Dan Nelson Cc: Piotr Smyrak , freebsd-questions@FreeBSD.ORG Subject: Re: moving with dump and restore Message-ID: <20000415171549.A43905@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <8879.000415@eko.wroc.pl> <20000415143128.D29750@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20000415143128.D29750@dan.emsphone.com>; from dnelson@emsphone.com on Sat, Apr 15, 2000 at 02:31:28PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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