/boot 在 (hd0,gpt6),根分區在 (hd0,gpt7):set root=(hd0,gpt6)linux /vmlinuz... root=/dev/sda7initrd /initrd...bootsu - 切 root。grub-install -v(-v 小寫)重建啟動項。/dev/sda4),確認 /EFI/ubuntu/ 下有 4 個檔案。
fdisk -u -l 找出 ESP 分區(如 /dev/sda4,Sectors=522240)。dd if=/dev/sda4 bs=512 count=522240 of=./efi.backupdd if=./efi.backup bs=512 of=/dev/sda4
Live USB 手動引導 → grub-install 重建 → dd 備份 ESP,三步驟徹底解決 UEFI 下 GRUB 遺失問題。