Back-up GRUB Bootloader

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

Back-up GRUB Bootloader

Postby martinfromdublin on Wed Apr 23, 2008 1:00 pm

Hi, it is possible to restore the GRUB Bootloader if it gets over-witten? I ask this because my XP installaton just went belly-up and may need to be completley re-installed, that includes a reformat of the NTFS partition. This means that at the end, the XP bootloader would replace GRUB leaving me no way to boot back into Celena, which is not affected.

I know other distros like SuSe and Kanotix give you the option of backing up GRUB onto a floppy which can be used later to boot the system and once up and running give another option to repair/restore GRUB from the GUI. Does Celena have this function? I don't really want to re-install Celena as I have it running the way I like.

Martin
User avatar
martinfromdublin
Level 2
Level 2
 
Posts: 76
Joined: Sun Sep 09, 2007 7:48 pm
Location: Dublin, Rep. of Ireland

Linux Mint is funded by ads and donations.
 

Re: Back-up GRUB Bootloader

Postby martinfromdublin on Wed Apr 23, 2008 1:26 pm

Update: XP restored via Safe Mode but would still like to know how to back-up GRUB, if it's possible. I've done this in SuSE by use of a floppy but don't remeber how.
User avatar
martinfromdublin
Level 2
Level 2
 
Posts: 76
Joined: Sun Sep 09, 2007 7:48 pm
Location: Dublin, Rep. of Ireland

Re: Back-up GRUB Bootloader

Postby Fred on Wed Apr 23, 2008 2:58 pm

Greetings martinfromdublin,

It is relatively easy to reinstall grub in a situation like you describe. Lets use an example.

sda1 Windows
sda2 swap
sda3 Linux Mint complete install

If you are locked out of your Mint install you can use something like Supergrub to boot the Linux install. Supergrub is handy to have around as it can boot almost anything. Don't be tempted to try to fix things with Supergrub unless you know what you are doing. Supergrub is a very useful and powerful tool.

Once you have booted into your Mint desktop open a terminal and type:

sudo grub

root (hd0,2)

setup (hd0)

quit

The first line opens a grub terminal. The second line tells grub where the stage 1.5 and menu.lst file are located, (1st hard drive - 3rd partition). The third line tells grub where to install the grub kernel, (1st hard drive mbr). The forth line exits the grub terminal.

You have now reinstalled grub. :-)

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


Return to Installation & Boot

Who is online

Users browsing this forum: Bing [Bot], Minterator, williamb and 8 guests