Date: Thu, 10 Jan 2008 09:50:03 GMT From: Marc Silver <marcs@draenor.org> To: freebsd-doc@FreeBSD.org Subject: Re: docs/95139: FAQ to move filesystem to new disk fails: incorrect permissions Message-ID: <200801100950.m0A9o3d2012304@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/95139; it has been noted by GNATS. From: Marc Silver <marcs@draenor.org> 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 @@ <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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801100950.m0A9o3d2012304>