LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-09-2006, 01:37 AM   #1
dean20007
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?


Thanks
 
Old 06-09-2006, 02:17 AM   #2
LzW-x
Member
 
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, 02:29 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
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

grub

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, 02:51 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
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.
 
  


Reply



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 02:21 PM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
Lost boot/grub/menu.lst MRDucks Linux - Newbie 12 12-17-2005 01:44 PM
Dual boot problem in Redhat linux 9 (GRUB Lost) cyberguy2 Linux - Software 11 11-20-2005 09:00 AM
help GRUB is lost! I need to boot Linux from HardDisk varunnarang Linux - Software 9 11-20-2004 11:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 PM.

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