Chinaunix首页 | 论坛 | 博客
  • 博客访问: 972861
  • 博文数量: 99
  • 博客积分: 3306
  • 博客等级: 中校
  • 技术积分: 1238
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-21 10:14
文章分类

全部博文(99)

文章存档

2012年(37)

2011年(56)

2010年(6)

分类: WINDOWS

2012-01-26 19:19:48

记得以前同时安装了windows和linux后,如果grub安装到了MBR上,那么在删除linux前需要修复好MBR。否则直接删除了GRUB所在分区会使得系统无法引导。我以前一般是使用dos工具箱来用修复
  1. fdisk /mbr

现在有了mbrfix就更简单了。直接把 下载到电脑上,使用管理员打开powershell,然后运行
  1. MbrFix.exe /drive 0 listpartitions 查看分区
  2. MbrFix.exe /drive 0 fixmbr /yes 修复MBR
Commands:
MbrFix /drive driveinfo Display drive information
MbrFix /drive drivesize Returns drive size in MB as return value
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 {/vista|/win7} Update MBR code to W2K/XP/2003, Vista or Win7
MbrFix /drive clean Delete all partitions on the selected disk
MbrFix /drive readsignature {/byte} Read disk signature from MBR
MbrFix /drive writesignature Write disk signature to MBR
MbrFix /drive generatesignature Generate disk signature in MBR
MbrFix /drive readstate Read state from byte 0x1b2 in MBR
MbrFix /drive writestate Write state to byte 0x1b2 in MBR
MbrFix /drive readdrive Save sectors from drive to file
MbrFix /drive /partition fixbootsector Update Boot code in boot sector
MbrFix /drive /partition getpartitiontype Get partition type
MbrFix /drive /partition setpartitiontype Set partition type
MbrFix /drive /partition setactivepartition Set active partition
MbrFix /drive getactivepartition Get active partition
MbrFix volumeinformation driveletter Get volume information for partition
MbrFix flush {driveletter(s)} Flush files to disk for partition
MbrFix listpartitiontypes List partition types
 
阅读(2172) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~