How to reimage a HDD


I have a HDD that is starting to fail so the manufacturer is sending me a new one.  I would like to reimage the new drive with the contents of my old HDD.  How do I do this ?  I do have a 300G USB external drive if that helps.  Thanks !
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Norton Ghost is a great product for this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Acronis makes a great product for imaging.  78.00 per workstation.  They do have fully functional trial licenses as well.  
I assume you are running XP. :-)
Try to use whatever LiveCD linux distro, and try to boot it up in your PC and be sure to find your local HDDs. If you would issue command "cat /proc/partitions", it should show something like this:
devel:~# cat /proc/partitions
major minor  #blocks  name

   8     0       8192 sda
   8    16  732421120 sdb
   8    17      64228 sdb1
   8    18   19535040 sdb2
   8    19   97659135 sdb3
   8    20          1 sdb4
   8    21    1951866 sdb5
   8    22    9767488 sdb6
   8    23    4883728 sdb7
   8    24   19535008 sdb8
   8    25  579022731 sdb9

If it is SCSI, SATA it shows sda/sdb/sdc disks,
If it is ATA / IDE disk, it shows usually hda/hdb/hdc disks.

If you can see any disks, check layout and size by "fdisk -l/dev/sda" (sdb/sdc etc) which shows the layout of partitions. If you can see the source disk, then shutdown, put the new one disk into PC, and start over with LiveCD.
If once again running, check, if you put the disks correctly.
I assume, that old disk is the first on bus, then it still is in /dev/sda
The new disk is on second SATA connector, it's mapped on /dev/sdb. To be sure, check with fdisk layout of the new disk "fdisk -l /dev/sdb", which should print something with "no valid partition table" (I have no brand new handy :-))
If everything is okay, then issue
dd if=/dev/sda of=/dev/sdb
Please, bear with it, that during the run of program it prints no message until it is finished. Depending on disk size and speed of PC, it can run whole night for 250GB.
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

If your drive is stable try Clonezilla. It's free fast and rock solid...

But if your drive is damaged then try ddrescue, it's similar to dd as mentioned above but designed to operate on damaged drives.

BloxsomAuthor Commented:
If I am cloning a HDD from a laptop with a USB drive (like Clonezilla).  How does it get all of the data off the orginal HDD to the new one ?  My external USB drive is 300G so it's probably enough to read all the data off the original HDD but what if this wasn't the case, how would it work ?
You'd need a product that allowed disc spanning
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Legacy OS

From novice to tech pro — start learning today.