Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-09-2006, 02:37 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
I have lost my grub boot loadier

Hi folks

This is probably a schoolboy mistake I have made but I successfully set up Ubuntu on a seperate partition and it worked fine. At boot time I was able to choose between booting into XP or Ubuntu. However I dedcided to set up another copy of XP on another partition and now at boot time I only get the option to boot into either of the XP partitions. Using Martititon Manager, I can see the Ubuntu partition is still there but how do get access to it?

Old 06-09-2006, 03:17 AM   #2
Registered: Jun 2006
Distribution: SuSe
Posts: 66

Rep: Reputation: 15
I don't know if it can be done from windows so you might have to use a linux live cd to run grub!

run the grub command from the terminal as root or go su command first! With grub running, you can use the install or setup command to reload it into the MBR...

help lists the commands available while grub is running in the terminal.
Old 06-09-2006, 03:29 AM   #3
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,535

Rep: Reputation: 100Reputation: 100
You'll need to use your distro's first CD (usually, that's the bootable one) and get into some kind of rescue console. With FC3, this can be done by inserting the CD#1 and starting up the system, or rebooting from XP. Then, at a certain point in the FC3 install cycle, you type

linux rescue

and a limited shell comes up with your Linux partition already mounted. You then change to this partition's /boot directory (if this is on a seperate partition for you, I don't know exactly what you'll do - mine is all on one physical partition) You then startup grub's console by doing


at the commandline. Then, to get the capability back to boot on choice any of my operating systems (either XP or FC3) I do at the grub console:

grub> root (hd0,1)
grub> setup (hd0)

And then I quit and reboot. When my system starts up afterward, I have the grub screen back and can choose which operating system to use...

Hope this helped!
Old 06-09-2006, 03:51 AM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,468

Rep: Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084Reputation: 3084
Windows always over-writes the MBR. No doubt "for your convenience" ...

Start here.
When you get grub back, your XP selection will give you the (new) boot.ini to still seleect either XP install.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHatLinux ,Recover lost root password with GRUB boot loader Ruzzell Linux - Security 5 01-07-2011 03:21 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 04:13 AM
Lost boot/grub/menu.lst MRDucks Linux - Newbie 12 12-17-2005 02:44 PM
Dual boot problem in Redhat linux 9 (GRUB Lost) cyberguy2 Linux - Software 11 11-20-2005 10:00 AM
help GRUB is lost! I need to boot Linux from HardDisk varunnarang Linux - Software 9 11-20-2004 12:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration