>Trying to move /usr directory to a second hard drive. When doing cp -r -p *
>am receiving errors that: "cannot copy cyclic symbolic link".

cp gets a bit lost by symlinks. Or maybe it is me who gets confused by cp.
Basically, I shun using cp -r. Try something like:

(cd /usr && tar cf - .) | (cd /mnt/elsewhere && tar xfp -)

this writes a tar of /usr to stdout (replete with file permissions,
attributes, dates, symlinks, the whole damned business...), piped to another
tar that restores the /usr filesystem underneath /mnt/elsewhere (which ought
to exist beforehand).

IIRC, I first came across this idiom in the Tips or Dos-To-Linux HOWTO.

DL
--      affairs and are crunchy Do for good in ketchup.
        meddle not of the taste with wizards, you


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to