How to Repair a Partition Table in Windows
In this article
A damaged partition table usually shows up as a disk that appears unallocated, a drive letter that vanishes, or Windows asking you to format a disk that was working yesterday. You can often repair it from inside Windows without reinstalling anything: open Disk Management or Diskpart, check whether the table is readable, and rebuild it with a partition recovery tool if Windows no longer recognises the layout. If the disk still mounts and only one partition is misbehaving, run chkdsk first — that fixes file system damage, not the table itself, but it is the safe first move. Menu labels in Windows can differ slightly by version, edition and region, so treat the paths below as a guide rather than a script.
What You'll Need
- A Windows PC with an administrator account — Disk Management, Diskpart and
chkdskall need elevated rights. - The affected drive connected internally or through a stable USB connection (avoid hubs and docks during repair).
- A backup destination — an external drive or cloud folder with enough free space for the data you are trying to save.
- A second working computer, ideally, so you can look things up and prepare recovery tools if the main PC will not boot.
- A Windows installation USB stick if the problem disk is the system drive and Windows will not start.
- A reputable partition recovery utility from the vendor's own site, if the table turns out to be corrupt rather than just dirty.
Step-by-Step
- Stop writing to the disk. The moment a partition disappears, avoid saving new files to it, running defragmentation, or letting Windows "initialise" the disk when a pop-up offers it. Initialising writes a fresh table and can make recovery harder.
- Back up what still works. Copy anything important from other partitions on the same physical drive to a separate disk. Partition repair tools sometimes rewrite the whole table, and a mistake there affects every partition on that drive, not just the broken one.
- Open Disk Management. Right-click the Start button and choose Disk Management (or press Windows+X and pick it from the list). Look at the affected disk in the lower pane: does it show a healthy partition with a drive letter, unallocated space, or a "Not Initialised" or "RAW" label?
- Rescan the disks. In Disk Management, open the Action menu and choose Rescan Disks. This forces Windows to re-read the partition table. A drive that reappears after a rescan usually had a stale connection or a controller hiccup rather than real table damage.
- Assign a missing drive letter. If the partition is present but has no letter, right-click it and choose Change Drive Letter and Paths, then Add. A partition with no letter looks "lost" to users but is intact.
- Check the file system with chkdsk. Open Command Prompt as administrator (search for Command Prompt, right-click, Run as administrator) and type
chkdsk X: /f, replacing X with the affected drive letter. Press Enter and let it finish. This repairs file system errors and bad sectors; it does not rebuild a partition table, but it rules out simpler causes. - Inspect the table with Diskpart. In the same administrator Command Prompt, type
diskpart, thenlist disk, thenselect disk N(N is the number of the problem disk), thenlist partition. If partitions are listed, the table is readable and the issue is elsewhere. Typeexitwhen done. Do not runclean— it erases the table and every partition on the disk. - Rebuild the table with a recovery tool. If Diskpart shows the disk but no partitions, or shows one huge unallocated space, use a partition recovery utility from a known vendor. Install it on a working drive, not the damaged one, and choose its partition recovery or partition table rebuild scan. Let the scan complete, review the partitions it finds, and only then write the recovered table back to the disk.
- Verify before you write. Most tools let you preview the recovered partitions and browse their files. Confirm the sizes and file listings match what you expect before committing the rebuild — this is the one step where a wrong click is hard to undo.
- Restart and confirm. Reboot Windows, open File Explorer, and check that the drive letters and folders are back. Run
chkdsk X: /fonce more on each recovered partition to confirm the file system is clean.
Common Mistakes
- Clicking "Initialise Disk" when Windows prompts you. That writes a new, empty table and can overwrite the old one, making recovery much harder.
- Running
diskpart cleanas a first step. It wipes the partition table and all partitions on the selected disk instantly, with no confirmation of what you lose. - Selecting the wrong disk in Diskpart. Disk numbers do not always match the order you expect. Confirm by size and model with
list diskbefore selecting. - Installing recovery software onto the damaged drive. Every write reduces the chance of a clean recovery.
- Assuming a missing drive letter means a dead table. Letter assignment problems are far more common and take seconds to fix.
- Ignoring failing hardware. If the drive clicks, disappears intermittently, or shows SMART warnings, the table is a symptom, not the cause — replace the drive.
Tips
- Convert the disk to GPT or MBR only when you understand the consequences: a data disk can be converted with the right tool, but a system disk needs the matching firmware mode (UEFI with GPT, legacy BIOS with MBR).
- Keep a note of each disk's size and model so you can identify it confidently in Diskpart.
- Use a USB-to-SATA adapter to attach a suspect drive to a working PC — it keeps Windows from touching the boot drive while you diagnose.
- Check Event Viewer under Windows Logs > System for disk errors around the time the problem started; repeated controller errors point to cabling or the drive itself.
- After any successful repair, set up a regular backup so a future table problem costs you time, not data.
Troubleshooting
- Disk shows as "Not Initialised". Do not initialise it. Attach it to another PC and run a partition recovery scan; the old table is often still readable by recovery software even when Windows refuses it.
- Diskpart lists the disk but no partitions. This is the classic corrupt-table case. Go straight to the recovery tool and scan for lost partitions rather than experimenting with Diskpart commands.
- Recovery tool finds partitions but they look wrong. Stop before writing. Try a deep scan, or a second tool, and compare results. Writing a bad table over a good one removes your options.
- Windows will not boot at all. Use a Windows installation USB to reach the recovery environment, open Command Prompt from there, and run
bootrec /fixmbrandbootrec /rebuildbcdonly if the problem is the system disk's boot records — these repair boot configuration, not data partitions. - The drive keeps disappearing. Reseat the SATA or power cable, try a different port, and check the drive's health. Intermittent detection is usually hardware.
- chkdsk reports unreadable sectors. Back up immediately and plan a replacement; a drive with bad sectors will keep damaging its own structures.
Frequently Asked Questions
Can Windows repair a partition table by itself?
Not really. Windows can rescan disks, reassign drive letters and repair file systems with chkdsk, but it has no built-in command that rebuilds a deleted or corrupt partition table. You need a third-party recovery tool for that.
Will repairing the partition table delete my files?
Rebuilding the table itself does not touch file data — it restores the map that points to your partitions. Files are lost only if the wrong table is written or the disk is cleaned or formatted. Always preview recovered partitions before writing.
What is the difference between MBR and GPT?
MBR is the older scheme, limited to four primary partitions and disks up to 2 TB. GPT is the modern scheme, supports far more partitions and much larger disks, and is required for UEFI boot on most systems.
Is it safe to run chkdsk on a drive with a damaged table?
If Windows can see the partition and assign it a letter, chkdsk is safe and worth trying. If the partition is missing or the disk shows as unallocated, chkdsk has nothing to check — recover the table first.
Can I repair a partition table without losing data on the system drive?
Sometimes, using recovery software that runs from a bootable USB. It is riskier than working on a data disk, so back up anything you can reach first, and be prepared to reinstall Windows if the repair does not hold.
How do I know the repair worked?
The partitions reappear in Disk Management and File Explorer with their original sizes and letters, files open normally, and a follow-up chkdsk run reports no errors.