LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2006, 10:28 PM   #1
phleva
LQ Newbie
 
Registered: Apr 2006
Location: Montréal, Qc, Canada
Distribution: Kubuntu 5.10
Posts: 15

Rep: Reputation: 0
GRUB installation


Hi all,

I have a problem with GRUB...

I have 2 hd (IDE primary, SATA slave). I have a working WinXP on hda and Kubuntu up and running on sda. NTLDR is installed on MBR of my first drive and GRUB is on /boot of sda.

Boot with NTLDR first (works fine)
If I select Linux I want it to load GRUB, which works fine I think, it only display the GRUB prompt (GRUB> ) and that's it...

I have to type "configfile /grub/menu.lst" to start the GRUB menu. At first I thought it was not that bad, but I'm getting annoyed typing that every time I boot...

So, I want to know if it is possible to keep it the way it is (that is without screwing any OS installation) and boot automatically without having to type the configfile thing every time. Is there any easy way to do this :-) ???

Here is my menu.lst
===================
title Ubuntu, kernel 2.6.12-10-686
root (hd1,0)
kernel /vmlinuz-2.6.12-10-686 root=/dev/mapper/Ubuntu-root ro quiet splash
initrd /initrd.img-2.6.12-10-686
savedefault
boot

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Windows XP
root (hd0,0)
savedefault
chainloader +1
===========================

Thank You all !
 
Old 04-20-2006, 02:03 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
For starters:

http://www.linuxquestions.org/questi...41#post1208741
http://www.tldp.org/HOWTO/Linux+Win9x+Grub-HOWTO/
http://www.gnu.org/software/grub/manual/
http://www.troubleshooters.com/linux/grub/grub.htm

And yes, there is a way, I just don't remember it exactly (sitting in front of a Windows box ) it goes like your "root=/dev/mapper/Ubuntu-root ro" but uses boot=...{something}, just look at those links, they should tell.
 
Old 04-20-2006, 02:15 PM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
JZL240I-U,
Thanks for the great references.
  • I had never seen #4 before, & it is one of the clearest expositions of GRUB I have ever seen. The rest of his site is pretty cool, too.
  • #3, the actual GRUB manual, is worth reading & rereading & rereading & rereading ... Unfortunately, Litt is right -- it's not the easiest document to digest. BTW, I recommend the " HTML (244K characters) - entirely on one web page." because the whole thing can be searched w/ 1 find.
  • #2 is OK, perhaps short & dated.
  • #1 I found imposible to concentrate on reading simply because it is a post & not a dedicated web page. (Sounds like a personal problem, mine.) Nevertheless, I found a section that may be the short answer to OP's problem:

phleva,
This section from
http://www.linuxquestions.org/questi...41#post1208741
Quote:
HOW TO INSTALL TO MBR

open a terminal
$ su
$ root password
$ grub
(prompt or cursor changes to GRUB>.)
$ root (hd0,0)
$ setup (hd0)
$ quit

Change the source of root (hd0,0) to where your /boot partition if different. Once GRUB is installed, you just edit the /boot/grub/menu.lst file to make changes.
may be the quick fix to your problem.

However, I would advise answering a few Q's about your system & backing up both MBR's, how would you like to proceed?
 
Old 04-22-2006, 12:03 AM   #4
phleva
LQ Newbie
 
Registered: Apr 2006
Location: Montréal, Qc, Canada
Distribution: Kubuntu 5.10
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

Thanks for the replies :-)

I did read some of the stuff you suggested and I'm thinking of installing GRUB to the MBR instead of NTLDR... but first I'd like to ask you guys one simple question:

That's what I'm trying to do: http://enterprise.linux.com/article....tid=129&tid=49

Why is the GRUB prompt showing instead of the menu ?
Where did I go wrong ?

Last edited by phleva; 04-22-2006 at 12:40 AM.
 
Old 04-22-2006, 08:44 AM   #5
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
If you do this:
open a terminal
$ su
$ root password
$ grub
(prompt or cursor changes to GRUB>.)
$ root (hd0,0)
$ setup (hd0)
$ quit

you will go wrong. change root (hd0,0) to root (hd1,0).
open a terminal
$ su
$ root password
$ grub
(prompt or cursor changes to GRUB>.)
$ root (hd1,0)
$ setup (hd0)
$ quit

The root of your Linux install is on the second drive, and you want to write grub to the MBR of the first drive, with instruction where to find the rest of grub (on the second drive).

With root (hd0,0) in there, first stage grub (on the MBR) is looking in the xp partition instead of the Linux partition for the rest of grub.
 
Old 04-22-2006, 11:57 AM   #6
phleva
LQ Newbie
 
Registered: Apr 2006
Location: Montréal, Qc, Canada
Distribution: Kubuntu 5.10
Posts: 15

Original Poster
Rep: Reputation: 0
It Works !!!!!

Hi all,

It wasn't any installation problem after all ...
I'll explain here for the benefit of all:

OS SUMMARY
==========
WindowsXP => Primary hd (IDE)
Kubuntu => Secondary hd (SATA)

BOOT LOADERS
============
NTLDR installed on MBR of primary drive (as expected by Windows)
GRUB installed on to the first sector of the /boot partition (not MBR; i chose this during OS installation)
I have a binary file of stage1 (dd if=... of=... bs=512 count=1) that I copied in my C:\ for NTLDR to read

