我的電腦安裝了雙系統,Windows和Linux,不過由於Linux在最近一段時間內不會使用,所以我打算刪除Linux。 刪除Linux最需要注意的地方,就是MBR(Master Boot Record)。在刪除Linux分區前,我們需要將啟動Windows的引導資訊寫入MBR,否則,MBR中的Linux引導資訊,當然就不能啟動Windows系統了。一:將Windows的引導資訊寫入MBR 寫入MBR的方法,有兩種比較簡單 第1種方法:就是將Windows的安裝盤放入電腦以後,重啟電腦,進入Windows安裝程式,隨後,進入修復主控台,輸入命令fixmbr即可。 第2種方法是為沒有Windows安裝盤的朋友準備的,就是使用MBRFix工具進行修複。 MBRFix工具修複MBR很方便,先進入cmd命令視窗,然後進入mbrfix工具所在的目錄(用cd命令),然後輸入命令 MbrFix /drive 0 fixmbr ,再確認一下即可。重啟以後你會發現,沒有了Linux,直接可以進入Windows了。 二:刪除Linux分區 最後一件事情,就是刪除Linux所在的分區,這個很簡單,您可以使用patition的分區工具,將該分區格式化成fat32或ntfs格式,就可以在Windows下使用了。 進入Windows內建的分區管理工具的方法:控制台->管理工具->電腦管理,點擊左邊的 磁碟管理 即可。 附一:MbrFix命令 Commands: 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> fixmbr Update MBR code to W2K/XP/2003 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.
Commands restorembr, fixmbr, generatesignature, writestate and clean will ask for confirmation unless /yes is included. If the /byte option is given for the readsignature command, the signature is returned as a byte array instead of as a DWORD.
附二:Mbr Fix下載(35KB) http://www.cnitblog.com/Files/CoffeeCat/MbrFix.rar |