B
B
banneed2019-06-25 00:04:38
linux
banneed, 2019-06-25 00:04:38

How to add windows 10 to grub boot menu?

There was windows 10 on the ssd.
I broke the hdd for installing linux mint, but after installing it, only windows 10 was loaded. I solved this with a clean installation of Linux, the installer partitioned the disk as he needed. As a result, linux is loaded, windows 10 is not, and besides, I can’t enter the bios settings: the boot menu is empty there, the bios setup does not open.
There is only linux in the grub boot menu.
Is there a way to add windows to the grub bootloader menu, how to make sure it can start and it doesn't kill a running linux?
Grub looks like this:
5d113880dae20436574156.jpeg
With the lsblk command, the result is:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465,8G  0 disk 
├─sda1   8:1    0   512M  0 part /boot/efi
└─sda2   8:2    0 465,3G  0 part /
sdb      8:16   0   118G  0 disk 
├─sdb1   8:17   0 117,2G  0 part 
└─sdb2   8:18   0   790M  0 part

For the drive where windows is located: blkid /dev/sdb1
Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1  *         2048 245839254 245837207 117,2G  7 HPFS/NTFS/exFAT
/dev/sdb2       245839872 247457791   1617920   790M 27 Hidden NTFS WinRE

blkid /dev/sdb1. Strange partition label with windows 10. Is it critical?
/dev/sdb1: LABEL="M-PM-^TM-PM-8M-QM-^AM-PM-:" UUID="2EE6EE17E6EDDF59" TYPE="ntfs" PARTUUID="d7209484-01"

upd Manually
added a boot item to grub as written in the article .
menuentry "Windows 10" {
insmod ntfs
set root='(hd1,1)'
search --no-floppy --fs-uuid --set 2EE6EE17E6EDDF59
chainloader +1
}

When selected - error: invalid EFI file path.
ps. If it were possible to go into bios, I would gladly demolish everything and reroll Windows (or restore it from a bootable USB flash drive). I encountered the problem not for the first time, but last time I had to resort to bios firmware on the programmer. I would like to do without such surgery, as it is not advisable to give away the laptop for several days.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanes, 2019-06-25
@Sanes

Something like update-grub should find all the OSes on the drives.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question