引导分区相关
電腦安裝了雙系統(tǒng),Windows和Linux,不過(guò)由于Linux在最近一段時(shí)間內(nèi)不會(huì)使用,所以我打算刪除Linux。刪除Linux最需要注意的地方,就是MBR(Master Boot Record)。在刪除Linux分區(qū)前,我們需要將啟動(dòng)Windows的引導(dǎo)信息寫(xiě)入MBR,否則,MBR中的Linux引導(dǎo)信息,當(dāng)然就不能啟動(dòng)Windows系統(tǒng)了。
一:將Windows的引導(dǎo)信息寫(xiě)入MBR
?? 寫(xiě)入MBR的方法,有兩種比較簡(jiǎn)單
?? 第1種方法:就是將Windows的安裝盤(pán)放入計(jì)算機(jī)以后,重啟計(jì)算機(jī),進(jìn)入Windows安裝程序,隨后,進(jìn)入恢復(fù)控制臺(tái),輸入命令fixmbr即可。
?? 第2種方法是為沒(méi)有Windows安裝盤(pán)的朋友準(zhǔn)備的,就是使用MBRFix工具進(jìn)行修復(fù)。
?? MBRFix工具修復(fù)MBR很方便,先進(jìn)入cmd命令窗口,然后進(jìn)入mbrfix工具所在的目錄(用cd命令),然后輸入命令 MbrFix /drive 0 fixmbr ,再確認(rèn)一下即可。重啟以后你會(huì)發(fā)現(xiàn),沒(méi)有了Linux,直接可以進(jìn)入Windows了。
二:刪除Linux分區(qū)
?? 最后一件事情,就是刪除Linux所在的分區(qū),這個(gè)很簡(jiǎn)單,您可以使用patition的分區(qū)工具,將該分區(qū)格式化成fat32或ntfs格式,就可以在Windows下使用了。
???請(qǐng)不要使用Windows自帶的分區(qū)工具進(jìn)行分區(qū),因?yàn)閃indows自帶的分區(qū)工具不能識(shí)別Linux分區(qū)。如果您使用了Windows自帶的分區(qū)工具,那么您的硬盤(pán)數(shù)據(jù)極有可能被破壞(我有過(guò)慘痛經(jīng)歷)。如果您的硬盤(pán)數(shù)據(jù)被破壞了,那么請(qǐng)用能夠修復(fù)分區(qū)的數(shù)據(jù)恢復(fù)軟件進(jìn)行修復(fù),不過(guò)不一定成功喔,看人品了~
附一:MbrFix命令
Commands:
MbrFix /drive <num> driveinfo Display drive informationMbrFix /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
?
如果先安裝Linux再安裝Windows癿話(huà),那MBR癿開(kāi)機(jī)管理程序就叧會(huì)有Windows癿項(xiàng)目,而丌會(huì)有Linux癿項(xiàng)目 (因?yàn)樵驹贛BR內(nèi)癿Linux癿開(kāi)機(jī)管理程序就會(huì)被覆蓋掉)。 那需要重新安裝Linux一次嗎?當(dāng)然丌需要,你叧要用盡各種方法來(lái)處理MBR癿內(nèi)容即可。 例如利用全中文癿spfdisk(http://spfdisk.sourceforge.net/)軟件來(lái)安裝訃識(shí)Windows/Linux癿管理程序, 也能夠利用Linux癿救援模弅來(lái)挽救MBR即可。
轉(zhuǎn)載于:https://blog.51cto.com/1381479/405879
總結(jié)
- 上一篇: 二、用FTP同步服务器
- 下一篇: 使用jquery+json实现ajax的