• 安装linux后,重新装windows,修复mbr引导


    有时候,电脑为了短期干一个linux环境的项目,常常在电脑上装个linux环境,用几天后,又想卸载了重新装windows,可是现在装windows,为了省事,大家总是喜欢用ghost,结果发现ghost之后,系统无法引导,因为ghost后,虽然格式化磁盘,但并没有重写mbr引导分区

    方法:

    一、windows 光盘: 将Windows的安装盘放入计算机以后,重启计算机,进入Windows安装程序,随后,按R键进入恢复控制台,出现C:/windows之后,输入命令fixmbr即可。然后Y确定,即可。
    二、mbrfix 1、下载mbrfix http://www.sysint.no/Download/tabid/162/Default.aspx (MBRFix ) 或者见附件
    2、解压 将压缩包(mbrfix.zip)解压至系统根目录 C:\
    3、修复mbr a.使用Windows PE光盘启动,进入系统 b.进入cmd命令窗口 c.然后进入mbrfix工具所在的目录

    引用:
    cd \

    d.运行mbrfix修复命令
    windows XP

    引用:
    MBRFix /drive 0 fixmbr /yes

    windows vista

    引用:
    MbrFix /drive 0 fixmbr /vista /yes

    附:MBRFix命令:(参考:http://www.sysint.no/nedlasting/mbrfix.htm)

    引用:
    MbrFix /drive <num> driveinfo              Display drive information     MbrFix /drive <num> drivesize              Returns drive size in MB as return value     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 {/vista}        Update MBR code to W2K/XP/2003 or Vista     MbrFix /drive <num> clean                  Delete all partitions in MBR     MbrFix /drive <num> readsignature {/byte}  Read disk signature from MBR     MbrFix /drive <num> writesignature <hex>   Write disk signature to MBR     MbrFix /drive <num> generatesignature      Generate disk signature in MBR     MbrFix /drive <num> readstate              Read state from byte 0x1b2 in MBR     MbrFix /drive <num> writestate <state>     Write state to byte 0x1b2 in MBR     MbrFix /drive <num> readdrive <startsector> <sectorcount> <file>                                                Save sectors from drive to file     MbrFix /drive <num> /partition <part> fixbootsector <os>                                                    Update Boot code in boot sector     MbrFix /drive <num> /partition <part> getpartitiontype                                                Get partition type     MbrFix /drive <num> /partition <part> setpartitiontype <typenum>                                                    Set partition type     MbrFix /drive <num> /partition <part> setactivepartition                                                Set active partition     MbrFix /drive <num> 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
    Drive numbering <num> starts on 0. Partition numbering <part> starts on 1.
    Commands restorembr, fixmbr, generatesignature, writestate, clean, setactivepartition and fixbootsector 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. Writesignature requires the new signature to be specified as 8 hex digits.
    If /vista is used with the fixmbr command, a Windows Vista MBR is written instead of a Win2000/XP/2003 MBR. The Vista MBR should work with the other OS'es as well.
  • 相关阅读:
    转载 | float 清除浮动的7种方法
    转载 | CSS图片下面产生间隙的 6种解决方案
    (转载)内联元素设置宽高问题
    HTML/CSS:display:flex 布局教程
    HTML/CSS:block,inline和inline-block概念和区别
    上传文件
    分页查询 模糊查询 合体查询
    repeater的command用法
    窗体内的控制 跨窗体控制
    webform 跨窗体传值
  • 原文地址:https://www.cnblogs.com/alanjl/p/3048259.html
Copyright © 2020-2023  润新知