parminides
January 29th, 2014, 09:56 PM
I dual boot to Windows 8 and Ubuntu 12.10. After upgrading to Windows 8.1, I lost my grub2 menu. I could only boot to Windows.
Running boot-repair restored my dual boot capability, but the grub menu still has a couple of minor issues.
Here's the new menu:
Ubuntu
Advanced options for Ubuntu
Windows UEFI bootmgfw.efi
Windows Boot UEFI loader
EFI/Asclepiou/bootx64.efi
Windows 8 (loader (on /dev/sda2)
Windows Recovery Environment (loader) (on /dev/sda9)
System setup
Options 1 and 2 work fine. Options 3 and 4 both boot to Windows 8.1, so I'd like to get rid of one of them, preferably the one with the weird filename bootmgfw.efi.
I think the double-entry for Windows may have arisen the first time I ran boot-repair and chose the option to backup EFI files. I later tried to rerun with the "Restore EFI backups," but the extra entry is still in the grub2 menu.
The 5th option, EFI/Asclepiou/bootx64.efi, boots to Windows recovery, so I'd like to rename it to something more appropriate.
The next 2 options don't work, both generating the messages,
error: can't find command 'drivemap'.
error: invalid Efi file path.
Press any key to continue...
I'd like to manually edit my grub2 menu to remove the redundancy, rename the Windows recovery entry that works, and remove the entries that don't work.
The write-protected file /etc/grub.d/25_custom seems pertinent:
#!/bin/sh
exec tail -n +3 $0
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root A2CD-D8D5
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root A2CD-D8D5
chainloader (${root})/EFI/Boot/bootx64.efi
}
menuentry "EFI/Asclepius/bootx64.efi" {
search --fs-uuid --no-floppy --set=root DED3-7756
chainloader (${root})/EFI/Asclepius/bootx64.efi
}
It has the two Windows 8 entries that work, as well as the badly named option.
The write-protected file /boot/grub/grub.cfg has those same lines, after the comment,
### BEGIN /etc/grub.d/25_custom ###
I know I could edit one or both of these files and see what happens. But I just spent hours restoring my dual boot after the Windows upgrade, so I want to proceed with caution.
Is there a way for me to safely rename some of my grub2 menu entries and remove some other entries that are redundant or don't work? If so, how? The key word is safely.
Running boot-repair restored my dual boot capability, but the grub menu still has a couple of minor issues.
Here's the new menu:
Ubuntu
Advanced options for Ubuntu
Windows UEFI bootmgfw.efi
Windows Boot UEFI loader
EFI/Asclepiou/bootx64.efi
Windows 8 (loader (on /dev/sda2)
Windows Recovery Environment (loader) (on /dev/sda9)
System setup
Options 1 and 2 work fine. Options 3 and 4 both boot to Windows 8.1, so I'd like to get rid of one of them, preferably the one with the weird filename bootmgfw.efi.
I think the double-entry for Windows may have arisen the first time I ran boot-repair and chose the option to backup EFI files. I later tried to rerun with the "Restore EFI backups," but the extra entry is still in the grub2 menu.
The 5th option, EFI/Asclepiou/bootx64.efi, boots to Windows recovery, so I'd like to rename it to something more appropriate.
The next 2 options don't work, both generating the messages,
error: can't find command 'drivemap'.
error: invalid Efi file path.
Press any key to continue...
I'd like to manually edit my grub2 menu to remove the redundancy, rename the Windows recovery entry that works, and remove the entries that don't work.
The write-protected file /etc/grub.d/25_custom seems pertinent:
#!/bin/sh
exec tail -n +3 $0
menuentry "Windows UEFI bootmgfw.efi" {
search --fs-uuid --no-floppy --set=root A2CD-D8D5
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
menuentry "Windows Boot UEFI loader" {
search --fs-uuid --no-floppy --set=root A2CD-D8D5
chainloader (${root})/EFI/Boot/bootx64.efi
}
menuentry "EFI/Asclepius/bootx64.efi" {
search --fs-uuid --no-floppy --set=root DED3-7756
chainloader (${root})/EFI/Asclepius/bootx64.efi
}
It has the two Windows 8 entries that work, as well as the badly named option.
The write-protected file /boot/grub/grub.cfg has those same lines, after the comment,
### BEGIN /etc/grub.d/25_custom ###
I know I could edit one or both of these files and see what happens. But I just spent hours restoring my dual boot after the Windows upgrade, so I want to proceed with caution.
Is there a way for me to safely rename some of my grub2 menu entries and remove some other entries that are redundant or don't work? If so, how? The key word is safely.