This guide walks you through repairing a damaged Windows NTFS partition from Ubuntu in a dual-boot setup, covering common issues like boot failures, file system errors, and partitions that refuse to mount. You’ll learn how to diagnose the problem, run the necessary repairs using built-in Linux tools, and get your Windows system booting again.
What You’ll Need
- A working Ubuntu installation on the same computer (dual boot).
- Administrative (sudo) access in Ubuntu.
- Internet connection (optional, for installing repair tools).
- Basic familiarity with the terminal.
Step-by-Step
- Boot into Ubuntu – Restart your computer and select Ubuntu from the GRUB menu. If GRUB doesn’t appear, you may need to access the boot menu (often F12, F2, or Esc) and choose the Ubuntu drive.
- Identify the NTFS partition – Open a terminal and run
sudo fdisk -lorlsblkto list all disks and partitions. Look for the Windows partition, usually labeled as/dev/sda1,/dev/nvme0n1p1, or similar, with a size matching your Windows installation and a file system type ofntfs. - Check if the partition is mounted – Run
mount | grep ntfsto see if the partition is currently mounted. If it is, unmount it withsudo umount /dev/sdXY(replace/dev/sdXYwith your partition). - Install ntfs-3g and ntfsfix – These tools are usually pre-installed, but if not, run
sudo apt update && sudo apt install ntfs-3g(for Debian/Ubuntu-based systems). - Run ntfsfix – In the terminal, execute
sudo ntfsfix /dev/sdXY. This tool repairs basic NTFS inconsistencies, such as a dirty flag or a corrupted boot sector. It does not fix all errors, but it’s a good first step. - Check the file system with chkdsk (via Windows recovery) – ntfsfix is limited. For a thorough repair, you’ll need to run Windows’ own
chkdsk. Boot into a Windows recovery environment (see Troubleshooting for how to access it) and runchkdsk /f /r C:from the command prompt. This is the most reliable way to repair a damaged NTFS partition. - If chkdsk is not accessible – You can try using
ntfsfixwith the-boption to rebuild the boot sector:sudo ntfsfix -b /dev/sdXY. This can help if the boot sector is corrupted. - Attempt to mount the partition – After repairs, try mounting the partition manually:
sudo mount -t ntfs-3g /dev/sdXY /mnt/windows(create the mount point first withsudo mkdir /mnt/windows). If it mounts successfully, you can access your Windows files. - Reboot into Windows – If the partition is now accessible, restart your computer and try booting into Windows. If it starts normally, the repair was successful.
- If Windows still fails to boot – You may need to repair the Windows boot loader (BCD) using Windows recovery tools. Boot from a Windows installation USB, choose “Repair your computer,� then “Troubleshoot,� then “Advanced options,� and select “Startup Repair.�
Common Mistakes
- Running ntfsfix on a mounted partition – Always unmount the partition first. Running repairs on a mounted partition can cause further damage.
- Assuming ntfsfix fixes everything – ntfsfix is a basic tool. It cannot repair all NTFS errors, especially those involving file system metadata. For serious damage, chkdsk is required.
- Using the wrong partition identifier – Double-check that you are repairing the correct partition. Using the wrong one could damage your Ubuntu installation.
- Forgetting to disable Fast Startup in Windows – Fast Startup can leave NTFS partitions in a state that appears “dirty� to Linux. If you frequently see errors, disable Fast Startup in Windows Power Options.
Tips
- Back up important data – Before attempting repairs, if you can access the partition at all, copy critical files to an external drive. Repairs can sometimes worsen the situation.
- Use a live USB of Ubuntu – If your Ubuntu installation is also unbootable, boot from a live USB and follow the same steps. This is often the safest approach.
- Check disk health – A failing hard drive can cause NTFS corruption. Use
sudo smartctl -a /dev/sdX(install smartmontools if needed) to check the drive’s health. If you see many bad sectors, consider replacing the drive. - Keep Windows updates current – Some NTFS issues are caused by Windows bugs that are fixed in updates.
Troubleshooting
- “The disk contains an unclean file system� error when mounting – This means Windows didn’t shut down cleanly. Run
sudo ntfsfix /dev/sdXYto clear the dirty flag, then try mounting again. - ntfsfix says “Volume is corrupt� and cannot fix – This indicates deeper damage. You’ll need to run chkdsk from Windows. Boot from a Windows installation USB, select “Repair your computer,� then “Troubleshoot,� then “Advanced options,� and choose “Command Prompt.� Run
chkdsk /f /r C:(replace C: with your Windows drive letter). - Partition is not visible in fdisk – If the partition doesn’t appear, the partition table may be corrupted. Use
sudo gdisk /dev/sdX(for GPT) orsudo fdisk /dev/sdX(for MBR) to inspect and potentially rebuild the partition table. This is advanced; consider seeking professional help if you’re unsure. - GRUB shows “error: unknown filesystem� – This often means the NTFS partition is severely damaged. Boot from a live USB, run ntfsfix, and then try to access the partition. If that fails, you may need to use testdisk to recover the partition table or files.
- Windows boots but shows a blue screen (BSOD) – This could be due to file system corruption. Boot into Windows Safe Mode (press F8 during boot) and run chkdsk from an elevated command prompt.
- Cannot access Windows recovery environment – If Windows won’t boot at all, you can create a Windows installation USB on another computer using Microsoft’s Media Creation Tool. Boot from it to access recovery options.
Frequently Asked Questions
Can ntfsfix damage my Windows partition?
ntfsfix is designed to be safe, but it can sometimes make things worse if the partition is severely corrupted. Always back up data first if possible.
Why does my NTFS partition show as “dirty� in Ubuntu?
This usually happens because Windows Fast Startup or hibernation didn’t fully shut down the file system. Running ntfsfix clears the dirty flag.
Do I need to disable Windows Fast Startup for dual boot?
It’s highly recommended. Fast Startup can leave NTFS partitions in a state that Linux sees as unclean, leading to frequent repair prompts.
Can I repair NTFS from Ubuntu without Windows?
Yes, for basic issues, ntfsfix works. For serious corruption, you’ll likely need chkdsk from Windows, but you can use testdisk to recover files if Windows is unbootable.
What should I do if I can’t boot into Windows at all?
Boot from a live Ubuntu USB, back up your data, then use Windows installation media to access recovery tools like Startup Repair or chkdsk.
Is it safe to mount an NTFS partition in Ubuntu?
Yes, with ntfs-3g it’s safe for reading and writing. However, avoid writing to the Windows system partition unless necessary, as it can cause boot issues.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Forget a Wi-Fi Network on Mac: Step-by-Step
- How to Prevent Your New iPad From Overheating
- How to Choose Task Management Software
- How to Bypass FRP with PC: Step-by-Step Guide
- Add Music to Video on iPhone: Step-by-Step
- Fix Zoom Lag on Windows 10: 9 Proven Steps