LinuxQuestions.org
Visit Jeremy's Blog.
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 07-21-2008, 07:45 PM   #1
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Rep: Reputation: 16
Set Selected Distro's Grub to MBR.


I had Debian installed on hda3. Debian's grub is in MBR, using it as my main bootup menu.

Had another partition hda6 for testing random distro. The grub menu here is local.


Problem - just installed kubuntu in hda6 but forget to set the grub to install into hda6. Now, kubuntu is in MBR instead of Debian's grub.

Everything still works, but wanted to bootup using Debian's grub and chainload kubuntu's grub (if wanted to start kubuntu).


Can I go to shell and issue
# grub
# root(0,2)
and reboot ?


Or is there a correct/actual way.

Thanks in advance for any advice.
 
Old 07-21-2008, 07:55 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
You can install GRUB from any running Linux--and point it to the Linux version which you want to be the "master"--i.e. the one that hosts the config. file.

Running from Kubuntu, do this:
(Assumes Kubuntu on hda6 (hd0,5 for GRUB), Debian on hda3 (hd0,2 for Grub))

grub <<starts the GRUB shell>>
root (hd0,2) <<points GRUB to location of the desired /boot/grub>>
setup (hd0) <<installs GRUB to the mbr on drive #1 (hda)>>

On the next reboot, Grub will go to the Debian install to look for its files.
 
Old 07-21-2008, 09:28 PM   #3
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Just curious, as Kubuntu's grub is already in MBR, is it possible to skip

setup (hd0)
 
Old 07-21-2008, 10:26 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
To make it simple the MBR is the first thing seen on boot and it will point to the selected root menu.lst. That is the reason you change your setup in hd0.
 
Old 07-21-2008, 10:26 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by lazylogic View Post
Just curious, as Kubuntu's grub is already in MBR, is it possible to skip

setup (hd0)
When you install GRUB to the MBR, it gets "hard-coded" to point to its config file. If you don't do the "setup" step, it will continue to use the file on the Kubuntu partition.
 
Old 07-21-2008, 10:31 PM   #6
lazylogic
Member
 
Registered: Aug 2006
Posts: 151

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pixellany View Post
When you install GRUB to the MBR, it gets "hard-coded" to point to its config file. If you don't do the "setup" step, it will continue to use the file on the Kubuntu partition.
Got that, THANKS.
 
  


Reply


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
GrUB: Selected Disk Does not Exist Ekpyrotic Linux - General 51 01-23-2009 05:15 AM
Adding Distro's to GRUB KlicK Linux - Software 6 09-06-2007 09:25 AM
How to fing the sises of selected set of directories cnm Linux - Newbie 5 03-26-2007 10:52 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 05:25 PM


All times are GMT -5. The time now is 10:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration