bootsect

ブート セクター復元ツール

ブート セクター操作ツール


bootsect

  • C:\Windows\system32\bootsect.exe /help

Output:


bootsect {/help|/nt60|/nt52} {SYS|ALL|<ドライブ文字>:} [/force] [/mbr]

ブート セクター復元ツール

Bootsect.exe は、BOOTMGR と NTLDR を切り替えるために、ハード ディスク
パーティションのマスター ブート コードを更新します。このツールを使用すると、
コンピューターのブート セクターを復元できます。

/help   以下の使用法を表示します。

/nt52   NTLDR と互換性があるマスター ブート コードを SYS、ALL、または
        <ドライブ文字> に適用します。SYS、ALL、または <ドライブ文字>        インストールされているオペレーティング システムは Windows Vista
        よりも古くなければなりません。

/nt60   BOOTMGR と互換性があるマスター ブート コードを SYS、ALL、または
        <ドライブ文字> に適用します。SYS、ALL、または <ドライブ文字>        インストールされているオペレーティング システムは Windows Vista、
        Windows Server 2008 以降でなければなりません。

SYS     Windows のブートに使用されるシステム パーティション上のマスター
        ブート コードを更新します。

ALL     すべてのパーティションのマスター ブート コードを更新します。ALL は
        各ボリュームのブート コードを必ずしも更新しません。代わりに、Windows
        ブート ボリュームとして使用できるボリュームのブート コードを更新
        します。つまり、基になるディスク パーティションに接続されていない
        ダイナミック ボリュームはすべて除外されます。ブート コードはディスク
        パーティションの先頭に配置されている必要があるため、このような制限が
        存在します。

<ドライブ文字> このドライブ文字に関連付けられているボリュームのマスター
        ブート コードを更新します。次のいずれかの場合には、ブート コードは
        更新されません。1) <ドライブ文字> がボリュームに関連付けられていない
        場合、または 2) <ドライブ文字> が基になるディスク パーティションに
        接続されていないボリュームに関連付けられている場合。

/force  ブート コードの更新中にボリュームを強制的にマウント解除します。
        このオプションを使用する再には注意が必要です。

        Bootsect.exe が排他的なボリューム アクセスを取得できない場合、次の
        リブートの前にファイル システムによってブート コードが上書きされる
        ことがあります。
        Bootsect.exe は、各更新の前に、必ずボリュームをロックしてマウント解除
        しようとします。/force が指定されている場合、最初のロック試行が失敗
        すると、強制的なマウント解除が試行されます。他のプログラムが対象の
        ボリューム上のファイルを現在開いている場合などには、ロックが失敗する
        ことがあります。

        成功すると、最初のロックが失敗した場合でも、強制的なマウント解除により
        排他的なボリューム アクセスと信頼性の高いブート コードの更新が可能に
        なります。それと同時に、対象のボリューム上のファイルへの開いている
        ハンドルがすべて無効になります。その結果、これらのファイルを開いていた
        プログラムが予期しない動作をする可能性があります。そのため、この
        オプションを使用する際には注意が必要です。

/mbr    SYS、ALL、またはドライブ文字で指定されたパーティションを含むディスクの
        セクター 0 にあるパーティション テーブルを変更することなく、マスター
        ブート レコードを更新します。/nt52 オプションと共に使用した場合、
        マスター ブート レコードは Windows Vista よりも古いオペレーティング
        システムと互換性があります。/nt60 オプションと共に使用した場合、
        マスター ブート レコードは Windows Vista、Windows Server 2008 以降と
        互換性があります。

:

NTLDR と互換性があるマスター ブート コードを E: というラベルのボリュームに
適用するには、次のコマンドを使用します。

bootsect /nt52 E:

bootsect {/help|/nt60|/nt52} {SYS|ALL|<DriveLetter>:} [/force] [/mbr]

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.

/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.

/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, 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 will not be updated if either 1)
        <DriveLetter> is not associated with a volume or 2) <DriveLetter> 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 then 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.  This could result 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.

Example:

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

bootsect /nt52 E:

Return Code: 0


C:\Windows\system32\bootsect.exe
c:\>ver
Microsoft Windows [Version 10.0.19045.2075]
FileInfo
File Size110392bytes
Creation Time2019/12/07 18:08:07
LastWrite Time2019/12/07 18:08:07
ProductVersion10.0.19041.1889
FileVersion10.0.19041.1889 (WinBuild.160101.0800)
HashValue
MD54a59bda770a1683a7bc5a913ea1d74ab
SHA1c65466640bd627f40c67c7ba07814bcae4b69e2f
SHA224ef5bddeef6e94d7f5680a520ec6a3d33d41267447bbfafacad817d2e
SHA2562d7ce2dd4a9ce5fbed2c150720280cf50808b0cd5d7d988cdaaf5bd1e9e292f3
SHA384f9ccb58f7bdcbb2d2491728fe48f8c4333ebb379519fc9bbdc9617459f05cbd993201ebe7a7849a9ea80795c094c4e66
SHA512846ddc20123c8f47f2e9205d17dcf5ff53ca962891b309e7aebb0098ed6eb10ee56c53ac81c89745ac43b6ff8c4868a8144cac8c35b090a38c4d70fd9ecd6d24
Built with Hugo
テーマ StackJimmy によって設計されています。