Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I'm trying to replace a hard drive for a
bigger one. I have use the following commands to move everything to the other one, But it doesn't copy it all.
copy c:/ d:/
copy c:/*.* d:/
Some body help?

First, what system are you copying? Windows 9x has "special needs", namely long filenames. Contrary to what some will say, Xcopy does not always work for that.
You could buy Norton Ghost, it works, will copy hd to hd, to cd, mayber more, will run off a floppy.
If you are just copying a simple old dos hd, do a "format/s" or "copy sys" from the old hd to the new, and make sure the "new" one will boot. Then just copy all the files, you will have to check attributes and make sure there are no read only files and so on.

If you are running Windows 9x hook up the new drive as something other than Primary master and boot in to Windows. FDISK and Format /S the new drive. Then do an XCOPY /S /E /H /C /K C:\*.* D:\*.* assuming that C is your old drive and that D is the new one. This will copy everything but the swap file. Windows will rebuild a swap file if one is not found on the next boot. You will then need to shut down and swap the drives. You will need a boot disk to change the active stats on the new drive so that it will boot. I have used this method on many systems and never had a problem on good drives. If the drive is bad, I would recommend using Linux or some other copying software.

As I mentioned above, there are several pages on the net explaining that xcopy does not always work, in all instances, where long file names are concerned. That is why, for Win9x, you need something similar to Ghost, to be SURE.

I'm assuming you are using ms-dos and windows no higher than 3.1 and both drives are less that the fat16 2 gig max.
Set old drive as master and new drive as slave. Connect them on the same cable to primary IDE connector with the red striped edge of the ribbon cable connected to the #1 pin side of the connectors. Set them up properly in cmos. Boot the computer. C: is your old drive and D: is your new one. Repartition D: if necessary with fdisk.
Back at the c: prompt type format/u d:/s (I know what you're going to say but it works that way) and return. When it's done formatting and transfering the system files type d: and return to go to the d: drive. At the d: prompt type c:\dos\xcopy *.*/e and return. This will transfer everything but non-system hidden files. You've already transferred the system hidden files with the /s suffix on format. When it's done copying turn the computer off and take off your old HD and set the jumper on the new HD to master of single, whichever is applicable for your drive. Boot the computer and set your new HD up correctly in cmos.
There's a good chance the partition on your new HD is not set active, especially if you repartitoned it. So boot from a dos system disk--the same version of dos that is installed on your HD. Run fdisk and set the partition active if necessary. Remove the system disk and reboot from your new HD.
I apologize if this is long winded but I wanted to cover all the bases in case were completely unfamiliar with it.
Now if you have win 9x then take the advice of the other comments and use norton ghost or drivecopy.

If you are doing the dos, as Dave said above, you can also do as he said, but use laplink or similar with a null cable. It's slower during the transfer, than his method, buy if you don't want to take the hd out and so on, it might be a good way to go.

They've told you most everything. MY 2 cents worth is XCOPY and COPY always destroy long filenames when they are run outside of windows. Only sometimes will Windows refuse to run because long filenames are missing. With windows 95 and above you pretty well need aome commercial product to copy one drive to another.
Although it does not copy long filenames, the XCOPY in DR-DOS has a switch for copying system and hidden files which Microsoft DOS does not.

Did you remember to format the NEW harddrive?
Make sure that the machine sees the harddrive and run fdisk. Choose option #4. It will tell you if there's an active partition. Just don't mess up the old drive in the process!
Check the jumpers to make sure it slaved correctly etc...

![]() |
executing sql loader thru...
|
I NEED MSDOS 6.0 AND 6.22
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |