E
E
Evsign2014-06-18 02:41:21
linux
Evsign, 2014-06-18 02:41:21

Grub does not see Windows7, what should I do?

Windows7 was installed, which I used for quite a long time. Wanted to learn Ubuntu. Because it was impossible to destroy the Old and until I deal with Ubuntu, I decided to leave Windows just in case.
The breakdown turned out to be crazy, but there is no other way (
here is the result of fdisk -l
7e71f7e4ccdb473a91d309a5b19e6b85.png
sda1 - /boot/
sda2 - my E drive in Windows
sda3 - windows
sda5 - my D drive in Windows
sda6 - swap
sda7 - /
sda8 - /home/
grub-update did, but he does not see Windows. Only ubuntu and 2 memory scans appear.
Installed the boot-repair package.
Tried to restore the MBR of Windows, but after that this thing came out bypassing the hornbeam:
BOOTMGR is missing
Press ctrl+alt+del to restart

log: LOG
Everything came back after choosing the recommended boot-repair options. Log from boot-repair: LOG
Please tell me how to make ubuntu and Windows7 friends in my situation. The whole day was swaying and nothing happened.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
E
Evsign, 2014-06-21
@Evsign

All the proposed options did not help ((
I had to re-partition the screw and install everything normally, sequentially.

D
DR_Demons, 2014-06-18
@DR_Demons

Normal practice;) the sequence of actions is as follows-> restore the Windows bootloader (you need a Windows image for this) after that Windows will boot, after that you restore grub using live-cd ubuntu

A
Alexander Geleta, 2014-06-18
@Kosades

Maybe it will help

sudo -s
apt-get install os-prober
update grub

I
Ilya Rostovtsev, 2014-06-18
@irostovtsev

These are standard issues that are associated with the MBR and various flags.
If you want to quickly and easily fix the problem, download Ubuntu and install Boot-Repair:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo sed 's/trusty/saucy/g' -i /etc/apt/sources.list.d/yannubuntu-boot-repair-trusty.list
sudo apt-get update
sudo apt-get install -y boot-repair && (boot-repair &)

If you need details, please refer here: Boot Repair

D
Dimitriy, 2014-06-18
@Vakiliy

Add to /etc/grub.d/40_custom , (or create, for example, 50_windows)

menuentry 'Windows' {
  insmod part_msdos
        insmod fat
 	insmod ntfs
        insmod ntldr
 	set root='hd0,msdos1'
        search --no-floppy --file --set=root /bootmgr
  ntldr /bootmgr
}

update-grub

A
Andy Larkin, 2014-06-18
@bestking5236

Most likely, you have UEFI / EFI. I had this after installing Linux in parallel with Windows 7 on EFI. Grub just didn't "pick up" the right entry.
In Linux, do in the terminal, sweat as a root:
~# update-grub
~# reboot
If the desired item does not appear in the list of systems, we continue. Execute as root:
~# grub-probe --target=fs_uuid /boot/*/*/Microsoft/Boot/bootmgfw.efi the
output will be your Windows disk ID - write it down on paper
then execute (I use vim if you are not familiar with - any other console editor:
~# vim /etc/grub.d/40_custom
and at the very end, after all the comments, add a new line:
menuentry "Windows x86_64 UEFI-GPT" {
insmod part_gpt
insmod fat
search --fs-uuid --no-floppy --set=root YOUR_PAPER_ID
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
Then run as root:
~# update-grub
~# reboot
Profit!

E
excit3r, 2014-06-18
@excit3r

so that you can’t stand your brain too much: https://help.ubuntu.com/community/Boot-Repair

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question