E
E
Evgeny Samsonov2012-10-01 17:59:06
linux
Evgeny Samsonov, 2012-10-01 17:59:06

Why won't Windows start from Grub after installing Ubuntu?

Hello!

The hard disk is divided into several parts, one of them has Windows 7, a few more for data, and one part was allocated for LInux.
When installing Ubuntu, it seems to have messed up, because now when you turn on the computer in Grub, there is a choice between Ubuntu and Windows, but when you select the latter, the screen goes blank for a second and Grub appears again.
What to do?

Google pointed to grub.cfg, namely:

<code>### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'<source lang="cs">
    search --no-floppy --fs-uuid --set=root D2041FD9041FBF81
    drivemap -s (hd0) ${root}
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###</code>

But what needs to be changed in this config?

Thank you all in advance!

UPD: I did it by booting from Windows 7 usb and restoring the bootloader. Namely - Repair System, then Command Promt: Bootrec.exe /FixBoot.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Akulovich, 2012-10-01
@AterCattus

Are you sure you have Windows on /dev/sda1? Maybe it's more like a linux partition with a boot sector and a /boot folder of grub itself. Here he is launching himself. Check where the win partition actually is.

N
Nikolai Vasilchuk, 2012-10-02
@Anonym

Can grub-install on /dev/sda?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question