`
binyan17
  • 浏览: 200299 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论

bootsect 用法

    博客分类:
  • Win7
 
阅读更多

K:\boot\bootsect.exe /nt52 all /force    安装xp和win8后 卸载win8的方法,最后只剩下xp了,可以正常启动到xp。格式化win8的盘就干净了。
下载bootsect放到U盘用winPE的cmd执行,也可以用win7的启动盘(或启动win7U盘安装盘)修复中的cmd执行。

bootsect.exe(boot sector)是Windows vista/7中光盘中自带的一个程序,字面解释是引导扇区修复工具(boot sector restoration tool),是位于安装光盘boot目录下,体积很小,不到100kb,但却很实用。
语法为:bootsect {/help/nt60/nt52}{sys或all}[/force] [/mbr]
  用途:为硬盘分区更新主引导代码,以实现bootmgr 和ntldr启动方式之间的转换
  /help 帮助
  /nt60 使用基于内核为nt60的操作系统的主引导代码,有:Windows vista和Windows7等
  引导文件为 bootmgr
  /nt52 使用基于内核为nt52的操作系统的主引导代码,即:Windows xp
  引导文件为 ntldr
  sys 更新主引导代码到系统分区,用于启动系统
  all把引导代码加到可以作为Windows 系统分区的卷。
  /force 强制卸下该卷
  /mbr 更新主引导记录结合英文说明的详解    英文原版的说明:(使用命令bootsect /?)
    bootsect {/help|/nt60|/nt52} {SYS|ALL|<DriveLetter>:} [/force]Boot sector restoration tool
    Bootsect.exe updates the master boot code for hard disk partitions in order to switch between BOOTMGR and NTLDR. You can 
    use this tool to restore the boot sector on your computer.
      翻译:
    bootsect命令使用格式:
    bootsect {/help|/nt60|/nt52} {SYS|ALL|<DriveLetter>:} [/force]Boot sector restoration tool
        bootsect工具说明:
    bootsect.exe更改硬盘分区的主启动代码以便在ntlder和bootmgr之间切换,可以使用此工具修改计算机硬盘的启动扇区。
    例如:Drive:\boot\Bootsect.exe /NT60 All 的作用如下:使用 Bootsect.exe 还原 Windows Vista MBR 以及将控制权转给 Windows 启动管理器程序。
    具体参数解释: 
  命令描述 /help 显示这些用法说明。
     /nt52 将与 NTLDR 兼容的主启动代码应用到 SYS、ALL 或 <DriveLetter>。在 SYS、ALL 或 <DriveLetter> 上安装的操作系统必须是以前版本的 Windows。 
    /nt60 将与 BOOTMGR 兼容的主启动代码应用到 SYS、ALL 或 <DriveLetter>。在 SYS、ALL 或 <DriveLetter> 上安装的操作系统必须是Windows Vista或Win7。 
    SYS 更新用于启动 Windows 的系统分区上的主启动代码。 ALL 更新所有分区上的主启动代码。
    ALL 不必更新每个卷的启动代码。相反,该选项将更新可用作 Windows 启动卷(不包括没有与基础磁盘分区连接的动态卷)的卷上的启动代码。存在此限制是因为启动代码必须位于磁盘分区的起始处。 
    <DriveLetter>更新与此驱动器号关联的卷上的主启动代码。在以下两种情况下,不会更新启动代码:
  1) <DriveLetter> 与卷没有关联;
  2) <DriveLetter> 与未连接到基础磁盘分区的卷相关联。
    /force 在启动代码更新期间强制卸除卷。必须谨慎使用该选项。如果 Bootsect.exe 无法获得独占的卷访问权限,则文件系统可能在下一次重新启动前覆盖启动代码。Bootsect.exe 始终会在每次更新前尝试锁定和卸除卷。当指定 /force 时,如果初始的锁定尝试失败,将尝试强制卸除。例如,如果目标卷上的文件当前已被其他程序打开,则锁定可能会失败。 如果锁定成功,强制卸除将启用独占卷访问权限和可靠的启动代码更新,即使初始锁定失败。同时,强制卸除将使指向目标卷上文件的所有打开的句柄无效。这可以导致来自打开这些文件的程序的意外行为
  。因此要慎使用该选项。
  英文原版:
  /help   Displays these usage instructions.显示该命令的使用说明
  /nt52   Applies the master boot code that is compatible with NTLDR to SYS,ALL, or<DriveLetter>. The operating system installed on SYS, ALL, or <DriveLetter> must be older than Windows Vista.将与NTLDR兼容的主启动代码应用到SYS,ALL或<DriverLetter>,安装在
  SYS,ALL或<DriverLetter>上的操作系统应该是Vista之前的版本。换句话说就是/nt52应该用于vista之前的xp,2003等操作系统的启动引导。
  /nt60   Applies the master boot code that is compatible with BOOTMGR to SYS,  ALL, or <DriveLetter>. The operating system installed on SYS, ALL, or  <DriveLetter> must be Windows Vista or WindowsServer “Longhorn”.将与BootMgr兼容的主启动代码应用到SYS,ALL或<DriverLetter>,安装在SYS,ALL或<DriverLetter>上的操作系统应该是Vista或者服务器Longhorn版本。换句话说就是/nt60应用在这些系统的启动引导。
  SYS      Updates the master boot code on the system partition used to boot。Windows.修改用于启动Windows的系统分区的主启动代码。
  ALL     Updates the master boot code on all partitions. ALL does not   necessarily update the boot code for each volume. Instead, this  option updates the boot code on volumes that could be used as Windows boot volumes, which excludes any dynamic volumes that are not           connected with an underlying disk partition. This restriction is present because boot code must be located at the beginning of a disk partition.修改所有分区的主启动代码。ALL不必要修改每个卷的主启动代码。相反的,这个选项修改可以用做windows启动卷的启动代码(不包括没有与基础磁盘分区连接的动态卷)。有这个限制是因为启动代码必须位于磁盘分区的开始处。
  <DriverLetter>   Updates the master boot code on the volume associated with this drive letter. Boot code will not be updated if either 1) is not associated with a volume or 2) is associated with a volume not connected to an underlying disk partition. 
     修改与此驱动器号关联的卷上的主启动代码。在以下两种情况下,不会更新主启动代码:1). 此驱动器号没有关联卷 2). 与未连接到基本磁盘分区的卷关联。
  /force      Forcibly dismounts the volume(s) during the boot code update. You should use this option with caution.  
    在启动代码更新期间强制卸除卷。必须谨慎使用该选项。
    If Bootsect.exe cannot gain exclusive volume access then the file system may overwrite the boot code before the next reboot.
    如果Bootsect.exe不能获得独占的卷访问权限,则文件系统可能在下一次重启之前覆盖启动代码。
    Bootsect.exe always attempts to lock and dismount the volume before each update. When /force is specified, a forced dismount is attempted if the initial lock attempt fails. A lock can fail, for example, if files on the target volume are currently opened by other programs.Bootsect.exe
    在每一次更新之前总是尝试锁定和卸载卷。当/force被指定时,如果锁定尝试失败,一个强制的卸载将会被尝试。锁定会有失败的情况,例如,如果目标卷上的文件爱你正被其他的程序打开。
    When successful, a forced dismount allows exclusive volume access and a reliable boot code update even though the initial lock failed. At the same time, a forced dismount invalidates all open handles to files on the target volume. This could result in unexpected behavior from the programs that opened these files. Therefore, you should use this option with caution.
    如果锁定成功,强制删除将启用独占卷访问权限和可靠的启动代码更新,即使初始锁定失败。同时,强制卸载会导致所有目标卷上打开的文件句柄失效。这可能导致打开这些文件的程序产生不可预料的行为。因此要谨慎地使用该选项。

分享到:
评论

相关推荐

    引导程序的设计以及进程环境的建立.rar_boot16_bootsect.bin_nasm_nasm-0.98_引导程序

    1、BOOTSECT.BIN 功能:1.44M软盘的引导扇区中的文件 ... 使用方法:将OS.PCS拷贝到引导扇区为BOOTSECT.BIN的软盘上,设定从软驱启动计算机,重新启动计算机,电脑启动成功后可运行OS.PCS文件以显示任务切换。

    vFloppy

    压缩包中包括以下文件:  文件 说明 使用 vFloppy.exe 主应用程序 vFloppy.chm 应用程序帮助程序 ... 使用方法很简单,在 boot.ini 中添加一句: C:\\boot\\Bootsect.cdr=\"从光盘引导\"  

    系统维护工具辑录(安装Ghost Win7必备)

    ghost32 用于将分区备份为gho文件,或将gho释放回某个分区 ghostxp 用于查看gho文件,或是从gho文件中提取某个文件 ...使用环境及使用方法请参看我的博文: http://blog.csdn.net/yang3wei/article/details/8471005

    windows xp,vista,win7启动修复;自动修复XP/VISTA/WIN7系统引导

    使用方法:在系统盘符中新建recovery文件夹,再把光盘或安装程序中的boot\boot.sdi和sources\boot.wim复制至 recovery文件夹,再运行本程序,即可自动添加。 修复效果: 存在原BCD或Boot.ini时程序将予备份,备份...

    Linux-0.11 [内核源代码带中文注释]

    INT 0x13 的使用方法如下: ! 读扇区: ! ah = 0x02 - 读磁盘扇区到内存;al = 需要读出的扇区数量; ! ch = 磁道(柱面)号的低8 位; cl = 开始扇区(0-5 位),磁道号高2 位(6-7); ! dh = 磁头号; dl = 驱动器号...

    老毛桃u盘启动盘制作

    方法一:在命令提示符模式下直接输入“Sfc/scanonce”,检查一下所有的系统文件,如果需要,Windows 会提示插入原始安装光盘,然后重新启动计算机,即可解决问题。 方法二:这可能是由于安装游戏软件的过程中损坏...

    ARM_Linux启动分析.pdf

    所不同的是,在i386系统中,当内核以bzImage的形式压缩,即大内核方式(__BIG_KERNEL__)压缩时就需要预先处理bootsect.S和setup.S,按照大核模式使用$(CPP) 处理生成bbootsect.S和bsetup.S,然后再编译生成相应的.o...

    windows上可编译Linux内核

    编译过程: 1). 解压后默认的文件夹位置是在D:\Linux-0.11,如果你不是将文件解压到该目录下, ... 权宜之计,把0xffff再改成0x3ffff,这样VirtualAddress就不能大于0x3ffff,不知谁有更好的解决方法,

    windows下可编译linux 用insight+bochs源码级调试

    这就是能在windows环境下编译的Linux 0.11了,不是在Cygwin,也不是在虚拟机里,而是使用MinGW. 下面是在Windows下编译Linux 0.11会遇到的问题和对原文件作的修改: 1.赵炯博士已经将汇编程序中引用的C变量(包括嵌入...

    电脑高手必备 Windows系统35招实用技巧

    什么是实用技巧,就是那种能经常用得着的值得收藏起来的应用方法。本文 中笔者就将向大家介绍35种Windows操作系统技巧,招招实用,招招值得你把 他保存到你的电脑中或者把这篇文章的地址收藏到收藏夹里。  1、...

    ntldr\NTDETECT.COM 用于NTLDR IS MISSING

    更新此字段最简单的方法是通过使用下面的过程重写 Windows 95、Windows 98 或者 Windows Me 的启动代码: 代码 一. 使用包含 Sys.com 文件(默认情况下包含此文件)的 Windows 95、Windows 98 或者 Windows Me 启动...

    linux内核 0.11版本源码 带中文注释

    处理的方法是在fork()调用之后不让main()使用 * 任何堆栈。因此就不能有函数调用 - 这意味着fork 也要使用内嵌的代码,否则我们在从fork()退出 * 时就要使用堆栈了。 * 实际上只有pause 和fork 需要使用内嵌方式...

    winxp系统结构5课(注册表)->1认识注册表

    三,读取boot.ini文件,c:\下的boot.ini和bootsect.dos配合来完成多操作系统的管理。 四,加载NtDetect.com文件:此文件的作用是检测计算机硬件,如并口,显示适配器等设备, 并将收集到的信息的硬件列表...

Global site tag (gtag.js) - Google Analytics