LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Re-installing GRUB from within Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/re-installing-grub-from-within-ubuntu-332444/)

duffmckagan 06-11-2005 07:09 AM

Re-installing GRUB from within Ubuntu
 
I have installed Ubuntu 4.10 Warty Warthog, Slackware 10.1, Simply MEPIS 3.3, Windows XP Professsional.

My only problem is that I am now unable to boot to Windows.
I had already brought up this issue in my previous post. (I discontinued it because it was goin too long.)

I have decided to reinstall GRUB. How do I do that?

Andrew Benton 06-11-2005 08:07 AM

As root run grub, tell it which partition it's menu.lst file is on then tell it to install itself on the MBR. Grub counts from 0 so numbers are one less than normal. It also uses numbers instead of letters so for example /dev/hda5 is (hd0,4) to grub. /dev/hda3 is (hd0,2) and /dev/hdb7 is (hd1,6). So if your Ubuntu is on /dev/hda4 issue the commands
Code:

grub
> root (hd0,3)
> setup (hd0)
> quit


duffmckagan 06-11-2005 08:36 AM

Yeah thanks man.

But, I couldn't wait too long for your post and remembered that the MEPIS CD has a simple option to install GRUB.

I installed it on the MBR.

The main reason for installing GRUB, was to be able to boot to Windows.

I am still not able to boot to windows.

I am now really upset on this one.

The GRUB entry for my Windows partition was initially like this.

Code:



title Windows at hda1
rootnoverify (hd0,0)
chainloader +1

I changed it to

Code:

title Windows at hda1
rootnoverify (hd0, 0)
makeactive
savedefault
chainloader +1

Still no use.

My family members are stuck up with this now......They desperately want Windows XP.:(

duffmckagan 06-11-2005 08:48 PM

Now, with the GRUB installed from MEPIS CD, i am really stuck up.

I need to install the gRUB from Ubuntu.
I added the lines to /boot/grub/menu.lst for mepis, but still no use.

Now, MEPIS installed grub, which failed to detect Ubuntu and Slackware.
It detected Windows, but I still can't boot to windows.

How do I install GRUB using the Ubuntu Live CD?

fair_is_fair 06-12-2005 01:26 PM

I don't know if this helps at all but here is my stress-free and trouble-free way of multibooting.
I install the bootloader of each operating system into the root partition of each operating system. This eliminates trying to configure lilo or grub for booting different kernels.
I have GAG installed in the MBR. GAG is a boot manager capable of booting up to nine operating systems. Gag will work with modern hardware including large drives and sata drives. Gag is free.
I can install and remove operating systems at my liesure.
I have NO trouble with this system.

I know this sounds like a GAG commercial but I tried and searched out many of these bootmanagers and all others had trouble.

http://gag.sourceforge.net/

duffmckagan 06-12-2005 02:12 PM

Is that foolproof?

Just asking you as a confirmation.

I have not been able to boot to windows, no matter what I try, So can you give me some hope regarding this one plz?

kanobuho 07-14-2005 10:31 PM

i had a similar problem and i couldn't boot froom windowxp,
the problem for me was solved when i selected on my pc bios LBA mode for the HDD.
This fixed the problem for me, hope it will help you.

duffmckagan 07-14-2005 11:16 PM

My computer was already LBA Mode.

Usually, selecting the LBA mode is the first step in troubleshooting such problems.

Thanks for the reply though.

f1dave 07-14-2005 11:32 PM

Before we get all upset, let's just lay out what operating systems you've got, and their relative addresses in a format as such...
Ubuntu hd(0,1)
Windows hd(0,0)
etc

This will give us more information to help you with

duffmckagan 07-14-2005 11:35 PM

I guess this is a bumped topic, and the problem no longer exists.

This was done some weeks before, and I have done a clean install after that.

Anyways, thank you f1dave.

f1dave 07-14-2005 11:50 PM

Jeez, and it was still at the top of the list :S

Ah well, glad it's fixed.


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