How to configure grub to boot UEFI Windows 8?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
11 views
Hi all,

As the main system I use Linux, but had to install Windows.
Linux is on drive 1 (/dev/sda), then Windows put on the disk 2 (/dev/sdb).
The default bios is configured to boot from disk 1 (/dev/sda), i.e. grub is loaded and it is possible to choose additional options, or boot into Linux.
At the moment of loading bios, you can press F8 and choose which place will be loaded OS (disk, flash drive, etc.), if this menu, select "Winfows UEFI Boot Manager" that is loaded in Windows.

Question: How to configure grub, you could boot Windows from it. I.e. not via the choice of the boot loader in the bios-e, and from the grub menu?

1) Tried to create an additional menu item with this configuration:
menuentry "Windows 8" --class windows --class os { insmod part_gpt insmod search_fs_uuid insmod ntfs insmod chain set root='hd1,gpt4' search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt4 --hint-efi=hd1,gpt4 --hint-baremetal=ahci1,gpt4 86B4370BB436FD6D drivemap -s hd0 hd1 chainloader (${root})/Windows/Boot/EFI/bootmgfw.efi }


Windows reports a load error:
error: invalid signature Press any key to continue


2) If you do configuration this
menuentry "Windows 8" --class windows --class os { insmod ntfs set root='hd1,gpt4' search --no-floppy --fs-uuid --set=root 86B4370BB436FD6D chainloader +1 }

it also fails, but here's
5ab3dbddd3281351247493.jpeg

--[additional information]--

Disk partitions
5ab3d3a3b843e749459376.png

UUID dev-sdb-4
5ab3d3f38e828835079282.png

Info about disks
# parted -l Model: ATA Crucial_CT128M55 (scsi) Disk /dev/sda: 128GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 2 1049kB 110GB 110GB ext4 1 110GB 128GB 18.0 GB linux-swap(v1) Model: ATA Crucial_CT256MX1 (scsi) Disk /dev/sdb: 256GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 316MB 315MB ntfs Basic data partition hidden, diag 2 316MB 420MB 105MB fat32 EFI system partition boot, esp 3 420MB 555MB 134MB Microsoft reserved partition msftres 4 555MB 189GB 188GB ntfs Basic data partition msftdata 5 189GB 256GB 67.3 GB ext4


Version
#uname-a Linux homepc 4.4.0-116-generic #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux #cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu LTS 16.04.4" NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu LTS 16.04.4" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial # grub-install --version grub-install (GRUB) 2.02~beta2-36ubuntu3.17
by | 11 views

2 Answers

0 like 0 dislike
remove all written by hand, then in Linux terminal
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update && sudo apt-get install -y boot-repair

select Recommended repair
by
0 like 0 dislike
that for linux - guess whether I understand you correctly?
try to remove everything that you already put up your hands and do sudo update-grub ; sudo reboot, maybe you'll get lucky.
by

Related questions

0 like 0 dislike
2 answers
asked May 23, 2019 by braizypait
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
4 answers
asked May 22, 2019 by UNy
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
28,030 users