[1324] in RedHat Linux List

home help back first fref pref prev next nref lref last post

dd to copy

daemon@ATHENA.MIT.EDU (William T Wilson)
Sun Oct 27 18:51:41 1996

Date: Sun, 27 Oct 1996 18:49:41 -0500 (EST)
From: William T Wilson <fluffy@benatar.res.cmu.edu>
To: redhat-list@redhat.com
In-Reply-To: <199610272232.RAA04028@redhat.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

> This statement is inaccurate.  The drives do not need to be the same
> size and have the exact same geometry.  dd is a copy at the bit level

Okay, perhaps they do not need the same geometry.  They do however have to
be the same size.  Suppose the destination drive is SMALLER than the
source drive.  Then when dd tries to write out the data, it will write
past the end of the device.  If the destination drive is LARGER, then the
filesystem which is created will think it is smaller than it is, which
will drive everything nuts.  And this is still dependent on nothing weird
happening while dd is running. 

> will have to be edited.  Using cp one is not going to copy the files in
> the /dev directory or any other special files for that matter.  cpio

True.  Try this:
Mount your destination drive and change to that directory.  Then:
tar -c -l / -- | tar -x --preserve (assuming the source is mounted root)
(or you could just use '... | tar -c --preserve -C <destination>'

This will copy special files, permissions, and whatnot, however it will
NOT attempt to copy /proc, floppy drives, the destination drive, etc.  :)


--
  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


home help back first fref pref prev next nref lref last post