I pasted this script into source section at Grub customizer on Ubuntu to create windows entry. But I copied this script from another pc. 1A23-C8F4 part in this code is different in my pc for Windows where can I find this code from windows files. Where is this code?
insmod part_gpt
insmod fat
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 1A23-C8F4
else
search --no-floppy --fs-uuid --set=root 1A23-C8F4
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
But this script works. Just, it throw small error and press enter you can use Windows :).
sudo update-grub
? Why do you want it manually added? – TheWanderer Oct 03 '15 at 20:40