Windows11/Ubuntu 22.04双系统下Ubuntu突然从硬盘中完全丢失的技术咨询
Windows11/Ubuntu 22.04双系统下Ubuntu突然从硬盘中完全丢失的技术咨询
Hey Dillon, sorry to hear you're stuck with this frustrating dual boot issue—these setups can be temperamental, but let's walk through what's going on and how to fix it, plus ways to stop it from happening again.
First, let's address your biggest worry: your files might not be gone. The fact that the partition is still visible (even if Windows mislabels it as 100% free) and the BIOS boot option exists is a good sign—Windows just doesn't natively recognize Ubuntu's ext4 filesystem, so it sees the partition as empty space.
What you can do right now to recover access
- Do NOT write any data to that "free" partition—this could overwrite any recoverable files. Grab a Ubuntu live USB (you can make one on another machine using Rufus or the official Ubuntu installer) and boot your PC from it.
- Once in the live environment, open the
DisksorGPartedutility. Check if the partition is still listed as an ext4 filesystem. If it is, mount it directly to access your files, or copy them to an external drive as a backup first. - If you're getting the "no bootable devices" error when selecting Ubuntu in BIOS, the GRUB bootloader is likely corrupted or overwritten. Install and run the
boot-repairtool from the live terminal:
Follow the on-screen prompts—it will automatically fix most common bootloader issues.sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update && sudo apt install boot-repair boot-repair - If the filesystem is corrupted, run a filesystem check from the live terminal:
Replacesudo fsck /dev/sdXnsdXnwith your Ubuntu partition identifier (e.g.,/dev/sda3—you can find this inGParted). This tool repairs many common filesystem errors.
Why this probably happened
The most common culprits for dual boot failures like this are:
- Windows automatic updates: Windows 11 often overwrites the EFI system partition or MBR during major updates, which breaks the GRUB bootloader and makes Ubuntu's partition unreadable to Windows.
- Fast startup: Windows' fast startup feature leaves the disk in an inconsistent state (it's a hybrid hibernate/shutdown), which can corrupt Ubuntu's filesystem over time if you switch between OSes without fully shutting down Windows.
- Accidental partition changes: If you recently used Windows Disk Management or third-party partition tools, you might have accidentally altered Ubuntu's partition flags or damaged its filesystem.
- Disk hardware issues: A failing hard drive could cause filesystem corruption or boot sector damage—you can check disk health with
sudo smartctl -a /dev/sdXfrom the live Ubuntu environment.
How to prevent this in the future
- Disable Windows fast startup: Go to Control Panel > Power Options > Choose what the power buttons do > Click "Change settings that are currently unavailable" > Uncheck "Turn on fast startup".
- Avoid Windows disk tools: Never use Windows Disk Management or third-party partition software on your Ubuntu partition—they don't understand ext4 and can easily corrupt it. Use
GPartedfrom a Ubuntu live USB if you need to modify partitions. - Backup regularly: Use tools like Timeshift for full system backups, or
rsync/cloud storage for important files. This way, even if something breaks, you won't lose your work. - Refresh GRUB after Windows updates: After running Windows updates, boot into Ubuntu and run
sudo update-grubto ensure the bootloader is still properly configured.
备注:内容来源于stack exchange,提问作者Dillon Capalongo
相关产品推荐
相关产品推荐

