
我是 Windows 使用者。我嘗試使用 Linux 進行實驗,並在我的系統上安裝了 openSUSE。我格式化了一個分割區並在該磁碟機上安裝了 Linux。
當我嘗試透過格式化該磁碟機來刪除 Linux 時,下次啟動時,Windows 將無法載入。
顯示一些 GRUB 引導程式錯誤。我重新安裝了 Linux,一切又恢復正常了。那麼,如何從我的系統(從該磁碟機)中刪除 Linux,而不影響 Windows 的引導程式?
答案1
您必須重新安裝 Windows 開機載入程式。使用 Windows CD,選擇復原選項,然後進入命令提示字元。然後根據 Windows 版本,您應該運行fixboot
和fixmbr
或Bootrec.exe/FixMbr
。
更多閱讀:
答案2
您可以透過格式化 Linux 分割區並在磁碟管理器中建立未指派的空間來完成此操作。然後用 CD-ROM 中的 Windows CD 啟動電腦。加載可能需要幾分鐘。按“r”選擇“恢復控制台”,選擇 Windows 系統並登入
Press enter to bypass the administrative password prompt.
Type fixboot and press enter.
Type y to confirm choice and press enter.
Type fixmbr and press enter.
Type y to confirm choice and press enter.
Then retype fixboot and press enter.
Type y to confirm choice and press enter.
Type exit and press enter.
答案3
從 Linux 啟動並安裝軟體包:
sudo apt-get install syslinux
如果已安裝該軟體包,請使用以下命令寫入 MBR。
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
如果它不起作用,請從 Linux 啟動並安裝此軟體包:
sudo apt-get install mbr
使用它來寫入 MBR:
sudo install-mbr -i n -p D -t 0 /dev/sda
要檢查,請使用:
sudo fdisk -l