Re: [SLUG] Hard drive dumping

From: Brian Coyle (brian@linuxwidows.com)
Date: Sat Aug 10 2002 - 21:14:31 EDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 10 August 2002 18:58, Smitty wrote:
> I want to dump the complete contents of a 20 GB harddrive onto a new 40 GB
> harddrive. Any recommendations how I should do this?
> Smitty

  $ man cpio

On second thought, that's a really bad man page... Google for cpio
examples. Here's one off the top of my head - in other words check it out
before trusting me. ;)

Mount the second hard drive in the same machine as the disk you want to
copy. fdsk / format the partitions as desired.

Then for each partition, cd to the old disk partition directory and run this:

  # find . -xdev -print | cpio -pudv /mnt/{destination}
 
Be sure to substitute the correct destination(s) on the new disk.

If you want to make the new disk the primary boot disk, you'll need
to swap it on the controller, then boot from a rescue floppy or CD
and run lilo (or grub).

HTH!

- --
GPG Key fingerprint = AE1C 123A 1153 8A63 E8A9 FAEA 111D CCB8 7527 701B

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9VbqDER3MuHUncBsRAuD+AJ4k9wOYnjSGtdpsGRm5h0MHj9lc0gCbBoTT
s+THVqOXOqE3JNIwLDKIqQY=
=i/sX
-----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:09:48 EDT