[1249] in RedHat Linux List
[Fwd: Re: moving contents of hard drive]
daemon@ATHENA.MIT.EDU (Paul Anderson)
Sun Oct 27 08:11:05 1996
Date: Sun, 27 Oct 1996 08:24:57 -0500
From: Paul Anderson <andersop@agapesystems.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Message-ID: <32736293.2BEE50ED@agapesystems.com>
Date: Sun, 27 Oct 1996 08:24:35 -0500
From: Paul Anderson <andersop@agapesystems.com>
X-Mailer: Mozilla 3.0 (X11; I; Linux 1.3.57 i586)
MIME-Version: 1.0
To: Mark Shacklette <mshack@mcs.com>
Subject: Re: moving contents of hard drive
References: <ML-2.3.846418767.9124.jmshack@lsmtsrvr1.lakeshore.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Mark Shacklette wrote:
>
> 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
>
In comparision to "dd if=/dev/XXX of=/dev/XXX" the command structure you
propose seems very complex. dd also gets all files with permissions
down to the bit level and will not cross mount points. The beauty of
Unix is that you can dream up ever more complex ways of doing what is
easily accomplished. However, the orginal mindset of Unix, other than
for playing games, was to make small tools that were easy to use and be
compiled into larger tools when that was necessary. And just in case
you want dd to be a more complex command, there are many switches which
can be set.
Paul Anderson
--
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