MBR Corruption: How to Fix a Corrupted MBR Without Losing Data

MBR破損

MBR corruption occurs when the boot code or partition table stored in the Master Boot Record becomes damaged. On a Legacy BIOS computer using an MBR-partitioned system disk, this damage may prevent Windows from starting and produce errors such as “Operating System not found,” “Invalid partition table,” or “No bootable device.”

堕落した マスタブートレコード does not necessarily mean that your files have been erased. In many cases, the operating system simply loses the information required to locate the Windows partition or identify the partitions stored on the disk. The underlying files may remain recoverable as long as the disk has not been formatted, initialized, repartitioned, or overwritten.

Before attempting a repair, determine whether the affected disk actually uses MBR. Most supported Windows 11 computers boot through UEFI and normally use GPT rather than MBR. In that situation, the problem may involve the EFI System Partition or Boot Configuration Data instead of the Master Boot Record.

Quick answer: To fix MBR corruption safely, first confirm that the system disk uses the MBR partition style. Try Windows Startup Repair before entering commands manually. On a Legacy BIOS/MBR system, bootrec /fixmbr can rewrite damaged master boot code. However, if partitions are missing, unallocated, or inaccessible, recover important data before rebuilding the partition table.

Windows 7/8/10/11およびWindows Serverをサポート

目次

MBR破損とは何か?

MBR破損 マスター・ブート・レコード(MBRで初期化されたディスクの最初の512バイト)の損傷を指す。.

このセクターには以下が含まれる:

1.ブートローダー・コード(446バイト)

2.パーティションテーブルエントリ(64バイト)

3.ブート署名(2バイト)

この構造が破損すると、システムはアクティブなパーティションを見つけられなかったり、初期化コードを実行できなかったりして、起動に失敗したり、ディスクがRAWとして表示されたりします。.

憂慮すべきことではあるが、MBRの破損は通常、構造的なメタデータのみに影響し、ボリューム上の実際のユーザー・データは無傷のままであることが多い。.

MBR破損とは

Common MBR Corruption Symptoms and Error Messages

Symptom or errorPossible meaning推奨される対応
Operating System not foundBoot code cannot locate the active system partitionRun Startup Repair, then check the disk partition style
Invalid partition tableMBR partition entries may be invalid or damagedDo not repartition the disk before recovering important files
No bootable deviceWrong boot order, damaged boot code, disk failure or missing system partitionCheck BIOS detection and boot order first
Black screen with a blinking cursorBoot code may not be transferring control to WindowsUse WinRE Startup Repair or Bootrec on an MBR system
Disk appears UnallocatedPartition table entries may be missingRecover data before creating a new volume
Disk shows Not InitializedWindows cannot read a valid partition structureDo not click Initialize if the disk contains important files
Partition appears RAWWindows cannot recognize the volume file systemRecover data before formatting or running repair operations
HDD or SSD disappears from BIOSPossible connection or physical hardware failureStop software repair and check the hardware

一般的な原因

MBRの破損は以下のような原因で起こる:

  • マルウェアによるブートセクタの改ざん
  • ディスク書き込み中の電力損失
  • クローニングまたはマイグレーションの失敗
  • パーティショニング・ユーティリティの誤った使用
  • レガシーMBRディスクとの古いBIOS/UEFIの相互作用
  • LBA 0に影響する物理的不良セクタ

MBRは1セクタしか占めないため、最小限の損傷でもディスク全体の構造を不安定にする可能性がある。.

What to Do Before Repairing a Corrupted MBR

Before writing new boot code or rebuilding a partition table, take the following precautions:

  1. Do not initialize, format, or repartition the affected disk.
  2. Do not install recovery or repair software on the affected drive.
  3. Disconnect unnecessary external drives to reduce the risk of selecting the wrong disk.
  4. If the disk contains important files and its partitions are missing, recover the files before making structural changes.
  5. If the drive makes clicking, grinding, or repeated spin-up sounds, stop using it and seek professional hardware recovery assistance.

Repair commands modify disk structures. They may restore boot access, but they are not substitutes for data recovery when partition information has already been lost.

How to Fix MBR Corruption Safely

Method 1. Confirm Whether the Disk Uses MBR or GPT

Before repairing an MBR, verify that the system disk actually uses the MBR partition style.

If Windows can still start:

  1. プレス Windows + X を選択する。 ディスク管理.
  2. Right-click the affected disk and select プロパティ.
  3. を開く。 巻数 タブ.
  4. チェック パーティションのスタイル.

It will display either:

  • マスターブートレコード(MBR)
  • GUIDパーティションテーブル(GPT)

If Windows cannot start, open Command Prompt from the Windows Recovery Environment and run:

diskpart
list disk
exit

An asterisk in the GPT column indicates that the disk uses GPT. If the system disk uses GPT, skip the MBR repair commands and proceed to the UEFI/BCD repair section.

Method 2. Run Windows Startup Repair

Startup Repair should normally be attempted before manual boot commands.

  1. Boot into the Windows Recovery Environment.
  2. 選択 トラブルシューティング.
  3. 選択 高度なオプション.
  4. 選択 スタートアップ修理.
  5. Choose the Windows installation and allow the repair process to finish.

Startup Repair can automatically resolve common startup problems involving damaged boot configuration, missing system files, and other boot-related errors.

If Windows still cannot start and the system disk is confirmed as MBR, continue with the next method.

Method 3. Repair MBR Boot Code with Bootrec

Boot from Windows installation media or enter the Windows Recovery Environment, then select:

Troubleshoot > Advanced options > Command Prompt

Run the following command:

bootrec /fixmbr

This writes Windows-compatible master boot code without intentionally overwriting the existing partition table.

Next, scan for Windows installations:

bootrec /scanos

If the Windows installation is not included in the Boot Configuration Data store, run:

ブートレコード /rebuildbcd

You may also encounter guides recommending:

ブートレコード /fixboot

This command repairs the partition boot sector rather than the MBR partition table. It is not required for every MBR corruption case and may return an “Access is denied” message on some UEFI-based systems.

Restart the computer after completing the commands.

重要 bootrec /fixmbr repairs master boot code only. It cannot restore missing partition entries when the partition table itself has been deleted or overwritten.

Method 4. Repair EFI and BCD on a UEFI/GPT System

If the system disk uses GPT, the computer does not rely on Legacy MBR boot code in the same way. Startup failure may instead be caused by a damaged EFI System Partition or Boot Configuration Data.

Try Startup Repair first. Advanced users can use BCDBoot to recreate boot files from the Windows installation:

bcdboot <WindowsDrive>:\Windows /s <EFIDrive>: /f UEFI

交換 <WindowsDrive> そして <EFIDrive> with the correct drive letters shown in the Windows Recovery Environment. Drive letters in WinRE may differ from those shown during normal Windows operation.

Do not guess the EFI partition or format it unless you have confirmed its identity and have an appropriate backup.

Method 5. Recover Data When Partitions Are Missing or Unallocated

If the disk appears as Unallocated, Not Initialized, RAW, or contains missing partitions, repairing the boot code alone may not restore access. These symptoms can indicate damage to the partition table or file system metadata.

この状況では

  1. 問題のあるディスクの使用を中止してください。.
  2. Connect it to another working Windows computer as a secondary drive when possible.
  3. インストール Magic Data Recovery on a healthy disk, not on the affected device.
  4. Select the damaged disk and scan for recoverable files.
  5. Preview the results and save recovered files to a different physical disk.
  6. Rebuild, initialize, or format the affected disk only after the required files have been recovered.

This recovery-first approach reduces the risk of overwriting partition information or file data that may still exist on the disk.

Should You Run CHKDSK?

チェックディスク is designed to check and repair logical file system errors. It does not rebuild the Master Boot Record or restore a deleted MBR partition table.

Do not run CHKDSK first when:

  • The partition is missing
  • The disk appears Unallocated
  • Windows asks you to initialize the disk
  • The volume is RAW and contains important files
  • The drive may have physical hardware damage

Recover important files first. CHKDSK can be considered later if the partition is visible, the file system is recognized, and you have already created a backup.

Can MBR Corruption Cause Permanent Data Loss?

MBR corruption alone usually prevents access to data rather than immediately deleting file contents. However, permanent data loss becomes more likely when the affected sectors are overwritten, the disk is initialized or repartitioned, new files are written to the drive, or physical damage prevents sectors from being read.

If only the boot code is damaged, repairing the MBR may restore normal startup. If the partition table is damaged, partition recovery or file recovery may be required. If the disk has physical problems such as bad sectors, repeated disconnections, unusual noises, or read failures, avoid repeated scans and create a sector-level image or contact a professional recovery service.

How to Prevent MBR Corruption

Although MBR corruption cannot always be prevented, the following practices reduce the risk:

  • Use a UPS or reliable power source during disk operations.
  • Avoid forcing the computer to shut down while partitions are being modified.
  • Download partitioning and cloning software only from trusted sources.
  • Confirm the source and destination disks before cloning or using DiskPart.
  • Keep antivirus protection and Windows security updates enabled.
  • Monitor HDD and SSD health for bad sectors and SMART warnings.
  • Maintain regular backups on a separate drive or cloud storage.
  • Create recovery media before changing partitions or installing another operating system.

まとめ

MBR corruption can prevent Windows from starting or make partitions inaccessible, but it does not automatically mean that the files stored on the disk are permanently lost.

Start by checking whether the affected disk uses マスタブートレコード または ジーピーティー. Try Windows Startup Repair before running commands manually. On a Legacy BIOS/MBR system, bootrec /fixmbr can repair damaged master boot code, but it cannot restore a missing partition table.

If the disk appears Unallocated, RAW, Not Initialized, or contains missing partitions, prioritize data recovery before formatting, initializing, or rebuilding disk structures. Magic Data Recovery can scan the affected disk and help retrieve accessible files before potentially destructive repair operations are performed.

Windows 7/8/10/11およびWindows Serverをサポート

FAQs About MBR Corruption

What causes MBR corruption?

MBR corruption can result from malware, sudden power loss, failed disk cloning, incorrect partition operations, bad sectors in the first disk sector, or installing another operating system that replaces the existing boot code. The cause determines whether only the boot code is damaged or whether the partition table has also been affected.

How do I know whether my MBR is corrupted?

Common signs include “Operating System not found,” “Invalid partition table,” “No bootable device,” a black screen with a blinking cursor, or missing partitions. However, these errors can also be caused by an incorrect boot order, damaged BCD files, EFI partition problems, or physical disk failure, so the partition style should be checked first.

Can a corrupted MBR be fixed without losing data?

Yes, if the damage is limited to the master boot code, rewriting the code may restore startup without deleting personal files. However, if the partition table is missing or the disk appears Unallocated or Not Initialized, recover important files before rebuilding disk structures. Formatting or repartitioning first can reduce recovery chances.

Does bootrec /fixmbr delete files?

The bootrec /fixmbr command writes Windows-compatible master boot code and does not intentionally erase normal files or overwrite the existing partition table. However, it should only be used on the correct disk. It also cannot restore partition entries that have already been deleted, overwritten, or corrupted.

Why does bootrec /fixmbr not fix my computer?

The command only repairs master boot code. It will not resolve a damaged partition table, missing Windows partition, corrupted file system, failed drive, EFI System Partition problem, or damaged BCD store. Check whether the disk uses MBR or GPT and identify which boot component is actually damaged before continuing.

Can CHKDSK repair a corrupted MBR?

No. CHKDSK checks and repairs supported file systems, such as NTFS or FAT, but it does not rebuild MBR boot code or restore a deleted MBR partition table. Avoid running it first when a partition is missing, RAW, Unallocated, or Not Initialized and important files have not been recovered.

Does Windows 11 use MBR or GPT?

Windows 11 computers that meet Microsoft’s normal system requirements use UEFI firmware and generally boot from a GPT system disk. An MBR disk may still be used as a secondary data disk or on an unsupported Legacy BIOS configuration. Confirm the partition style before using MBR-specific repair commands.

Can files be recovered from a disk with a corrupted MBR?

Files are often recoverable because MBR corruption usually damages boot or partition-location information rather than immediately erasing file contents. Recovery success depends on whether the original sectors have been overwritten and whether the disk is physically healthy. Scan the disk from another Windows system and save recovered files to a separate drive.

バシリイは、この分野で約10年の実務経験を持つデータ復元のスペシャリストです。そのキャリアを通じて、彼は削除されたファイル、フォーマットされたドライブ、失われたパーティション、RAWファイルシステムを含む何千もの複雑なケースの解決に成功してきました。彼の専門知識は、16進エディタなどの専門ツールを使用した手動復元方法と、復元ソフトウェアを使用した高度な自動化ソリューションの両方をカバーしています。バシリの使命は、信頼できるデータ復元知識をITプロフェッショナルと一般ユーザーの双方が利用できるようにし、貴重なデジタル資産を保護できるようにすることです。.