WHAT DID THE TRICK
==================
Simply added a symbolic link (grub.conf -> menu.lst) in my /boot/grub directory.
Now my configfile loads perfectly well...

Why is that so... ????
Who is there to blame ?
  • My distro (Kubuntu) for incorrectectly setting GRUB during installation ?
  • GRUB, for not supplying a link to menu.lst when in fact it looks for grub.conf ???
  • Me for not having done I don't know what ???
Should I report this as a bug to the GRUB team and/of UBUNTU ?
It really annoyed me for a long time and I think some people might get borred of this and simply boot WinXP every time... that would be a shame

Thanks all again and I hope this will help some other people !!!
 
Old 04-24-2006, 06:15 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
1st, good for you for finding your own answer; & more for posting it.

2nd, I don't (at least not yet) use Kubuntu, so I don't know what its norm is; but I thought all Debian/Debian based distros had long since switched from the old "grub.conf" name to the new "menu.lst". Are you sure that the stage 1 code you copied was working w/ your actual /boot/grub directory?

V. v. strange.
 
Old 04-24-2006, 10:34 PM   #8
phleva
LQ Newbie
 
Registered: Apr 2006
Location: Montréal, Qc, Canada
Distribution: Kubuntu 5.10
Posts: 15

Original Poster
Rep: Reputation: 0
Hi,

The grub version I have was installed as a package by apt (adept, from the distro's repositories) and stage1 dd'd as a binary was the one installed during Kubuntu installation.

btw, all I had to do to load stage2 (and menu) was:
GRUB> /grub/menu.lst
So I assume that stage1 was working correctly (it pointed to the /boot partition)

Has anyone had the same problem while trying to set up a dual-boot system on a separate hard drive configuration ?


Last edited by phleva; 04-24-2006 at 10:36 PM.
 
Old 04-25-2006, 12:07 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
The grub source only references menu.lst
Distros that choose to use grub.conf are responsible for cleaning up after themselves.

Simple as that.
 
Old 04-25-2006, 08:57 AM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by phleva
...

Has anyone had the same problem while trying to set up a dual-boot system on a separate hard drive configuration ?
Never. OTOH, I have never installed Kubuntu; & I have never had to apt-get GRUB. In my not-so-limited experience *, the distros' installers have always put GRUB where they were told to (MBR or root partition) & GRUB then just worked.

Quote:
Originally Posted by phleva
... The grub version I have was installed as a package by apt (adept, from the distro's repositories) and stage1 dd'd as a binary was the one installed during Kubuntu installation. ...
This sounds contradictory: If GRUB, including the stage1 binary, was installed by Kubuntu, why was it necessary to use APT to install it?


What follows is supposed to be as small as I can make it, but font control seems to be broken for Konq. 3.3.2, sorry.
* I have installed 2-3 versions of RH, 1 FC, 3 Debian, 4 MEPIS, 2 or 3 Mandr[ake|iva], 2 or 3 SuSE, not to mention FreeBSD. My multi-boot "record" is close to 10 distros on 1 machine.
 
Old 04-25-2006, 08:59 AM   #11
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by phleva
... Has anyone had the same problem while trying to set up a dual-boot system on a separate hard drive configuration ?
Never. OTOH, I have never installed Kubuntu; & I have never had to apt-get GRUB. In my not-so-limited experience *, the distros' installers have always put GRUB where they were told to (MBR or root partition) & GRUB then just worked.

Quote:
Originally Posted by phleva
... The grub version I have was installed as a package by apt (adept, from the distro's repositories) and stage1 dd'd as a binary was the one installed during Kubuntu installation. ...
This sounds contradictory: If GRUB, including the stage1 binary, was installed by Kubuntu, why was it necessary to use APT to install it?


What follows is supposed to be as small as I can make it, but font control seems to be broken for Konq. 3.3.2, sorry.
* I have installed 2-3 versions of RH, 1 FC, 3 Debian, 4 MEPIS, 2 or 3 Mandr[ake|iva], 2 or 3 SuSE, not to mention FreeBSD. My multi-boot "record" is close to 10 distros on 1 machine.
 
Old 04-25-2006, 10:08 AM   #12
phleva
LQ Newbie
 
Registered: Apr 2006
Location: Montréal, Qc, Canada
Distribution: Kubuntu 5.10
Posts: 15

Original Poster
Rep: Reputation: 0
Sorry, I might have confused something...

GRUB was installed during Kubuntu installation. It also appears as an "installed package" in my package manager.

Quote:
Originally Posted by syg00
...
The grub source only references menu.lst
Distros that choose to use grub.conf are responsible for cleaning up after themselves.
So I guess I can assume that submitting the problem to Kubutu would be the right action.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub installation surejaj Linux - Laptop and Netbook 3 03-24-2005 01:30 AM
grub installation jxn Slackware 2 04-22-2004 04:08 AM
Grub Installation MAsKrA Slackware 6 06-09-2003 04:59 PM
grub installation masand Linux - General 3 05-14-2003 12:35 AM
Grub installation Help lexx_t Linux - Newbie 1 01-12-2003 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:20 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
Open Source Consulting | Domain Registration