bootsect (启动扇区恢复工具)

小猪老师 发表于 2020-06-18 18:20
浏览次数:
在手机上阅读

bootsect命令更新硬盘分区的主引导代码,以便在BOOTMGR和NTLDR之间进行切换。 您可以使用此工具恢复计算机上的引导扇区,它可以用于基于FAT和NTFS的文件系统,替代FixFAT和FixNTFS工具。

查看英文版

目录

1 bootsect 运行系统环境

2 Bootsect 语法

3 bootsect 示例

bootsect 运行系统环境

Windows xp

Windows vista

Windows 2000

Windows 7

Windows 8

Windows 10

Bootsect 语法

bootsect {/help|/nt60|/nt52} {SYS|ALL|:} [/force] [/mbr]
/help 显示这些使用说明。
/nt52 将与NTLDR兼容的主引导代码应用到SYS、ALL。安装在SYS、ALL或必须比Windows Vista更老的操作系统。
/nt60 将与BOOTMGR兼容的主引导代码应用到SYS、ALL。安装在SYS、ALL或必须是Windows Vista、Windows Server 2008或更高版本上的操作系统。
SYS 更新用于引导窗口的系统分区上的主引导代码。
ALL 更新所有分区上的主引导代码。所有这些都不一定更新每个卷的引导代码。相反,此选项更新可以用作Windows引导卷的卷上的引导代码,这将排除任何未连接到底层磁盘分区的动态卷。之所以存在此限制,是因为引导代码必须位于磁盘分区的开头。
< DriveLetter > 更新与此驱动器号关联的卷上的主引导代码。如果1)与卷没有关联,或者2)与未连接到底层磁盘分区的卷关联,则不会更新引导代码。
/force 在引导代码更新期间强制卸载卷。您应该谨慎使用此选项。
如果Bootsect.exe不能获得独占卷访问,文件系统可能会在下一次重新引导之前覆盖引导代码。exe总是在每次更新之前尝试锁定和卸载卷。当指定/force时,如果初始锁尝试失败,将尝试强制卸除。
锁定可能会失败,例如,如果目标卷上的文件当前被其他程序打开。
当成功时,强制卸除允许排他卷访问和可靠的引导代码更新,即使初始锁定失败。同时,强制卸除会使目标卷上所有打开的文件句柄失效,导致打开这些文件的程序出现意外行为。
因此,您应该谨慎使用此选项。
/mbr 更新主引导记录,而不更改包含SYS、ALL或驱动器号指定的分区的磁盘扇区0上的分区表。当与/nt52选项一起使用时,主引导记录与比windowsvista更老的操作系统兼容。
当与/nt60选项一起使用时,主引导记录与Windows Vista、Windows Server 2008或更高版本兼容。
bootsect {/help|/nt60|/nt52} {SYS|ALL|:} [/force] [/mbr]
Drive: The drive letter to be searched.
/help Displays these usage instructions.
/nt52 Applies the master boot code that is compatible with NTLDR to SYS, ALL, or. The operating system installed on SYS, ALL, ormust be older than Windows Vista.
/nt60 Applies the master boot code that is compatible with BOOTMGR to SYS, ALL, or. The operating system installed on SYS, ALL, ormust be Windows Vista, Windows Server 2008 or later.
SYS Updates the master boot code on the system partition used to boot 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.
< DriveLetter > Updates the master boot code on the volume associated with this drive letter. Boot code is not updated if either 1)is not associated with a volume or 2)is associated with a volume not connected to an underlying disk partition.
/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, the file system may overwrite the boot code before the next reboot. 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.

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 resulting in unexpected behavior from the programs that opened these files. Therefore, you should use this option with caution.
/mbr Updates the master boot record without changing the partition table on sector 0 of the disk that contains the partition specified by SYS, ALL, or drive letter. When used with /nt52 option, the master boot record is compatible with operating systems older than Windows Vista. When used with the /nt60 option, the master boot record is compatible with Windows Vista, Windows Server 2008 or later.


查看英文版

查看中文版

bootsect 示例

要将与NTLDR兼容的主引导代码应用到标为E:的卷,请使用以下命令:

bootsect /nt52 E:

To apply the master boot code that is compatible with NTLDR to the volume labeled E:, use the following command:

bootsect /nt52 E:

查看英文版

查看中文版

其他命令行

backup | batch | bcdedit | bootcfg | bootsect | break |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条