[SOLVED] Reinstalling GRUB without Reinstalling my Distro
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675
Rep:
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.
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.
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.
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.
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.
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 /
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.