You are not logged in.
Hello!
My /etc/grub.d/40_custom looks like that
#!/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.
if [ "${grub_platform}" == "pc" ]; then
menuentry "Windows" {
insmod part_msdos
insmod ntfs
insmod search_fs_uuid
insmod ntldr
search --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 E01072F21072CF52
ntldr /bootmgr
}
fi
Everything done as on wiki. Unfortunately, when I try to boot windows, grub says:
error: no such device --hint-baremetal=ahci,msdos1.
error: file '/bootmgr' not found.
Press any key to continue
What did I do wrong?
I will just mention windows is installed on /dev/sda1 and arch on /dev/sda2
Last edited by blazej222 (2018-08-30 18:50:40)
Offline
Try to test for "platform_search_hint" feature availablity before using them:
if [ x$feature_platform_search_hint = xy ]; then
search --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 E01072F21072CF52
else
search --fs-uuid --set=root E01072F21072CF52
fi
Offline