Hi,
After some update the bcdedit fix stop working... no matter the settings used in bcdedit
- Insert the Ubuntu bootable USB
- Turn Vaio on using the ASSIST button
- Select Boot from external drive
- Select "Try Ubuntu without installing"
- Ctrl + Alt + T to open a new terminal
- sudo su to become root
- mount /dev/sda3 /mnt to mount the efi partition
- cd /mnt/EFI
- cp ubuntu/* Microsoft/Boot/. to copy the contents of ubuntu efi boot to the Windows path
- cd Microsoft/Boot/ to enter the Windows EFI path
- mv bootmgfw.efi bootmgfw_win.efi to preserve the Windows boot manager
- mv shimx64.efi bootmgfw.efi so the make the system believe it is loading Windows, but it is going to load grub
- reboot, you should now see the grub boot menu and you can boot Ubuntu
- Boot ubuntu
- Open a new terminal sudo su to become root
- Now we are going to create a new grub entry for Windows, using the new bootmgfw.efi name: gedit /boot/grub/grub.cfg
- Look for the entry under the os-prober section and copy it, it must be something like this:
Code:
menuentry 'Windows Boot Manager (en /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-efi-C6B9-3FEA' {
insmod part_gpt
insmod fat
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 C6B9-3FEA
else
search --no-floppy --fs-uuid --set=root C6B9-3FEA
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
- We are now to create a new grub custom entry with this data: gedit /etc/grub.d/40_custom and paste what you just copy, then replace the chainloader parameter for bootmgfw_win.efi You should end up with something like this:
Code:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'Windows Boot Manager (en /dev/sda3)' --class windows --class os $menuentry_id_option 'osprober-efi-C6B9-3FEA' {
insmod part_gpt
insmod fat
set root='hd0,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 C6B9-3FEA
else
search --no-floppy --fs-uuid --set=root C6B9-3FEA
fi
chainloader /EFI/Microsoft/Boot/bootmgfw_win.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
- Now we are going to disable the os-prober script: chmod -x /etc/grub.d/30_os-prober
- Finally we are going to update grub, run: update-grub
- Reboot: You should see the grub menu and start Ubuntu or Windows.
- Optionally, you can set the Windows bootmgr paramether back to the original bootmgfw.efi
- In windows start a command prompt (cmd.exe) as administrator
- Enter this command: bcdedit /set "{bootmgr}" path \EFI\Microsoft\Boot\bootmgfw.efi
- Reboot, everything should work now...
CVC
Bookmarks