point to windows 7 bootmgr from grub2

Asked by Matrica Joshi

Hi, I have a dual boot system in EEE pc netbook with Ubuntu and windows7. Previously I had windows XP and Ubuntu working fine, then I upgraded to windows 7 and I could not boot into Ubuntu. So I installed easybcd to boot to Ubuntu.

After I updated grub2 in Ubuntu, I would see two boot menu while starting the system, one from grub2 and another boot menu from easybcd. While trying to resolve this issue, by mistake I deleted the choice for windows 7 from easybcd. So, now I can't boot to windows7 even though I can access files in the windows partition from Ubuntu.

Is there any way I can configure grub2 so that it points to windows 7 bootloader directly without going through windows7 loader from easybcd? Or how can I get back to windows 7?

Thank you for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
Ubfan
Solved:
Last query:
Last reply:
Revision history for this message
Ubfan (ubfan1) said :
#1

From a terminal window, run:
sudo update-grub
and you should get windows added back to the grub menu,

Revision history for this message
Matrica Joshi (matrica-joshi) said :
#2

Ubfan ! Thanks for your prompt reply. I did that, it updates to Windows 7 loader that is the loader created from easybcd software. Like I said before, I deleted the windows 7 option from that easybcd loader menu.
So grub2 chainloads to windows7 loader and there I have deleted the option for win7 os.
Any idea how i can set grub to point directly to windows 7 bootloader that is in C: drive.

Thank you for your help.

Revision history for this message
Best Ubfan (ubfan1) said :
#3

The problem is grub does not speak ntfs, so it cannot directly see the ntldr or whatever win7 uses. Try reading the easybcd docs to fix the config file, or if you have install media for win7, you can start a recovery console and "fixmbr" to fix the master boot block to remove the easybcd loader, or if you don't have the install media (I could never fix the mbr with only the typical vendor supplied "recovery disks"), and you have a fat recovery partition, you can install grub files there just for windows (which is what I wind up doing more frequently than I'd like), and put another grub just for windows.

Revision history for this message
Matrica Joshi (matrica-joshi) said :
#4

Thanks Ubfan, that solved my question.

Revision history for this message
Matrica Joshi (matrica-joshi) said :
#5

I had to boot from windows 7 bootable usb and repair from there. Thanks for your help.