Two changes:

1) Switch from cpio -pdum to pax -rw -p e.  cpio -pdum requires
find which isn't available on bsd.rd, while pax -rw -p e works
fine on bsd.rd.

2) Use a more complete example.

I'm not sure if there are other reasons to use cpio over pax.
However, when I replaced I disk last night and tried to use cpio
to copy partitions, I noticed that it didn't work on bsd.rd.

Thoughts/OKs?

Jeremy

Index: faq14.html
===================================================================
RCS file: /cvs/www/faq/faq14.html,v
retrieving revision 1.202
diff -u -p -r1.202 faq14.html
--- faq14.html  19 May 2010 12:41:02 -0000      1.202
+++ faq14.html  11 Jan 2013 20:19:16 -0000
@@ -638,8 +638,14 @@ Finally, add it to
 
 <p>
 What if you need to migrate an existing directory like /usr/local? You
-should mount the new drive in /mnt and use <tt>cpio -pdum</tt> to copy 
/usr/local
-to the /mnt directory.  Edit the
+should mount the new drive in /mnt and copy /usr/local to the /mnt directory.
+Example:
+
+<blockquote><pre>
+# <b>cd /usr/local && pax -rw -p e . /mnt</b>
+</pre></blockquote>
+
+Edit the
 <a 
href="http://www.openbsd.org/cgi-bin/man.cgi?query=fstab&amp;sektion=5";>/etc/fstab(5)</a>
 file to show that the /usr/local partition is now /dev/sd2d (your
 freshly formatted partition). Example:

Reply via email to