[1245] in RedHat Linux List
Re: moving contents of hard drive
daemon@ATHENA.MIT.EDU (Mark Shacklette)
Sun Oct 27 07:22:43 1996
Date: Sun, 27 Oct 1996 06:19:27 -0600 (CST)
From: Mark Shacklette <mshack@mcs.com>
Reply-To: Mark Shacklette <mshack@mcs.com>
To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.95.961027010338.13385A-100000@Kremerdg.gardens.udayton.edu>
Resent-From: redhat-list@redhat.com
The thread that dealt with this issue last summer mentioned cpio as a good
tool to use, and there was an article in the Linux Journal (March 1996, pp.
44ff.) which explained how to do this using cpio.
Essentially, the command would be (assuming the target partition is mounted as
/mnt/export):
find / -depth -xdev | cpio --pass-through --preserve-modification-times
--make-directories --verbose /mnt/export
This gets everything over, but avoids crossing over into mounted partitions,
which means the find will not venture to copy your CD contents, your mounted
nfs drives, your dos drives you might have mounted--only your root partition,
and all the files on it.
Good luck.
Mark
****************************************************************
J. Mark Shacklette mshack@mcs.com
Committee on Social Thought, University of Chicago
jmshackl@midway.uchicago.edu
****************************************************************
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
________________________________________________________________________
http://www.redhat.com/RedHat-FAQ http://www.redhat.com/RedHat-Errata
http://www.redhat.com/RedHat-Tips http://www.redhat.com/mailing-lists
------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null