在Windows下刪除Linux系統的方法

來源:互聯網
上載者:User
我的電腦安裝了雙系統,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

 原文地址 http://hi.baidu.com/chuanqi_ding/blog/item/821d2308eeb112900a7b82bd.html
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.