LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Reinstalling GRUB without Reinstalling my Distro (http://www.linuxquestions.org/questions/linux-newbie-8/reinstalling-grub-without-reinstalling-my-distro-626996/)

MBA Whore 03-10-2008 11:19 AM

Reinstalling GRUB without Reinstalling my Distro
 
I dual boot. I recently re-installed my XP on my main hdd and as expected, I now need to re-install GRUB.

Unfortunately it appears my distro (MEPIS 7) will only let me re-install GRUB after re-installing MEPIS on my root.

This would be annoying but not the end of the world.

Is there a way to re-install GRUB without re-installing my (perfectly working) distro?

budword 03-10-2008 11:23 AM

There is the manual way, which is a pain in the ***, and involves a live cd and chrooting and a bunch of other steps. Or you can use super grub boot disk, and let it's wizard do the heavy lifting.

http://supergrub.forjamari.linex.org/?section=download

I've done both, and I know which I prefer. :)

David

H_TeXMeX_H 03-10-2008 11:53 AM

Can't you just run 'grubconfig' as root ? I'm using Slackware, and I don't know if it comes with GRUB in all distros, so it may not exist, but it's worth a try.

ararus 03-10-2008 12:21 PM

Just run grub from the live cd (i.e. in a console, not some gui frontend nonsense). Assuming Windows hasn't hosed your entire system, grub is still installed, along with your configuration, you just need to rewrite the mbr.

Just give grub the appropriate root partition (grub root, that is, which isn't necessarily your Linux / of course), and run the setup command:

Code:

root (hdX,Y)
setup(hdX)

Grub will/should automatically find your existing menu.lst (or menu.conf, or grub.conf or whatever it's called these days) on the root fs.

craigevil 03-10-2008 12:45 PM

Using any livecd just do: sudo mount /media/sdxx ; then: sudo /usr/sbin/grub-install --recheck --no-floppy --root-directory=/media/sdxx /dev/sda with x being the partition grub should be installed to.

MBA Whore 03-10-2008 05:44 PM

I never knew
 
Quote:

Originally Posted by budword (Post 3084005)
There is the manual way, which is a pain in the ***, and involves a live cd and chrooting and a bunch of other steps. Or you can use super grub boot disk, and let it's wizard do the heavy lifting.

http://supergrub.forjamari.linex.org/?section=download

I've done both, and I know which I prefer. :)

David


I never knew such a GRUB bootloader (iso) was available. Your suggestion looks the easiest so I will try that first.

Thanks!

aus9 03-11-2008 03:50 AM

I have used mepis as a live cd in the past.

if the other way does not work for you pls post the steps you took and compare to my memory.

----
boot mepis
open a shell
su
grub
root (hdx,y)
setup (hd0)
quit

whre hdx,y is the grub speak for your /boot folder or partition as per my signature.

--------------------------------

Normally we speak of installing the bootloader into root....we mean into the partition that has the /boot ....either as a partition or a sub-folder to /

and confuses a lot of people into thinking it always means /

MBA Whore 03-13-2008 07:28 PM

Your suggestion
 
Quote:

Originally Posted by budword (Post 3084005)
There is the manual way, which is a pain in the ***, and involves a live cd and chrooting and a bunch of other steps. Or you can use super grub boot disk, and let it's wizard do the heavy lifting.

http://supergrub.forjamari.linex.org/?section=download

I've done both, and I know which I prefer. :)

David


budword:

Your suggestion seemed to do all the heavy lifting, as promised. Thanks!

handydan 03-15-2008 08:39 PM

Mepis tools.
 
Quote:

Originally Posted by MBA Whore (Post 3084002)
I dual boot. I recently re-installed my XP on my main hdd and as expected, I now need to re-install GRUB.

Unfortunately it appears my distro (MEPIS 7) will only let me re-install GRUB after re-installing MEPIS on my root.

This would be annoying but not the end of the world.

Is there a way to re-install GRUB without re-installing my (perfectly working) distro?

Sorry I didn't get here in time to save you all this falderal.
System>Mepis>Mepis System Assistant>Repair Sytem Boot (tab)

It's all right there in the gui...Along with a lot of other handy tools.
Mepis is the only reason I don't use Pure Debian.


All times are GMT -5. The time now is 12:01 AM.