Re-install MintGRUB?

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

Re-install MintGRUB?

Postby Kerrick on Sat Aug 09, 2008 11:15 pm

I have my hard drive partitioned with an empty partition that I'd been considering condensing into my Mint partition. I was wondering, if I install Windows XP on that, if I can re-install the MintGRUB without reinstalling Linux Mint. I can install GRUB, but I've got no clue how to get the Linux Mint version back. Any ideas?
Kerrick
Level 1
Level 1
 
Posts: 7
Joined: Sat Aug 09, 2008 10:46 pm

Linux Mint is funded by ads and donations.
 

Re: Re-install MintGRUB?

Postby Fred on Sun Aug 10, 2008 1:21 am

Kerrick,

Yes you can re-install grub to the mbr pretty easily. Download and burn a live cd iso called SuperGrub. The link is below. You can use this to boot into your Linux install after you install Windows. Don't try to fix anything with it, just use it to boot into the Linux install.

After you have Windows installed and working use Supergrub to boot into your Linux install. Let's say the Linux install is on sda5 and you have only one drive. Open a terminal and type:

sudo grub

root (hd0,4)

setup (hd0)

quit

Close the terminal. The boot is back on Mint.

You won't be able to boot Windows however. You will have to edit /boot/grub/menu.lst and put the Windows chainload stanza in at the end of that file.

A word of caution. You can't put Windows just anywhere like you can Linux and expect it to boot. Windows must be on a primary partition and wants to be on the first partition. If it isn't on the first primary partition it can get a little tricky to get it to boot.

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: Re-install MintGRUB?

Postby merlwiz79 on Sun Aug 10, 2008 1:28 am

Load the Linux Mint live cd and install Grub from it.
This will give you the graphical grub back.
http://www.linuxmint.com/wiki/index.php ... _your_grub
User avatar
merlwiz79
Level 11
Level 11
 
Posts: 3637
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: Re-install MintGRUB?

Postby Fred on Sun Aug 10, 2008 2:27 am

merlwiz79 wrote:
This will give you the graphical grub back.


So does what I just told him. In fact it is an abbreviated version of those instructions. :-)

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: Re-install MintGRUB?

Postby merlwiz79 on Sun Aug 10, 2008 3:17 am

Fred wrote:merlwiz79 wrote:
This will give you the graphical grub back.


So does what I just told him. In fact it is an abbreviated version of those instructions. :-)

Fred

Does SuperGrub use grub-gfxboot 0.97-29 like Linux Mint 5?
User avatar
merlwiz79
Level 11
Level 11
 
Posts: 3637
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: Re-install MintGRUB?

Postby Fred on Sun Aug 10, 2008 7:09 am

merlwiz79,

No, SuperGrub doesn't use gfx. That is why I told him to only use SuperGrub to boot into the Mint install, then use the the native Mint grub commands to re-install the kernel to the mbr.

It is nice to have a copy of SuperGrub around. It will boot almost anything. It also can restore the Windows mbr file. That is why I usually tell people to use SuperGrub. They will then have it if/when they need it again.

Also in this case he is going to have to edit his menu.lst to get Windows to boot and that is easier to do from the native install, especially with Mint 5 which doesn't mount partitions by default.

Different strokes for different folks I guess. :-)

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: Re-install MintGRUB?

Postby merlwiz79 on Sun Aug 10, 2008 10:40 am

Sorry been up all night working and didn't read far enough to realize what you where saying.
User avatar
merlwiz79
Level 11
Level 11
 
Posts: 3637
Joined: Wed Apr 04, 2007 1:50 pm
Location: Here again :)

Re: Re-install MintGRUB?

Postby Kerrick on Mon Aug 11, 2008 5:34 pm

Thanks for your help everybody, it worked wonders!
Kerrick
Level 1
Level 1
 
Posts: 7
Joined: Sat Aug 09, 2008 10:46 pm

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 11 guests