Grub..


Recommended Posts

Hello there folks,

Pretty simple question here...

I had a dual boot Windows XP Pro and Ubuntu 8.04 system. Have a laptop, 1 hard drive with 3 partitions set up as following:

- 45 GB Windows (NTFS)

- 15 GB Ubuntu (EXT3)

- 384MB Linux Swap

I did a clean install of Vista on the NTFS partition. Problem is Vista takes over Grub, so don't get the boot menu when I turn on my laptop. So, how do I get it back so I can boot into Linux and Vista? I assume I'd insert the Ubuntu Live CD, and open up GParted and set the Ubuntu partition as boot?

Thanks!

Link to comment
https://www.neowin.net/forum/topic/637298-grub/
Share on other sites

Boot the LiveCD.

Open the terminal.

Type "grub".

Type "root (hd0,x)". x is where ubuntu is installed. (sda1 = 0, sda2 = 1 etc.)

Type "setup (hd0)".

Type "quit".

Reboot

Then of course add a Vista entry to /boot/grub/menu.lst

sudo gedit /boot/grub/menu.lst

title		Windows Vista
root		(hd0,x)
savedefault	1
makeactive
chainloader	+1

replace the x in 0,x with the partition number of vista. (sda1 = 0, sda2 = 1 etc.)

:)

Link to comment
https://www.neowin.net/forum/topic/637298-grub/#findComment-589404927
Share on other sites

You should be able to boot your Ubuntu CD and re-do your GRUB install.

This thread seems to show a few alternatives: http://ubuntuforums.org/showthread.php?t=24113

EDIT: Dangit! Beaten by a few seconds (and bb10's post has more info, rather than just pointing to info) :pinch:

Link to comment
https://www.neowin.net/forum/topic/637298-grub/#findComment-589404928
Share on other sites

I am posting from the live CD now..

After I type in Grub into terminal, I type "root (hd0,1)" but it says, "Error 21: Selected disk does not exist"

I guess my hd0 isn't mounted??? :confused:

Or if I type in root (hd0, sda1) it says "Error 11: Unrecognized device string"

Alright, I'm attaching the Partition Editor's screenshot...

post-182178-1210957371_thumb.png

Link to comment
https://www.neowin.net/forum/topic/637298-grub/#findComment-589404989
Share on other sites

Boot the LiveCD.

Open the terminal.

Type "grub".

Type "root (hd0,4)".

Type "setup (hd0)".

Type "quit".

Reboot

Then of course add a Vista entry to /boot/grub/menu.lst

sudo gedit /boot/grub/menu.lst

title		Windows Vista
root		(hd0,0)
savedefault	1
makeactive
chainloader	+1

:)

edited for you :) (can't find an edit button for my post so had to do it this way :p)

Link to comment
https://www.neowin.net/forum/topic/637298-grub/#findComment-589405118
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.