安裝過linux系統的朋友,有過這樣的經歷,安裝Grub的時候,把硬盤的MBR修改了,可是刪除LINUX的時候,卻連原來的WINDOWS系統也啓動不了,怎麼辦?html
寫入MBR的方法,有兩種比較簡單linux
第1種方法:就是將Windows的安裝盤放入計算機之後,重啓計算機,進入Windows安裝程序,隨後,進入恢復控制檯,輸入命令fixmbr便可。
第2種方法是爲沒有Windows安裝盤的朋友準備的,就是使用MBRFix工具進行修復。
MBRFix工具修復MBR很方便,先進入cmd命令窗口,而後進入mbrfix工具所在的目錄(用cd命令),而後輸入命令 MbrFix /drive 0 fixmbr ,再確認一下便可。重啓之後你會發現,沒有了Linux,直接能夠進入Windows了。less
附一:MbrFix命令工具
MbrFix /drive <num> driveinfo Display drive information MbrFix /drive <num> listpartitions Display partition information MbrFix /drive <num> savembr <file> Save MBR and partitions to file MbrFix /drive <num> restorembr <file> Restore MBR and partitions from file MbrFix /drive <num> clean Delete partitions in MBR MbrFix /drive <num> readsignature {/byte} Read disk signature from MBR MbrFix /drive <num> generatesignature Generate disk signature in MBR MbrFix /drive <num> readstate Read state from byte 0x1b0 in MBR MbrFix /drive <num> writestate <state> Write state to byte 0x1b0 in MBR
Drive numbering <num> starts on 0.spa
Commands restorembr, fixmbr, generatesignature, writestate and clean will ask for confirmation unless /yes is included.rest
If the /byte option is given for the readsignature command, the signature is returned as a byte array instead of as a DWORD.code
附二:Mbr Fix下載(35KB)orm
http://www.cnitblog.com/Files/CoffeeCat/MbrFix.rarhtm
Have a nice day!!!blog