This message appears just because you enabled secure boot but use an unrolled boot manager.
- Disable secure boot in your uefi setting.
- Log into windows. And press win+s.
- Enter cmd then select run as admin.
In the commandline, input the following things:
mountvol S: /S
bcdedit /set {bootmgr} path \EFI\Boot\bootx64.efi
Warning: If you've made any changes to \EFI\Boot\bootx64.efi, this will not work as expected. You may need to register
\EFI\Microsoft\Boot\bootmgr.efi
instead of
\EFI\Boot\bootx64.efi
But I haven't tested it, do it at your own risk.
Finally, Reboot, enable secure boot.
Alternatively, you can also install the boot manager reFind to manage all your efi. Take a look at here:
http://www.rodsbooks.com/refind/
If you would like to install more os in future, this boot manager will help greatly.
Update:
In the screnn shot, I found that you may delete the EFI partition. This is a really bad suitation but still can be fixed with some effort.
You have to recover it manually. Follow these steps:
Warning: all the disks like /dev/sdax in command is just an example, you should replace them according to your system environment.
- Make a bootable usb system, such as ubuntu live image. Make sure you have disabled secure boot.
Boot into this live system. and run lsblk, you will get something like the following output, but without efi mounted:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 260M 0 part
├─sda2 8:2 0 1.5G 0 part
├─sda3 8:3 0 260M 0 part /boot/efi
├─sda4 8:4 0 128M 0 part
├─sda5 8:5 0 845.1G 0 part /home/win
├─sda6 8:6 0 392M 0 part
├─sda7 8:7 0 33.9G 0 part
├─sda8 8:8 0 500M 0 part /boot
├─sda9 8:9 0 19.5G 0 part /
├─sda11 8:11 0 27G 0 part /home
└─sda12 8:12 0 3G 0 part [SWAP]
Find your Recovery Disk. For sony vaio, it is usually Windows Recovery disk /dev/sda2 with size of 1.5GB (or EFI recovery disk /dev/sda1 with size 260MB).
Mount this disk with
mkdir recovery && mount /dev/sda2 recovery
Make sure you get bootmgr.efi in this disk. Usually you can find it under ./recovery/EFI/Boot or ./recovery/EFI/Microsoft/Boot/.
- Find out your original efi partition. Usually it is /dev/sda3 on sony vaio and the size of disk is 260MB. If nothing appears to be efi partition, just make a new efi partition by yourself. Don't worry, it should be safe even you create multiply efi partitions.
Use
cgdisk /dev/sda
and make /dev/sda3 a EFI partition(set code as ef00). Do Not Change Any Other Thing.
Mount it.
mkdir /boot/efi && mount /dev/sda3 /boot/efi
Copy everything under ./recover/EFI to your new efi partition.
cp -r ./recover/EFI /boot/efi/
Make sure the output of
$ ls /boot/efi/EFI/
is
Boot/ Microsoft/
Make your new efi bootmanager loadable.
efibootmgr -c -l \\EFI\\Boot\\bootx64.efi -L Microsoft
Similar to my old answer, if the above command do not work, you may need to set windows bootloader under Microsoft\Boot:
efibootmgr -c -l \\EFI\\Microsoft\\Boot\\bootmgr.efi -L Microsoft
Remove all the mounted disk and usb stick. Reboot and enable secure boot. Now you can enter your windows.