using dd to backup entire hard drive

technomage plug-discuss@lists.plug.phoenix.az.us
Thu, 30 Jan 2003 15:36:22 -0700


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

I've done this in a way.

firstly, both HD's have to be of siliar size.

then you just have to do this:

dd if=/dev/hdx of=/dev/hdx(2)

its a direct copy. I've done it with a couple of 10 GB monsters a while ago 
(3 or 4 partitions). everything gets copied and the new drive even booted.


Technomage

On Thursday 30 January 2003 12:25 pm, you wrote:
> I am very anxious for the answer to this one!  I was going to post the same
> question to the list later today.  I'm watching closely.
>
> Alan
>
> -------Original Message-------
> From: Craig White <craigwhite@azapple.com>
> Sent: 01/30/03 10:13 AM
> To: plug-discuss@lists.plug.phoenix.az.us
> Subject: using dd to backup entire hard drive
>
> > I want to back up a linux hard drive completely.
>
> If the hard drive I want to back up is hda and I want to 'clone' the hard
> drive
> to hdb, how would I issue the command?
>
> dd bs=4k /dev/hda /dev/hdb
>
> I want everything, including the mbr to be copied. Is there anything that
> I
> need to worry about if the target hard drive is larger than the source
> hard
> drive? Will the partitions be the same size and the extra space on the
> target
> left unpartitioned?
>
> Thanks,
>
> Craig
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

- -- 
I will not be pushed, filed, stamped, indexed, briefed, debriefed, or 
numbered!
My life is my own - No. 6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+Oajmn/usgigAaLcRAgQMAJ47x5uRt8BvAccarEGN77eMxbnyigCePscJ
8e2M72+o8z3GRBYgk80pPek=
=qSPR
-----END PGP SIGNATURE-----