• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1997
  • Last Modified:

Set MBR to GRUB for dual boot

Hello.

My ultimate aim:

I bought a new laptop with Windows 7 installed and wish to dual boot it with Linux OpenSUSE 12.2.

Progress so far:

The drive on my new laptop was already partitioned as follows:
EFI System Recovery (200 MB)
Windows OS C: (~250 GB)
Windows DATA D: (~400 GB)
Windows Recovery Partition (25 GB)
So I used GParted to resize the DATA partition, leaving some 250 GB as 'unallocated'.
I booted to the OpenSUSE DVD and installed it on the unallocated partition.
Consequently, OpenSUSE created three further partitions from the unallocated space: root, home, and swap.

Problems:

When I rebooted the computer it did not present me with a boot menu but instead booted straight into Windows.

I tried using EasyBCD to fiddle with the bootloader but it's claiming that "there are a total of 0 entries listed in the bootloader" (a problem that others seem to have had but with no solution). So that's of little help.

However, since fiddling around with EasyBCD, my computer now presents the Windows boot menu, giving me two options: boot into Windows 7, or boot into Microsoft Windows 7. Brilliant...

So the problem appears to be that GRUB hasn't been written to the MBR.

My question:

How do I get GRUB to work as the boot loader?

It might be relevant to note that in the boot options in the BIOS, the #1 priority is to use the 'Windows Boot Manager'.


Thanks in advance.
0
InteractiveMind
Asked:
InteractiveMind
  • 2
  • 2
2 Solutions
 
Arman KhodabandeCommented:
Do you want the Grub to be your Bootloader or Windows 7 Bootloader?
With EasyBCD you can add the Grub entry to the Windows 7 bootloader.
Just Download EasyBCD Beta 180 from here. You must signup in the site to download)

Then install easybcd and go to add new entry and select Linux. Then select Grub2 from the list, And it'll configure it automatically.
Otherwise:
If you want to write Grub to the MBR, there is a program called BOOTICE which does this for you easily.
0
 
InteractiveMindAuthor Commented:
Although your solution would usually suffice, it didn't work for me. EasyBCD merely added a Linux entry to the Windows bootloader which then gave an error when I tried to load it. Bootice, however, was very useful in that it allowed me to cleanup the Windows bootloader.

Fortunately though, I found this article:
http://en.opensuse.org/SDB:Repair_MBR_after_Windows_install
All I had to do was boot into recovery mode and run those few instructions to install GRUB to the MBR and now it works (for the time being, anyway). Hurrah!

Thanks.
0
 
Arman KhodabandeCommented:
Good to hear that.
But if you use the beta version of EasyBCD which I mentioned it would have corrected that problem. Because I myself had installed Backtrack Linux before, and I had this problem and after researching so much I understood that this feature (adding linux via Grub2) is only included in the latest beta version of EasyBCD. Of course it's included in previous versions but it only works in the Beta 2.2.180. After installing that I could boot to My BT linux easily via Grub2.

Anyway I wish you good luck
0
 
InteractiveMindAuthor Commented:
I resolved my issue myself and have provided an explanation of how.
Points to the expert, however, since his solution would no doubt work for most people.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now