LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 06-11-2005, 07:09 AM   #1
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Rep: Reputation: 47
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?
 
Old 06-11-2005, 08:07 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 06-11-2005, 08:36 AM   #3
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 47
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.
 
Old 06-11-2005, 08:48 PM   #4
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 47
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?
 
Old 06-12-2005, 01:26 PM   #5
fair_is_fair
Member
 
Registered: May 2005
Posts: 511

Rep: Reputation: 51
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/
 
Old 06-12-2005, 02:12 PM   #6
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 47
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?
 
Old 07-14-2005, 10:31 PM   #7
kanobuho
LQ Newbie
 
Registered: Jul 2005
Location: Mexico
Distribution: Ubuntu 5.04, Suse 9.1
Posts: 1

Rep: Reputation: 0
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.
 
Old 07-14-2005, 11:16 PM   #8
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 47
My computer was already LBA Mode.

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

Thanks for the reply though.
 
Old 07-14-2005, 11:32 PM   #9
f1dave
Member
 
Registered: Jan 2005
Location: Kinross, Western Australia
Distribution: Kubuntu 5.04 (Hoary)
Posts: 114

Rep: Reputation: 15
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
 
Old 07-14-2005, 11:35 PM   #10
duffmckagan
Senior Member
 
Registered: Feb 2005
Distribution: Cent OS 6.4
Posts: 1,163

Original Poster
Rep: Reputation: 47
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.
 
Old 07-14-2005, 11:50 PM   #11
f1dave
Member
 
Registered: Jan 2005
Location: Kinross, Western Australia
Distribution: Kubuntu 5.04 (Hoary)
Posts: 114

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

Ah well, glad it's fixed.
 
  


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
GRUB Error 17 when installing Ubuntu on an External Drive nrbelex Linux - Software 1 11-16-2005 08:06 AM
Ubuntu and GRUB loader miickEe. Ubuntu 11 08-23-2005 10:49 PM
Ubuntu GRUB Problem. duffmckagan Ubuntu 8 06-29-2005 04:37 AM
grub config in ubuntu linusownsme Linux - Newbie 1 05-07-2005 03:45 PM
Ubuntu...GRUB Hangs vswr31 Linux - General 5 12-28-2004 10:22 PM


All times are GMT -5. The time now is 04:39 AM.

Main Menu
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