记得以前同时安装了windows和linux后,如果grub安装到了MBR上,那么在删除linux前需要修复好MBR。否则直接删除了GRUB所在分区会使得系统无法引导。我以前一般是使用dos工具箱来用修复
现在有了mbrfix就更简单了。直接把 下载到电脑上,使用管理员打开powershell,然后运行
- MbrFix.exe /drive 0 listpartitions 查看分区
- 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) |