Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

ubuntu grub installation to partition fails in multiboot system

  Date: Jan 02    Category: Unix / Linux / Ubuntu    Views: 434
  

I had initially installed Ubuntu 7.1 after i installed windoes xp.
When i installed ubuntu it killed my window loader and i could only
load Ubuntu. After fixing the MBR with Dfsee i got the windows boot
loader but i did not get an option to select Ubuntu.

I am trying to recover ubuntu 7.1 on its own partition ( since
installing grub in the MBR kills the windows XP boot loader) and want
to install grub to the partition instead of the MBR. When i do this by
loading ubuntu from the live disk and then performing the following
commands

sudo grub

find /boot/grub/stage1
(I get the response "(hd0,5)" )

root (hd0,5)

setup (hd0,5)

quit

everything checks out but when i reboot, i get the windowsxp boot
loader which puts me into windows xp home edition.

How do i go about getting the grub loader so i can select which
operating system to load (Ubuntu or Windows XP)


Share: 

 

7 Answers Found

 
Answer #1    Answered On: Jan 02    

https://help.ubuntu.com/community/WindowsDualBoot

Have you read this about Duel booting?

 
Answer #2    Answered On: Jan 02    

https://help.ubuntu.com/community/GrubHowto

 
Answer #3    Answered On: Jan 02    

The Utuntu installer is "suppose" to setup a Grub entry so you can select
Windows from the Grub Menu. In your case, this must not have happened.
However, this problem can be easily fixed by editing grub's
/boot/grub/menu.lst afterwards. For example:

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows 2000 Professional
root (hd0,0)
chainloader +1

Note: Above assumes Windows is on the first first Primary partition of IDE0
or SATA1.

Normally grub gets installed to the MBR and the above Grub Menu entry lets
you startup Win2000/XP.

 
Answer #4    Answered On: Jan 02    

The only problem is that i cannot load ubuntu except from the
installation disk and that installation has no menu.lst file to edit.
Also if i use setup (hd0) i kill the windows loader and i get a grub
screen which offers me some commands that look like its is in a trouble
shooting mode but there is no capability to load either windows or
ubuntu. I then have to perform a fixboot mbr to get windows back.

 
Answer #5    Answered On: Jan 02    
 
Answer #6    Answered On: Jan 02    

I don't see how this applies since i cannot get ubuntu to boot from the
hard disk

 
Answer #7    Answered On: Jan 02    

Do a search on Linux Distros and you'll find a iso called Super Grub.
Just burn it and boot the disk and it will rewrite your grub files for
you.

 




Tagged: