docs/95139: FAQ to move filesystem to new disk fails: incorrect permissions
Marc Silver
marcs at draenor.org
Thu Jan 10 09:50:05 UTC 2008
The following reply was made to PR docs/95139; it has been noted by GNATS.
From: Marc Silver <marcs at draenor.org>
To: bug-followup at FreeBSD.org, illusion65 at 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 @@
<screen>&prompt.root; <userinput>newfs /dev/ad1s1a</userinput>
&prompt.root; <userinput>mount /dev/ad1s1a /mnt</userinput>
&prompt.root; <userinput>cd /mnt</userinput>
-&prompt.root; <userinput>dump 0af - / | restore xf -</userinput></screen>
+&prompt.root; <userinput>dump 0f - / | restore rf -</userinput></screen>
<para>Rearranging your partitions with dump takes a bit more
work. To merge a partition like <filename>/var</filename>
@@ -5080,9 +5080,9 @@
<screen>&prompt.root; <userinput>newfs /dev/ad1s1a</userinput>
&prompt.root; <userinput>mount /dev/ad1s1a /mnt</userinput>
&prompt.root; <userinput>cd /mnt</userinput>
-&prompt.root; <userinput>dump 0af - / | restore xf -</userinput>
+&prompt.root; <userinput>dump 0f - / | restore rf -</userinput>
&prompt.root; <userinput>cd var</userinput>
-&prompt.root; <userinput>dump 0af - /var | restore xf -</userinput></screen>
+&prompt.root; <userinput>dump 0f - /var | restore rf -</userinput></screen>
<para>To split a directory from its parent, say putting
<filename>/var</filename> on its own partition when it was not
@@ -5096,7 +5096,7 @@
&prompt.root; <userinput>mkdir /mnt/var</userinput>
&prompt.root; <userinput>mount /dev/ad1s1d /mnt/var</userinput>
&prompt.root; <userinput>cd /mnt</userinput>
-&prompt.root; <userinput>dump 0af - / | restore xf -</userinput></screen>
+&prompt.root; <userinput>dump 0f - / | restore rf -</userinput></screen>
<para>You might prefer &man.cpio.1;, &man.pax.1;,
&man.tar.1; to &man.dump.8; for user data. At the time of
--98e8jtXdkpgskNou--
More information about the freebsd-doc
mailing list