A few days ago, I saw a netizen saying that he wanted to "move XP" (move from one disk to another), but didn't know how to do it. So I spent two or three days specifically trying to solve it.
Here's how it went: for your reference.
(Related disks are all FAT32 or FAT16)
One
Backup the original system registry in DOS (\windows\system32\config)
Two
Go back to WINDOWS, modify the environment variables of the registry (system variables and user variables , in HKEY, LOCAL MACHINE and CURRENT USER), change the original system drive letter (g
to the one you want (c
Three
In DOS, use XCOPY from the 98 boot disk (XCOPY32.MOD should be in the same directory) to copy the entire system (windows\ documents and settings\ program files\) from g: to c:. Later, I found that many hidden ones were not copied, and it failed. Then I switched to xxcopy.exe, which is said to be able to copy hidden files, but still some were not copied. Really puzzled!
(The two programs in DOS to copy long file or folder names often copy them into short file names with "~1". This may be the reason why the system can enter WINDOWS but freezes when it should display the login username, because the system needs user information when logging in, that is, the information in the long file name documents and settings, etc.)
Then use GHOST 2002, but it said a registration number was needed when restoring. Then switch to GHOST 7.5. This time it can copy. The whole disk is exactly the same (Note: you must first clone to another backup disk (for example, D
first, and then restore from this backup disk to C:. But when restoring, pay attention: first copy all the boot files (including hidden ones) on the original C disk to another disk, then restore and release from D: to C:, and finally put back the boot files on the original C disk)
Four
Modify the BOOT.INI of C disk:
Change default= to multi(0)disk(0)rdisk(0)partition(1)\windows
Add under :
multi(0)disk(0)rdisk(0)partition(1)\windows="The words you want" /nodetect
Five
Restart.... Ah?
The screen shows:
invalid system disk replace the disk and press any key ...
(I estimated that after GHOST restore restart, the boot information of GHOST or 98 was written to the XP boot sector! Then I thought of a way to boot from a floppy disk....
Six
Restart.... Haha! This time it really boots from C disk, and successfully displays the login username!
So excited!......
But after entering the system, when I wanted to format the g disk, the system prompted that there was a program using g:, then I remembered that maybe in many places in the registry, the path of the program was still the original system path g:! That is to say, just changing the system and user environment variables is not enough!
Seven
But strangely: when I had a try and tried to start from the original system g: again, it miraculously entered his original system without any problem! I was very puzzled (you know, I had changed his environment variables!)
Eight
Well, that's fine! I then deleted the half-baked system copied to C disk, changed back boot.ini, and gave up the idea of moving XP.
Experience summary:
In the registry, not all the paths of the marked programs or files are based on the environment variables! Many programs (including WINDOWS itself) directly write out the specific path (that is, do not use the environment variables!)
Here's how it went: for your reference.
(Related disks are all FAT32 or FAT16)
One
Backup the original system registry in DOS (\windows\system32\config)
Two
Go back to WINDOWS, modify the environment variables of the registry (system variables and user variables , in HKEY, LOCAL MACHINE and CURRENT USER), change the original system drive letter (g
to the one you want (c
Three
In DOS, use XCOPY from the 98 boot disk (XCOPY32.MOD should be in the same directory) to copy the entire system (windows\ documents and settings\ program files\) from g: to c:. Later, I found that many hidden ones were not copied, and it failed. Then I switched to xxcopy.exe, which is said to be able to copy hidden files, but still some were not copied. Really puzzled!
(The two programs in DOS to copy long file or folder names often copy them into short file names with "~1". This may be the reason why the system can enter WINDOWS but freezes when it should display the login username, because the system needs user information when logging in, that is, the information in the long file name documents and settings, etc.)
Then use GHOST 2002, but it said a registration number was needed when restoring. Then switch to GHOST 7.5. This time it can copy. The whole disk is exactly the same (Note: you must first clone to another backup disk (for example, D
first, and then restore from this backup disk to C:. But when restoring, pay attention: first copy all the boot files (including hidden ones) on the original C disk to another disk, then restore and release from D: to C:, and finally put back the boot files on the original C disk)Four
Modify the BOOT.INI of C disk:
Change default= to multi(0)disk(0)rdisk(0)partition(1)\windows
Add under :
multi(0)disk(0)rdisk(0)partition(1)\windows="The words you want" /nodetect
Five
Restart.... Ah?
The screen shows:
invalid system disk replace the disk and press any key ...
(I estimated that after GHOST restore restart, the boot information of GHOST or 98 was written to the XP boot sector! Then I thought of a way to boot from a floppy disk....
Six
Restart.... Haha! This time it really boots from C disk, and successfully displays the login username!
So excited!......
But after entering the system, when I wanted to format the g disk, the system prompted that there was a program using g:, then I remembered that maybe in many places in the registry, the path of the program was still the original system path g:! That is to say, just changing the system and user environment variables is not enough!
Seven
But strangely: when I had a try and tried to start from the original system g: again, it miraculously entered his original system without any problem! I was very puzzled (you know, I had changed his environment variables!)
Eight
Well, that's fine! I then deleted the half-baked system copied to C disk, changed back boot.ini, and gave up the idea of moving XP.
Experience summary:
In the registry, not all the paths of the marked programs or files are based on the environment variables! Many programs (including WINDOWS itself) directly write out the specific path (that is, do not use the environment variables!)


