P
P
Proritsatel2020-11-23 22:00:20
Windows
Proritsatel, 2020-11-23 22:00:20

Grub does not see Windows7, what else can I do?

Good day!
Faced the problem of displaying Windows7 in grub.
Windows7 is installed on SSD120GB, ubuntu on HDD1000, a few weeks ago I installed ubuntu (live cd launched without installing), and everything was displayed in my menu:
Ubuntu, memtest86+, windows7, etc.
I reinstalled Ubuntu (install Ubuntu) and the OS selection menu did not come out at all, I changed the configuration file and the choice began to appear, but in the Grub2 window only Ubuntu and additional settings.
What I did:
- sudo update-grub- did not help, nothing changed
- Through blkid /dev/sda1 found out the UUID and added the following to the file /etc/grub.d/40_custom

menuentry "Windows 7" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set B4A6AEB7A6AE7A0E
chainloader +1
}
- did not help.
sudo update-grub

What else can be done? What are the recommendations for next steps?
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Proritsatel, 2020-11-28
@Proritsatel

The problem was solved by reinstalling Ubuntu in Legacy mode, now grub2 shows OSes in two different HDD and SSD disks.
Kos is interested in the solution of my question
https://forum.ubuntu.ru/index.php?topic=313431.msg...
Thank you all for your help!

S
Sergey Karbivnichy, 2020-11-23
@hottabxp

They write this:

sudo os-prober
sudo update-grub

Also try Boot-Repair:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair

N
Nird, 2020-11-23
@Nird_o

You probably need to install the bootloader on the windows drive and not on the ubuntu drive

G
gadzhi_m, 2020-11-24
@gadzhi_m

Try asking around in the linux chat channels of the cart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question