This article will show you how to configure your old and new hard disk drives and describe four methods used to copy the contents of the old one to the new one.
- Copy an Image of the Drive (or Partition)
- Selective Directory/File Backup, Clean Install, Restore
- Use a Backup Program
- Directly Copy All of the Directories and Files
Protect Your Data. Before doing anything major to a hard disk drive be sure to backup your data and follow the Rules for Working With Hard Disk Drives and Safeguarding Data.
Setting-up the Drives. A hard disk does not have be mounted in a computer case to copy stuff to and from it. Be sure the power cord is pulled, and simply set it on top of the case up-side-down so the printed circuit board is not shorted and plug in the cables A shop computer in a desktop case is shown in the picture to the right. Lay a tower down on its right side and set the drive on top of the left side. Be sure to put something such as a foam rubber pad under the right side of the case to protect it from scratches from loose screws. etc. that have a way of accumulating on workbench tops.
If your motherboard has two IDE interfaces, image and data transfers will go much faster if the two drives are set as Masters, the default setting for almost all new hard disk drives (with no Slave present ), and connecting each to one of the interfaces for the transfer. That is, temporarily disconnect the CD-ROM and connect the hard disk drive in its place on the secondary IDE interface. However, do not leave the drive on the secondary with the CD-ROM if you are going to use the drive frequently. A CD-ROM can slow-down a hard disk drive.
One would normally make a new drive the Master, especially if it is a 7,200 RPM drive and the old drive is 5,400 RPM. Not only is it faster, the new drive should be more reliable and last longer than the old one. I usually put the old drive on same cable as the Master and jumper it as a Slave. If you want to use the new drive as slave, remove the old drive, set the new drive as a Master, and prep it with a Startup floppy using fdisk and format per our How to articles. When done, jumper and connect it as a slave. Disconnecting the old drive helps avoid the mistake of prep’ing the wrong drive/partition.
1. Copy an Image of the Drive (or Partition). A hard disk may have one or more partitions. If you just have a C: drive, files are stored on it in a single partition. Copying an image of a hard disk partition copies the raw data, the 0's and 1's stored on the partition. This is done with an image copying utility such as:
-
Acronis OSSelector
-
Norton's Ghost
-
Paragon’s Partition Manager
-
PowerQuest's Partition Magic
-
GNU Parted
-
Other image copying programs available from various download web sites such as download.com
EZ Drive in Maxtor's MaxBlast Plus II Utilities and Western Digital Data Lifeguard Tools are capable of doing a simple image transfer.
2. Selective Directory/File Backup, Clean Install, Restore. Copy application data, user data in Windows, and reinstall Windows and applications. I usually do this to my hard disk about once every six months, or when it gets very unreliable from installing and uninstalling software and hardware on too many times. Use the Windows Explorer to copy everything that isn't "junk" except the Windows directory/folder and reinstall all applications, etc. Then make a Windows folder on the destination and selectively copy subdirectories/folder and files with user data from the Windows folder to the destination (to the backup). These include, but may not be limited to:
- Internet favorites
- Cookies
- Password files (they end in .pwl)
- Mailboxes and other application data in the Windows directory
- Netscape
- ISP Dial-up Network Connection Settings
If you are doing this procedure for a clean install and it involves wiping the disk clean, it is a good idea to make a backup with MS Backup, which comes with Windows 9x/Me, on a scratch drive or network file server in case you forget something.
Some applications keep data in the their corresponding subdirectories in the Program Files folder; e.g., Quick Books Pro accounting in the Intuit subfolder. You may therefore want to make a folder Program Files, appropriate subfolders, and copy the data over.
3. Use a Backup Program. There was a time when we followed Microsoft's recommendations for moving a Windows-based hard disk to a new hard disk drive. We would use Microsoft Backup, which comes with Windows, and backup the drive over the network to one of our file servers or to a scratch drive, installed an abbreviated version of Windows on the new drive, and do a restore. This often resulted in Windows registry problems when Windows merged the old registry with the new one. As disk drives, programs, and data got larger it also became very time consuming and error prone. Other backup programs worked better, but the size of the backups were a real problem. Tape drives were even slower and the tapes were often unreliable. Backups are still valuable in cases where the original drive fails, but for moving data from one good drive to another the image copy method is the best choice.
4. Directly Copy All of the Directories and Files. In the old days of MS-DOS operating system, Windows 3.x, and Windows for Work Groups 3.x, one used the the DOS xcopy command and it worked quite well. The command is:
a:\> xcopy c:\*.* d:\*.* s/h/e/v
The flags copy subdirectories and their contents, hidden and system files, empty directories, and verifies the data. In this example, the command is issued from a boot floppy. There are other variations of the command. The C: drive is the existing drive and the D: drive is a newly formatted drive that has had the DOS system files transferred to it so that it is bootable. Prior to formatting the D: drive, if it is new, it has to be partitioned with the DOS fdisk command to create a Primary DOS partition and any desired extended DOS Partitions (and logical drives D:, E:, etc. assigned). The Primary DOS partition has to be made active. More on this later... To format the Primary partition and move the system files in one operation, use:
A:\>format C: /s
Or format it without the /s flag and use,
A:\>sys C:
to move the system files to it.
All versions of Windows 95 and 98 eliminated the capability of using xcopy to reliably copying the Windows directory (folder) and system files from one hard disk drive to another. The DOS version of the xcopy command could no longer copy system files. When run from a DOS Window in Windows (running in the Normal Mode), the xcopy (xcopy32) command could copy system files, but since some files are in use while Windows is running and cannot be copied, this procedure does not work.
Nick Rage sent me the following via E-Mail on11/20/02. His procedure uses xcopy32 in a DOS window in Windows 9x running in the Safe Mode. I tried it with a clean install of the Windows 98 Upgrade and it worked! I did not have to SYS the drive and did not use the /s flag when formatting it. Where he says, "7. Get a dos prompt box..." he means open a DOS Window in Windows running in the Safe Mode.
Here's one method that I have used with great success over the years to copy one hard disk to another. If possible.. 1. Make windows startup disk using the feature found in Control Panel - Add\Remove - Startup Disk, and set it aside, you'll need it. 2. Clean up temp files and other extraneous stuff ie.. Temporary internet files, history, cookies, windows\temp folder, etc.. 3. Turn off virtual memory and disable screensaver and power management functions. Steps 2 & 3 aren't strictly required.. but works for me. 4. Shut down system and connect new(?) drive. Connect as master on secondary ide if possible. You may have to disconnect CDROM. 5. Insert Startup Disk in floppy drive. Start up PC. Make any necessary changes to CMOS setup (autodetect drives usually works best). Make sure floppy drive is 1st in boot sequence. Exit setup. Continue boot from floppy. Partition new drive. Reboot. Format new drive. 6. Remove startup disk and reboot system into safe mode. 7. Get a dos prompt box. (I know, I KNOW!!..Windows will bark and mutter about corrupt video or some such, go ahead it's OK.) Maybe this is a good place for disclaimers!! 8. Get to c: prompt. 9. Now to the good stuff..the command that has worked for me hundreds (yes, I've done it quite a bit!) of time IS... xcopy32 c:\*.* d:\*.* /s /e /r /v /k /f /c /h We even made it easy to remember.. SERVe Kentucky Fried Chicken Hot! Also this assumes 2 drives with 1 partition each. Adjust recipe to suit. But you get the idea. I'm sending this info as a note to the attached article (very well presented i might add). I'm just sharing something from my experiences that might help someone over a hump.
|
I still think copying an image is a better procedure as files in some applications may cause problems, etc.; however, this procedure may get the job done in a pinch.
I thought I saw an error when it was copying. To make a log, the screen output can probably be redirected to a file by using something like:
xcopy32 c:\*.* d:\*.* /s /e /r /v /k /f /c /h > c:\log.txt
I haven't tried that yet.
Windows Me changed the xcopy command so that it can copy hidden and system files from a DOS prompt using a Windows Me Startup floppy. Microsoft Knowledge Base Article Q289483, Switches That You Can Use with Xcopy and Xcopy32 Commands, states:
In Windows Millennium Edition (Me) only, an /h switch is added to the xcopy and the xcopy32 commands. This switch copies hidden and system files in MS-DOS mode. However, the Xcopy files are not automatically included on the Windows Me boot disk.
One does not use the SYS command for Windows Me like previous versions of DOS and Windows. It is not available from the DOS prompt. However, xcopy will copy the system files and thereby make the hard disk bootable. I found that various combinations of flags listed in the Knowledge Base article would not work together as they should. The following command does work as far as copying the system files:
a:\> xcopy c:\*.* d:\*.* s/e/h
The v flag is not available in the Win Me version of xcopy.
As stated in the Knowledge Base article, xcopy is not part of a Standard Win Me Startup floppy. It can be copied to a Windows Me Startup floppy from a hard disk that has Windows Me installed with the Windows Explorer or:
A:\>copy c:\windows\command\xcopy*.*
This copies three files: xcopy.exe, xcopy32.exe, and xcopy.mod (xcopy.exe calls xcopy32.exe).
I attempted to copy the file in the primary partition on my hard disk to a newly formatted hard disk using this procedure. It took a whole afternoon and didn't work. The primary partition was about four GBytes and had about 9,345 files after I aborted a couple of xcopy attempts and cleaned-up the disk some discovered by watching the process how much junk in the form of unnecessary files Microsoft now puts on a hard disk when Windows operates.
If anyone can get Nick Page's procedure to work with Windows Me, I'd appreciate the details.
Seagate has a utility called FileCopy in its DiscWizard Program Suite that, "manages the transfer of data from the old drive, which becomes the slave, to the new drive, which becomes the master. Even hidden files are transferred. FileCopy also solves the logistical issue of reversing the positions when you replace a functioning, existing drive with a new drive." I have not tried it. If you run across another program that really works, I'd appreciate hearing about it.
This article assumes that the partitions and drives are not compressed. If Windows 9x/Me C: drive has only a few files on it, the drive is probably compressed and most of the files are in a compressed volume, which is often the H: drive.