双启动菜单消失且Ubuntu启动驱动器无法识别问题求助
Hey Nathan, sorry to hear you're stuck with this frustrating dual-boot issue—losing access to your Ubuntu setup out of nowhere is such a headache! Let’s walk through actionable steps to troubleshoot, recover your boot menu, and safeguard your Ubuntu data.
第一步:确认Ubuntu分区是否还存在
First, let’s check if your Ubuntu partitions are still intact (the "boot drive doesn’t exist" error might just mean the boot loader can’t find them, not that they’re deleted):
- Open Disk Management in Windows (right-click the Start menu and select it)
- Scan through the list of drives—look for partitions with a Linux filesystem (like ext4, they’ll show up as "Unallocated" or "RAW" in Windows, but their size should match your Ubuntu installation)
- If you find these partitions, great news: your data is safe, and we just need to fix the boot loader. If not, we’ll move to data recovery first.
第二步:修复GRUB引导(最常见的解决方案)
GRUB is the boot loader that manages dual-boot options, and it’s likely got corrupted or was overwritten by Windows. Here’s how to fix it:
- Create an Ubuntu 22.04 installation USB (use another computer with Rufus or the official Ubuntu USB creator tool)
- Boot your computer from the USB, select "Try Ubuntu" to enter the live environment
- Open the terminal and run these commands:
- First, identify your Ubuntu root partition:
sudo lsblk(look for the partition withext4filesystem, usually labeled/dev/sdaXor/dev/nvme0n1pX) - Create a mount point:
sudo mkdir /mnt/ubuntu - Mount the root partition:
sudo mount /dev/XXX /mnt/ubuntu(replaceXXXwith your actual partition number, e.g.,/dev/sda3) - If you have a separate EFI partition (common on UEFI systems), mount it too:
sudo mount /dev/YYY /mnt/ubuntu/boot/efi(YYY is the FAT32 partition, ~500MB in size) - Reinstall GRUB to the EFI partition:
sudo grub-install --boot-directory=/mnt/ubuntu/boot --efi-directory=/mnt/ubuntu/boot/efi --target=x86_64-efi /dev/sda(use/dev/nvme0n1instead of/dev/sdaif you have an NVMe drive—don’t add a partition number here) - Update GRUB to detect both OSes:
sudo update-grub
- First, identify your Ubuntu root partition:
- Reboot your computer—you should see the dual-boot menu again!
第三步:如果找不到Ubuntu分区,尝试数据恢复
If Disk Management doesn’t show your Ubuntu partitions, they might have been accidentally marked as deleted. Use testdisk (a powerful data recovery tool) in the Ubuntu live environment:
- Open terminal and install testdisk:
sudo apt update && sudo apt install testdisk - Run it:
sudo testdisk - Follow the on-screen prompts: select your disk, choose "Intel/PC partition", then "Analyze" and "Quick Search" to recover lost partitions. Once found, mark them as "Primary" or "Logical" and write the new partition table.
第四步:重新安装Ubuntu且不丢失数据
If all else fails and you need to reinstall Ubuntu but keep your files:
- Boot from the Ubuntu installation USB and select "Install Ubuntu"
- When you reach the partition screen, choose Something else (manual partitioning)
- Locate your existing Ubuntu root partition, select it, set the "Mount point" to
/, and do NOT check the "Format" box - If you have a separate
/homepartition, select it, set the mount point to/home, also don’t format it - Proceed with the installation—this will overwrite the system files but leave your personal data, documents, and settings intact
As for the CUDA installation connection: it’s possible a subsequent driver update or Windows update messed with the EFI boot entries, but the steps above should resolve the issue regardless.
备注:内容来源于stack exchange,提问作者Nathan Bernardo

