LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-10-2008, 12:19 PM   #1
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 579

Rep: Reputation: 30
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?
 
Old 03-10-2008, 12:23 PM   #2
budword
Member
 
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
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
 
Old 03-10-2008, 12:53 PM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
Old 03-10-2008, 01:21 PM   #4
ararus
Member
 
Registered: Mar 2008
Location: UK
Distribution: Slackware
Posts: 56

Rep: Reputation: 15
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.
 
Old 03-10-2008, 01:45 PM   #5
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 457Reputation: 457Reputation: 457Reputation: 457Reputation: 457
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.
 
Old 03-10-2008, 06:44 PM   #6
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 579

Original Poster
Rep: Reputation: 30
I never knew

Quote:
Originally Posted by budword View Post
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!
 
Old 03-11-2008, 04:50 AM   #7
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
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 /
 
Old 03-13-2008, 08:28 PM   #8
MBA Whore
Member
 
Registered: May 2006
Location: Kansas City, MO
Distribution: Various: pclos, Debian, Ubuntu, etc . . .
Posts: 579

Original Poster
Rep: Reputation: 30
Your suggestion

Quote:
Originally Posted by budword View Post
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!
 
Old 03-15-2008, 09:39 PM   #9
handydan
Member
 
Registered: Mar 2005
Location: palmdale, california
Distribution: MEPIS 8; Debian (stable/testing)
Posts: 83

Rep: Reputation: 23
Mepis tools.

Quote:
Originally Posted by MBA Whore View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reinstalling grub republicson Linux - Newbie 15 02-28-2006 02:35 PM
reinstalling GRUB vineet7kumar Linux - Newbie 1 01-15-2006 01:02 PM
reinstalling grub. greythorne Ubuntu 23 12-03-2005 02:51 AM
Reinstalling grub darkangel29 Linux - Newbie 3 04-03-2005 06:53 PM
Reinstalling GRUB Petelow Linux - Newbie 1 05-24-2004 05:03 AM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration