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

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 /fixmbrcan 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の破損は通常、構造的なメタデータのみに影響し、ボリューム上の実際のユーザー・データは無傷のままであることが多い。.

Common MBR Corruption Symptoms and Error Messages
| Symptom or error | Possible meaning | 推奨される対応 |
|---|---|---|
| Operating System not found | Boot code cannot locate the active system partition | Run Startup Repair, then check the disk partition style |
| Invalid partition table | MBR partition entries may be invalid or damaged | Do not repartition the disk before recovering important files |
| No bootable device | Wrong boot order, damaged boot code, disk failure or missing system partition | Check BIOS detection and boot order first |
| Black screen with a blinking cursor | Boot code may not be transferring control to Windows | Use WinRE Startup Repair or Bootrec on an MBR system |
| Disk appears Unallocated | Partition table entries may be missing | Recover data before creating a new volume |
| Disk shows Not Initialized | Windows cannot read a valid partition structure | Do not click Initialize if the disk contains important files |
| Partition appears RAW | Windows cannot recognize the volume file system | Recover data before formatting or running repair operations |
| HDD or SSD disappears from BIOS | Possible connection or physical hardware failure | Stop 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:
- Do not initialize, format, or repartition the affected disk.
- Do not install recovery or repair software on the affected drive.
- Disconnect unnecessary external drives to reduce the risk of selecting the wrong disk.
- If the disk contains important files and its partitions are missing, recover the files before making structural changes.
- 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:
- プレス
Windows + Xを選択する。 ディスク管理. - Right-click the affected disk and select プロパティ.
- を開く。 巻数 タブ.
- チェック パーティションのスタイル.
It will display either:
- マスターブートレコード(MBR)
- GUIDパーティションテーブル(GPT)
If Windows cannot start, open Command Prompt from the Windows Recovery Environment and run:
diskpart
list disk
exitAn 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.
- Boot into the Windows Recovery Environment.
- 選択 トラブルシューティング.
- 選択 高度なオプション.
- 選択 スタートアップ修理.
- 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 /fixmbrThis writes Windows-compatible master boot code without intentionally overwriting the existing partition table.
Next, scan for Windows installations:
bootrec /scanosIf the Windows installation is not included in the Boot Configuration Data store, run:
ブートレコード /rebuildbcdYou may also encounter guides recommending:
ブートレコード /fixbootThis 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 /fixmbrrepairs 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.
この状況では
- 問題のあるディスクの使用を中止してください。.
- Connect it to another working Windows computer as a secondary drive when possible.
- インストール Magic Data Recovery on a healthy disk, not on the affected device.
- Select the damaged disk and scan for recoverable files.
- Preview the results and save recovered files to a different physical disk.
- 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?
How do I know whether my MBR is corrupted?
Can a corrupted MBR be fixed without losing data?
Does bootrec /fixmbr delete files?
Why does bootrec /fixmbr not fix my computer?
Can CHKDSK repair a corrupted MBR?
Does Windows 11 use MBR or GPT?
Can files be recovered from a disk with a corrupted MBR?
バシリイは、この分野で約10年の実務経験を持つデータ復元のスペシャリストです。そのキャリアを通じて、彼は削除されたファイル、フォーマットされたドライブ、失われたパーティション、RAWファイルシステムを含む何千もの複雑なケースの解決に成功してきました。彼の専門知識は、16進エディタなどの専門ツールを使用した手動復元方法と、復元ソフトウェアを使用した高度な自動化ソリューションの両方をカバーしています。バシリの使命は、信頼できるデータ復元知識をITプロフェッショナルと一般ユーザーの双方が利用できるようにし、貴重なデジタル資産を保護できるようにすることです。.
