From owner-freebsd-questions@FreeBSD.ORG Sun Aug 31 23:50:53 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0B91106564A for ; Sun, 31 Aug 2008 23:50:53 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 4285E8FC22 for ; Sun, 31 Aug 2008 23:50:52 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl10-93.kln.forthnet.gr [77.49.137.93]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m7VNoaCb010879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 1 Sep 2008 02:50:42 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id m7VNoaqX031124; Mon, 1 Sep 2008 02:50:36 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id m7VNoZup031107; Mon, 1 Sep 2008 02:50:35 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Lloyd M Caldwell References: <48BB2359.4000208@xmission.com> Date: Mon, 01 Sep 2008 02:50:34 +0300 In-Reply-To: <48BB2359.4000208@xmission.com> (Lloyd M. Caldwell's message of "Sun, 31 Aug 2008 17:03:53 -0600") Message-ID: <871w04rbg5.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m7VNoaCb010879 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.838, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.56, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: questions@freebsd.org Subject: Re: dump/restore don't work, handbook lies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Aug 2008 23:50:54 -0000 On Sun, 31 Aug 2008 17:03:53 -0600, Lloyd M Caldwell wrote: > Hello, > > this all on a 7.0 freebsd system. > > Dump/Restore do NOT work as indicated in the handbook (or man pages). It > would be better to remove information from the handbook rather then have > information that doesn't work. > > I needed to increase the size of my freebsd root (/). I booted, single > user, attached a large usb freebsd formatted file system to receive the > backup image. I ran: > > dump -0af /mnt/d201gly-0.dump / > > it ran with no complaints and an image was left on the large usb file > system (d201gly-0.dump). Did you really run dump on a 'live' filesystem? The filesystem may be changing under the feet of dump, while it copies data. That is bound to cause trouble later on. > I then booted off the livefs cdrom, went to the "Fix-it" from livefs. > > I ran fdisk to setup a pc partition for freebsd owning the entire disk. > I ran disklabel to setup and define the swap and 'a' root partition. > I ran disklabel to install boot blocks. > I ran newfs on this new 'a' partition. > I ran fsck and mount on the new 'a' partition placing it at /mnt/root. > I turned on the large usb drive, fsck'ed it and mounted it on /mnt/restore. > I cd into /mnt/root and run: > > restore -rf /mnt/restore/d201gly-0.dump > > it complains about '/' issues > it complains about 'expecting YYYYYY got ZZZZZZ' The manpage of restore says: expected next file , got A file that was not listed in the directory showed up. This can occur when using a dump created on an active file system. If this is the error you are seeing, then this is the explanation of what went wrong too.