后安装xp,再用 bootsect /nt60 c: /mbr 恢复7的引导后,没有了xp启动。
添加Windows XP启动项:
bcdedit /create {ntldr} /d "Windows XP"
bcdedit /set {ntldr} device partition=C:
bcdedit /set {ntldr} path \ntldr
bcdedit /displayorder {ntldr} /addlast
添加 Grub4Dos 启动项的方法:
bcdedit /create /d "Grub4dos Menu" /application bootsector > "%temp%\wpeguid.txt"
for /f "tokens=2" %%a in (%temp%\wpeguid.txt) do set wpeguid=%%a
echo 启动项ID为:%wpeguid%
pause
bcdedit /set %wpeguid% device partition=C:
bcdedit /set %wpeguid% path \peldr.mbr
bcdedit /displayorder %wpeguid% /addlast
bcdedit /timeout 10
复制grldr.mbr/grldr/menu.lst三个文件到C:\目录下。