Hints And Tips research knowledge archive
Tip# 449
Sponsored Links
 
Subject: Copy Windows System to a new hard drive
Updated: Nov-5-2006
Rating: Not Rated
By: Rocky Moore - Member #: 1
Location: Klamath Falls, Oregon USA
Website: www.RockyMoore.com
Category: Computers > MS Windows
Rate This Tip (10=Great):  1  2  3  4  5  6  7  8  9  10
Recently I had a hard drive go bad and used another drive as a temporary storage until I got a new one.  Once I got the new drive I did not want to install Windows (using Vista at the time) and have to reinstall all my applications again.

Seems like the answer was to just copy all the files from my temporary drive onto my new drive.  Only problem is that Windows has many locked and used files that it does not allow you to copy the entire system easily.

To the rescue, ,I used a CD based distro of Linux called Knoppix to copy the partition from one drive to another giving me an exact copy of the drive.  Here is a page describing the process step-by-step:  

http://www.nilbus.com/linux/disk-copy.php

Basically, you make the partition on the new drive the exact size of the partition of your old drive.  You can do that within Windows or use the method in the above link.  

After you have the partitions the same size, you can use a simple Linux command to copy the partition from your old drive to your new one.  The primary method is with the command:

dd if=/dev/<original drive partition such as hda1> of=<new drive partition> bs=4096

That will copy the partition on the original drive to the new drive.  The only thing else required is to copy the boot sector.  The above link has the information on making the copy.

After this, you can enlarge your partition on the new drive is there is more room, otherwise you just reboot and go.  It should have copied the entire system and work the same as it did on the old drive.

This worked fine for copying my Windows Vista partitions.  Microsoft is supplying a backup program that will do all this for you to a point.  In my situation, I had the system spread on over two drives so when I would run the backup, it forced the copying of both drives.  I placed the backup in a blank partition I created on the new drive so it would be available with the other drives removed.  When I tried the Complete PC restore from the Windows Vista disk, the first step it does on a restore is to wipe out all partitions on your target drive and the continue with restore the previous backup.  In my case, that would have erased the partition I used for the backup, thus destroying the backup.

In the future most of this work will be able to be handled using the Windows Vista built in backup program.

Tip for Vista users:  If you use the above method to copy a partition in Vista and use the resize partition tool in Linux, when you boot back  into Vista, it may not show the correct amount of space free although the drive management console shows the correct partition sizes.  This happened on both the partiions I copied.  To fix, in Vista, I used the "shink" option to shrink both drives be a few megabytes and then expanded them again.  This seemed to fix the problem..

[Submit DIGG for this tip]


-----------
Note: Use the tips posted on this site at your own risk. The tips are posted by the public and as such may or may not be valid.

Sponsored Links
Categories
hints and tips gold divider
Sponsor Sites To Visit
The Awakening
Spirit-Filled Christianity is
more than filling a pew !

Not producing fruit?
Healing, where to turn?
Provision, where to turn?
Lost, where to turn?

It is time for --TheAwakening !
The Saints In Light
Christian Thoughts on
Various Topics - Check it Out!

Click Here
Silverlight City

Keep up with the latest in
Microsoft's Silverlight
Technology!

Click Here
Our Local Christians
Find other Christians
In your local area
Who share your beliefs!

Click Here
United Christian Voters
Tired of seeing your
Rights Vanish?
If all Christians would
Pull together, we can
bring Change Unite Now!

Click Here
Reflected Thought
Inventions ~ Ideas ~ Humor
Politics ~ Opinions ~ Thoughts
Software Development
Business And Stuff....

Click Here
HintsnTips.com
Articles on Various Topics!

Click Here
XML RSS News Feed For Recently Posted Hints And Tips  RSS Feed
You can now get updates to the Recent Tips section by using RSS. The address is:

HintsAndTips.com/Rss.aspx

* Posting Tips *
To post a Tip, Recommendation or Tips Wanted, simply browse to the category you feel is a best fit for your post (click on the Recommention or Tips Wanted tab if fitting) and then click on "New Post" option.
(C) Copyright 1998-2009 All Rights Reserved By R & J Technologies - www.RJSoft.com