迁移windows系统到新硬盘#
工具#
Ventoy是一个开源工具,用于为ISO/WIM/IMG/VHD(x)/EFI文件创建可启动的USB驱动器。使用ventoy,您无需一遍又一遍地格式化磁盘,只需将ISO/WIM/IMG/VHD(x)/EFI文件复制到USB驱动器并直接启动即可。
- pe系统 :优启通iso
- 安装ventoy到U盘中,并将pe系统的ISO文件放入nna安装后的U盘。
U盘启动#
- 进入bios,关闭 Secure Boot;
- 开机按F12(dell,不同厂家可能不同)进入,选择U盘UEFI进入U盘系统,选择优启通iso进入其pe系统;
- 使用傲梅分区助手将原硬盘内容克隆到新硬盘(优启通pe系统包含该软件);
- 使用NTBOOT autofix 修复引导
- NTBOOT autofix 使用参考
- 正常硬盘结构的分卷,从左到右依次是 UEFI引导卷 、windows系统卷(C盘)、其他的分卷
从新硬盘进入系统#
- 将新硬盘替换旧硬盘,开机正常就会进入系统;
- 两块硬盘同时安装时,需从bios中将新硬盘中的UEFI引导放在第一位;
其他#
- 如系统盘不在C盘,可能是装多次系统,系统盘变成E盘或其他盘符;
- 通过上述步骤还是无法进入系统,会黑屏;
- 需要将新硬盘中win系统的盘符改成和旧硬盘中的一样,从新硬盘中的注册表文件里修改;
修改盘符#
Change the system or boot drive letter
Important
This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.
Make a full system backup of the computer and system state.
Sign in as an Administrator.
Start Regedt32.exe.
Locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
Select MountedDevices.
On the Security menu, select Permissions.
Verify that Administrators have full control. Change it back when you are finished with these steps.
Quit Regedt32.exe, and then start Regedit.exe.
Locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices
Find the drive letter you want to change to (new). Look for \DosDevices\C:.
Right-click \DosDevices\C:, and then select Rename.
Note
You must use Regedit instead of Regedt32 to rename this registry key.
Rename it to an unused drive letter \DosDevices\Z:.
It frees up drive letter C.
Find the drive letter you want changed. Look for \DosDevices\D:.
Right-click \DosDevices\D:, and then select Rename.
Rename it to the appropriate (new) drive letter \DosDevices\C:.
Select the value for \DosDevices\Z:, select Rename, and then name it back to \DosDevices\D:.
Quit Regedit, and then start Regedt32.
Change the permissions back to the previous setting for Administrators. It should probably be Read Only.
Restart the computer.