rescue cd and grub

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help

rescue cd and grub

Postby orangutan-X on Tue Dec 30, 2008 2:50 pm

Is there a rescue cd that i can download that would allow me to restore GRUB after I've installed windows. I have Mint 6 installed and I would like to install XP. But that would ruin the MBR, is there a way to restore GRUB?

I have looked on the forums and the net in general to find a solution, but I thought it would be easier to ask on here.

Many thanks
orangutan-X
 

Linux Mint is funded by ads and donations.
 

Re: rescue cd and grub

Postby orangutan_X on Tue Dec 30, 2008 3:00 pm

i actually posted this but got my name wrong. The shame.
orangutan_X
Level 1
Level 1
 
Posts: 10
Joined: Sat Dec 27, 2008 5:09 am

Re: rescue cd and grub

Postby Fred on Tue Dec 30, 2008 4:39 pm

orangutan_X,

Yes, you can restore grub to the mbr. Download and burn the latest stable version of SuperGrub live cd iso. Use this to boot into the Mint install after you have loaded Windows. Do not try to fix anything with SuperGrub, just use it as a boot cd.

http://download.linux-live-cd.org/Super ... sgd/cdrom/

From the Mint desktop, open a terminal and type:

sudo grub

root (hd0,x)

setup (hd0)

quit

Substitute the correct partition in the root command above. Example: If the Mint /boot folder is on sda5 the above command would be root (hd0,4). Always 1 less than the sda designator.

In a terminal type:

gksu gedit /boot/grub/menu.lst

This will open the menu.lst for editing. At the bottom of the list put the below boot stanza in for Windows. I am assuming Windows is on the first primary partition of the first disk.

title Windows XP
root (hd0,0)
makeactive
chainloader +1

Save and close. When you reboot you should get the nice grub menu and be able to boot into Mint or Windows.

One more chore you will have is to correct the /etc/fstab file, if you are still using UUIDs. Any partitions you have touched will have changed UUIDs. If this is a problem for you post back when you get to that point and I'll help you fix it.

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: rescue cd and grub

Postby orangutan_X on Fri Jan 02, 2009 7:21 am

excellent thanks a lot. in the end i had to reinstall everything anyway! But i'll use that the next time i have a problem with grub, knowing me very soon!

Thanks a lot for your help. :D
orangutan_X
Level 1
Level 1
 
Posts: 10
Joined: Sat Dec 27, 2008 5:09 am

Re: rescue cd and grub

Postby orangutan_X on Fri Jan 02, 2009 7:26 am

Erm, probably a stupid question but how do I download one of the iso's? When I click on it it loads up a page full of weird letters. I'm using opera if that helps. Should I use a bit torrent type thing to download it? If so how because I've never used bit torrent before.

Thanks
orangutan_X
Level 1
Level 1
 
Posts: 10
Joined: Sat Dec 27, 2008 5:09 am

Re: rescue cd and grub

Postby doglover on Fri Jan 02, 2009 9:46 am

How to download an iso? I don't know about Opera, but it appears to be opening the file instead of downloading it. Can you right click on the link and "save as"?
If not, try dillo or firefox.

IMF
doglover
Level 1
Level 1
 
Posts: 11
Joined: Thu Jan 01, 2009 2:26 pm


Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 20 guests