Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| grub_repair [2025/03/13 06:17] – kkaragoz | grub_repair [2025/03/13 06:53] (current) – kkaragoz | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Add Missing Windows 11 Entry (Tested on Debian 12 + Windows 11 UEFI systems) | Add Missing Windows 11 Entry (Tested on Debian 12 + Windows 11 UEFI systems) | ||
| - | Basic Fix (90% Success Rate) | + | ==== 1. Basic Fix (90% Success Rate) ==== |
| <code bash> | <code bash> | ||
| Line 10: | Line 11: | ||
| </ | </ | ||
| - | Manual GRUB Entry (For NVMe Drivers) | + | ==== 2. Manual GRUB Entry (For NVMe Drivers) |
| - | a. Identify Windows EFI Partition | + | == a. Identify Windows EFI Partition |
| <code bash> | <code bash> | ||
| Line 22: | Line 23: | ||
| * Example output: nvme0n1p1 vfat 100M /boot/efi | * Example output: nvme0n1p1 vfat 100M /boot/efi | ||
| - | b. Create Custom Entry | + | == b. Create Custom Entry == |
| <code bash> | <code bash> | ||
| Line 32: | Line 33: | ||
| <code bash> | <code bash> | ||
| menuentry " | menuentry " | ||
| - | insmod part_gpt | + | insmod part_gpt |
| - | insmod chain | + | |
| - | insmod ntfs | + | |
| - | set root=(hd0, | + | |
| - | chainloader / | + | |
| } | } | ||
| </ | </ | ||
| - | c. Apply Changes | + | == c. Apply Changes |
| <code bash> | <code bash> | ||
| sudo update-grub | sudo update-grub | ||
| sudo reboot | sudo reboot | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ==== 3. Verify UEFI Mode ==== | ||
| + | |||
| + | Linux should show UEFI vars: | ||
| + | <code bash> | ||
| + | ls / | ||
| + | </ | ||
| + | |||
| + | Windows partition should have EFI files: | ||
| + | <code bash> | ||
| + | sudo ls / | ||
| + | </ | ||
| + | Expected file is **bootmgfw.efi** | ||
| + | |||
| + | |||
| + | Troubleshooting Table | ||
| + | |||
| + | "hd0 not found" | ||
| + | |||
| + | - Replace hd0 with actual disk number | ||
| + | - Use lsblk to confirm partition numbers | ||
| + | No bootmgfw.efi | ||
| + | |||
| + | - Check Windows installation mode (must be UEFI) | ||
| + | - Disable " | ||
| + | GRUB menu not showing | ||
| + | |||
| + | - Hold Shift during boot | ||
| + | - Run sudo grub-install / | ||
| + | |||
| + | |||
