歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 一個命令刪除Ubuntu的grub

一個命令刪除Ubuntu的grub

日期:2017/2/28 16:32:57   编辑:Linux教程

安裝完Ubuntu後系統就用grub接管了Windows7的啟動選項,但哪天不想用Ubuntu了,除了用wubi安裝能夠吃後悔藥外,用Windows7的安裝盤修復只需要一個命令,一眨眼的功夫就能正常用Windows7單啟動了。

無論Ubuntu分區是否已經刪除,開機出現grub>字符無法啟動系統,或者Ubuntu還呆在它的ext4分區中,直接用Windows7光盤啟動系統,然後照一下步驟:

1、用Windows7光盤啟動系統後會讓你選擇語言,默認的或者自己隨便選一下後按下一步;
2、在下一個界面會提示安裝Windows,此時選擇左下角的修復計算機;



3、等待系統找到Windows7系統後按下一步;
4、選擇最後一個“Command Prompt”;



5、在彈出的命令行對話框中輸入“bootrec.exe[空格]/fixmbr",按下回車後就已經刪除了grub,很快。。

退出光盤重啟計算機後系統就已經自動進入Windows7了

bootrec.exe 的其他參數:
* /FixMbr. Re-writes the master boot record (MBR) of the system partition to start Windows Vista. This won’t overwrite the existing partition table.
* /FixBoot. Writes a boot sector onto the system partition to start Windows Vista.
* /ScanOs. Scans all disks for Windows Vista installations and displays them to you. Oddly, this didn’t work for me, even on a test system that was starting just fine.
* /RebuildBcd. Scans all disks for Windows Vista installations and prompts you to pick the ones you want to add to the BCD.

Copyright © Linux教程網 All Rights Reserved