From owner-freebsd-doc@FreeBSD.ORG Thu Jan 10 09:50:05 2008 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD04516A419 for ; Thu, 10 Jan 2008 09:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8703113C4CE for ; Thu, 10 Jan 2008 09:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0A9o3Z8012305 for ; Thu, 10 Jan 2008 09:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0A9o3d2012304; Thu, 10 Jan 2008 09:50:03 GMT (envelope-from gnats) Date: Thu, 10 Jan 2008 09:50:03 GMT Message-Id: <200801100950.m0A9o3d2012304@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Marc Silver Cc: Subject: Re: docs/95139: FAQ to move filesystem to new disk fails: incorrect permissions X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marc Silver List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jan 2008 09:50:05 -0000 The following reply was made to PR docs/95139; it has been noted by GNATS. From: Marc Silver To: bug-followup@FreeBSD.org, illusion65@gmail.com Cc: Subject: Re: docs/95139: FAQ to move filesystem to new disk fails: incorrect permissions Date: Thu, 10 Jan 2008 11:49:19 +0200 --98e8jtXdkpgskNou Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi there, I wasn't able to replicate the error you encountered using dump. One thing I did notice is that the man page for restore indicates that the -x flags will restore owner, modification time and mode 'if possible'. That said, according to the restore man page, the -r flag was speficially intended to be used to restore and rebuild a file system that has been created with newfs, thus making it a more favourable choice over the -x flag. Assuming this is correct, I've included a minor patch for the FAQ to correct this. Cheers, Marc --98e8jtXdkpgskNou Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="faq.patch" --- book.sgml.orig 2008-01-10 11:47:27.000000000 +0200 +++ book.sgml 2008-01-10 11:47:29.000000000 +0200 @@ -5068,7 +5068,7 @@ &prompt.root; newfs /dev/ad1s1a &prompt.root; mount /dev/ad1s1a /mnt &prompt.root; cd /mnt -&prompt.root; dump 0af - / | restore xf - +&prompt.root; dump 0f - / | restore rf - Rearranging your partitions with dump takes a bit more work. To merge a partition like /var @@ -5080,9 +5080,9 @@ &prompt.root; newfs /dev/ad1s1a &prompt.root; mount /dev/ad1s1a /mnt &prompt.root; cd /mnt -&prompt.root; dump 0af - / | restore xf - +&prompt.root; dump 0f - / | restore rf - &prompt.root; cd var -&prompt.root; dump 0af - /var | restore xf - +&prompt.root; dump 0f - /var | restore rf - To split a directory from its parent, say putting /var on its own partition when it was not @@ -5096,7 +5096,7 @@ &prompt.root; mkdir /mnt/var &prompt.root; mount /dev/ad1s1d /mnt/var &prompt.root; cd /mnt -&prompt.root; dump 0af - / | restore xf - +&prompt.root; dump 0f - / | restore rf - You might prefer &man.cpio.1;, &man.pax.1;, &man.tar.1; to &man.dump.8; for user data. At the time of --98e8jtXdkpgskNou--