Fix Mint's gryb after Ubuntu borks it

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Fix Mint's gryb after Ubuntu borks it

Postby AK Dave on Tue Jan 13, 2009 8:28 pm

Laptop has 3 bootable partitions. One has a solid stable Mint Felicia install that I don't want to mess with. The other two are fair game. I intend to scrub and reinstall on both of them HOWEVER when I do this I want to be able to restore Mint's "grub supremacy". I note from past experiences that whatever distro is installed last and installs grub last takes over and leaves everything else as a secondary install. I can very easily change the default boot order in menu.list to point Jaunty's grub at Felicia by default. But what I really want to do is have Felicia's grub be what shows up when I power up. Not Jaunty's grub.

So how do am I going to "fix" this?
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1043
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Linux Mint is funded by ads and donations.
 

Re: Fix Mint's gryb after Ubuntu borks it

Postby Fred on Tue Jan 13, 2009 8:55 pm

AK Dave,

I don't know if you were reading my mind or I was reading yours. :-)

I just posted in another thread to you about this very thing.

viewtopic.php?f=46&t=10043&start=30

If you can't make heads or tails out of my rambling I'll be happy to help you.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Fix Mint's gryb after Ubuntu borks it

Postby kansasnoob on Tue Jan 13, 2009 9:08 pm

AK Dave wrote:Laptop has 3 bootable partitions. One has a solid stable Mint Felicia install that I don't want to mess with. The other two are fair game. I intend to scrub and reinstall on both of them HOWEVER when I do this I want to be able to restore Mint's "grub supremacy". I note from past experiences that whatever distro is installed last and installs grub last takes over and leaves everything else as a secondary install. I can very easily change the default boot order in menu.list to point Jaunty's grub at Felicia by default. But what I really want to do is have Felicia's grub be what shows up when I power up. Not Jaunty's grub.

So how do am I going to "fix" this?


Boot Felicia, then go to Administration > Partition Editor. See which partition is mounted. Let's say it's sda1, that = (hd 0,0) in GRUB because GRUB begins numbering with 0 (zero), so sda = (hd 0,?), sda1 = (hd 0,0)!

You'll want to know for sure which partition(s) are used by Felicia anyway before deleting the others.

Then to restore GRUB to Felicia just boot your Live CD and go to Terminal and run:

Code: Select all
sudo grub


That will drop you into grub mode "grub>".

Then just to double check yourself run:

Code: Select all
find /boot/grub/stage1


If you've not yet deleted the other unwanted operating systems you'll get multiple outputs, but by now you know what yours is, right? So use the proper one for Felicia:

Code: Select all
root (hd0,0)


Of course I'm just using (hd0,0) as an example! Then you'd run:

Code: Select all
setup (hd0)


Then finally run:

Code: Select all
quit


Which will drop you out of GRUB mode and back to "yourname@yourname-desktop".

Then you should be able to boot Felicia using it's own GRUB.

There is one rather glum potential caveat that I've run into. If Felicia's / partition is not a primary partition GRUB could possibly laugh at you once all Primary partitions are wiped out!

You can learn all of this stuff here:

http://users.bigpond.net.au/hermanzone/p15.htm
kansasnoob
Level 4
Level 4
 
Posts: 294
Joined: Sun Jul 20, 2008 1:45 pm

Re: Fix Mint's gryb after Ubuntu borks it

Postby kansasnoob on Tue Jan 13, 2009 9:12 pm

Fred wrote:AK Dave,

I don't know if you were reading my mind or I was reading yours. :-)

I just posted in another thread to you about this very thing.

http://www.linuxmint.com/forum/viewtopi ... 3&start=30

If you can't make heads or tails out of my rambling I'll be happy to help you.

Fred


I wouldn't call that rambling. You do a good job of explaining things. Better than I usually can.

Knowing how to do something and trying to explain it are two different things :)
kansasnoob
Level 4
Level 4
 
Posts: 294
Joined: Sun Jul 20, 2008 1:45 pm

Re: Fix Mint's gryb after Ubuntu borks it

Postby Fred on Tue Jan 13, 2009 9:52 pm

kansasnoob,

I don't know about that. Your instructions look pretty clear to me. :-)

There you go Dave. Two solutions. One to fix the immediate problem and another to fix it long term. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Fix Mint's gryb after Ubuntu borks it

Postby DataMan on Thu Jan 15, 2009 5:39 am

Added mud to the pie... :D

Since you're well into multiple booting options, might want to consider a dedicated grub partition. I've got an extensive writeup on my web site if you're interested. I've found that it makes adding-deleting ops and upgrades much easier to control.

DataMan
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015
User avatar
DataMan
Level 6
Level 6
 
Posts: 1192
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Indiana USA at /var/www

Re: Fix Mint's gryb after Ubuntu borks it

Postby Fred on Thu Jan 15, 2009 5:54 am

DataMan,

If you follow my link above, that is exactly what you will find. Or at least my variation of it. :-)

Fred

Edit: Hummm... I believe I like my way better. You might want to look at it a little closer. Chainloading has several advantages in a situation like this. Also, If you add LABEL to the mix instead of UUID you get some additional advantages.
Last edited by Fred on Thu Jan 15, 2009 6:04 am, edited 1 time in total.
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Fix Mint's gryb after Ubuntu borks it

Postby DataMan on Thu Jan 15, 2009 6:03 am

Sorry Fred... It's 05:05 here and still on my second cup of coffee... :)

-Tim
Linux'd since 2005 Linux ID 422356 Ubuntu ID 15015
User avatar
DataMan
Level 6
Level 6
 
Posts: 1192
Joined: Thu Dec 04, 2008 6:47 am
Location: Carmel, Indiana USA at /var/www

Re: Fix Mint's gryb after Ubuntu borks it

Postby Fred on Thu Jan 15, 2009 6:06 am

No problem, same time here. I am still stumbling too. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 16 guests