Chinaunix首页 | 论坛 | 博客
  • 博客访问: 159769
  • 博文数量: 6
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 500
  • 用 户 组: 普通用户
  • 注册时间: 2006-12-29 09:42
文章分类

全部博文(6)

文章存档

2008年(6)

我的朋友
最近访客

分类: WINDOWS

2008-07-12 16:57:27

我的电脑安装了双系统,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  driveinfo              Display drive information
MbrFix /drive listpartitions Display partition information
MbrFix /drive savembr Save MBR and partitions to file
MbrFix /drive restorembr Restore MBR and partitions from file
MbrFix /drive fixmbr Update MBR code to W2K/XP/2003
MbrFix /drive clean Delete partitions in MBR
MbrFix /drive readsignature {/byte} Read disk signature from MBR
MbrFix /drive generatesignature Generate disk signature in MBR
MbrFix /drive readstate Read state from byte 0x1b0 in MBR
MbrFix /drive writestate Write state to byte 0x1b0 in MBR

Drive numbering 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
阅读(3994) | 评论(0) | 转发(0) |
0

上一篇:MiniGUI 1.3.3 移植详解

下一篇:没有了

给主人留下些什么吧!~~