using dd to backup entire hard drive

Alan Dayley plug-discuss@lists.plug.phoenix.az.us
Thu, 30 Jan 2003 17:43:35 -0700 (GMT)


Craig asked the original question but I am going to jump in with my twist.  I think it still fits Craigs situation.

I want to upgrade a 10GB hard drive with Win98 and Linux partitions (dual boot) to a much larger drive.  I would like to use dd to copy all the current drive contents to the larger drive, boot the larger drive and then place partitions, etc. on the unused space.  Will that work?

Alan

-------Original Message-------
From: technomage <technomage-hawke@cox.net>
Sent: 01/30/03 03:36 PM
To: plug-discuss@lists.plug.phoenix.az.us
Subject: Re: using dd to backup entire hard drive

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