昨天我嘗試雙啟動 Windows 和 Ubuntu,但是當我重新啟動筆記型電腦時,我沒有啟動 Windows,但它立即運行 Ubuntu。
然後我知道我只是不小心刪除了 Windows 啟動管理員。當我sudo fdisk
檢查磁碟時,我仍然看到我的基本資料。另外,我還看到一個本機磁碟,其中在「其他位置」上有我的舊 Windows 資料。請幫助我恢復 Windows(如有必要,您可以刪除 Ubuntu)。
我知道很多人都跟我一樣問過同樣的問題,但從昨天到現在我都無法解決這個問題。詢問您是否想查看我的 Ubuntu 上的進一步配置或磁碟。
編輯:一位朋友告訴我使用 sudo os-prober 來識別 Windows 10 安裝,然後使用 sudo update-grub 來更新 GRUB。輸入 os-prober 後,它說
/dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi:Windows 啟動管理器:Windows:efi
但是當使用 update-grub 時。它找不到窗戶,而是
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.5.0-21-generic
Found initrd image: /boot/initrd.img-6.5.0-21-generic
Found linux image: /boot/vmlinuz-6.5.0-18-generic
Found initrd image: /boot/initrd.img-6.5.0-18-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
我也查了一下,/etc/default/grub
但沒有GRUB_DIASBABLE_OS_PROBER
。