各位老铁们好,相信很多人对bootsect.exe都不是特别的了解,因此呢,今天就来为大家分享下关于bootsect.exe以及bootsect用法的问题知识,还望可以帮助大家,解决大家的一些困惑,下面一起来看看吧!
bootsect.exe简介
bootsect.exe是Windows Vista和Windows 7安装盘中内置的一个实用工具,专用于修复或升级引导扇区(boot sector),位于安装光盘的boot目录下,文件大小小于100KB。它的主要功能是改变磁盘分区的主引导编码,以适应不同操作系统如NTLDR(Windows XP)或BOOTMGR(Windows Vista及后续版本)的引导需求。
该工具的命令结构为:bootsect{/help|/nt52|/nt60}{SYS| ALL|:}[/force ][/mbr ],其中:
/help:显示使用帮助,提供详细的命令解释。
/nt52:将与NTLDR兼容的主引导编码写入(SYS, ALL,)分区,适用于Windows XP系统。
/nt60:写入与BOOTMGR兼容的编码,适用于Windows Vista, 2008及更高版本,如Windows 7。
SYS:只升级Windows系统分区的主引导编码。
ALL:升级所有可作为系统启动卷的分区,但不包括未与基本磁盘连接的动态卷。
:针对指定盘符的分区升级主引导编码,但对未关联或未连接基本磁盘的分区无效。
/force:在升级过程中强制卸载卷,可能引发警告,因为可能会导致文件系统在下次重启前重写引导编码。
/mbr:更新主引导记录,保持分区表不变,兼容性分别针对NTLDR和BOOTMGR对应的系统。
使用示例:若需将E盘的主引导编码改为NTLDR兼容,命令为:bootsect/nt52 E:。执行时务必谨慎,确保对系统操作的正确性和文件系统的安全性。
c:\boot\bootsect.exe /nt60 c:为无效的windows映像
2、把E:\win7目录下的bootmgr和boot目录(其实只要里面的boot.sdi和bcd文件)拷贝到c盘根目录下,并在C盘根目录下建个sources文件夹。3、把E:\win7\sources下的boot.win复制到C盘下sourse文件夹。 4、运行cmd,然后输入c:\boot\bootsect.exe/nt60 c:(注意,此处bootsect在c:\boot目录下),然后提示successful(即成功了!)5、重启计算机,正在启动安装程序到第四步输入命令就出现为无效的映像,不知道哪一步错了,急死了,希望电脑高手帮帮忙,谢谢了补充:重启后从硬盘启动,没有安装画面,出来一大堆英文一直往下刷,不知道是哪出错了。我的是DELL mini10的上网本,不知道有没有这款本本的具体教程,麻烦给个链接,谢谢满意答案Битка11级2010-08-05其实,在PE下直接用虚拟光驱加载Win7镜像后就可以直接安装了,不需要这么麻烦。或者你去下载一个Ghost版的Win7也是可以的。
bootsect.exe的结合英文说明的详解
(使用命令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 toswitch 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.
如果锁定成功,强制删除将启用独占卷访问权限和可靠的启动代码更新,即使初始锁定失败。同时,强制卸载会导致所有目标卷上打开的文件句柄失效。这可能导致打开这些文件的程序产生不可预料的行为。因此要谨慎地使用该选项。