LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2009, 10:31 AM   #1
greenmuzz
Member
 
Registered: Oct 2003
Posts: 34

Rep: Reputation: 15
grub drops to grub prompt on boot, but can use commands to find menu... fix?


Hello,

I've got myself the curious situation where, when I boot the system, I can get grub to start, but it always drops to the prompt.

I can run:
configfile /grub/menu.lst

and this brings up the menu with no problems, and from there I can boot the system to either linux or windows. What I don't understand is why it wont go to the menu in the first place?

Some extra notes:
As far as I can tell, grub/Kubuntu got confused when installing, as each of the hd#,# settings in the menu.lst have needed tweaking to let the system boot. (e.g. windows is actually hd0, but the original install had it at hd2. Likewise linux is on hd1, but the menu.lst had it at hd0). I've happily tweaked these to make the system boot, but would appreciate any help in convincing grub to actually load the menu without me having to use the prompt.
 
Old 06-05-2009, 10:36 AM   #2
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Rep: Reputation: 31
post /boot/grub/menu.lst
 
Old 06-05-2009, 10:43 AM   #3
greenmuzz
Member
 
Registered: Oct 2003
Posts: 34

Original Poster
Rep: Reputation: 15
minus the extensive commented lines:

default 0
timeout 10

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid a5382351-f00d-4090-a3ba-8ca91f92a734
kernel /vmlinuz-2.6.28-11-generic root=UUID=3d1024c1-041c-496b-880f-c98a3ad479ae ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid a5382351-f00d-4090-a3ba-8ca91f92a734
kernel /vmlinuz-2.6.28-11-generic root=UUID=3d1024c1-041c-496b-880f-c98a3ad479ae ro single
initrd /initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid a5382351-f00d-4090-a3ba-8ca91f92a734
kernel /memtest86+.bin
quiet

title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdc1
title Microsoft Windows XP Professional
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
 
Old 06-05-2009, 10:54 AM   #4
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Rep: Reputation: 31
take a look at this post from pixellany

http://www.linuxquestions.org/questi...cation-459430/

from what he is saying, it seems like reinstalling grub might be the answer
 
Old 06-05-2009, 11:31 AM   #5
rasta_freak
LQ Newbie
 
Registered: Jun 2009
Location: Hrvatska
Distribution: Ubuntu
Posts: 10

Rep: Reputation: 0
Seeing you have windows at /dev/sdc1, I assume grub should go to /dev/sda, so try
"sudo grub-install /dev/sda"
(Change /dev/sda with disk you want to install bootloader to, if it's not correct. Best way to check is when you are in linux, check where / is mounted from - type "cat /proc/mounts" + "ls -l /dev/disk/by-uuid", or "fdisk -l /dev/sda" (or sdb,sdc...) - you should see linux partitions).

Last edited by rasta_freak; 06-05-2009 at 11:41 AM.
 
Old 06-06-2009, 09:06 PM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,840

Rep: Reputation: Disabled
greenmuzz

your menu shows kernel lines with structure.... kernel /vmlinuz-2.6.28...and NOT kernel /boot/vmlinuz-2.6.28...
that means for your menu to work you must have a separate boot partition.

pls use a live cd to show your partitions...but if you are happy to mount and edit your menu because you know its wrong based on what I just said...read my signature on how to get uuids...and stuff

2) mention in the windows bit shows sdc...chainloading to hd0,0....so I am guessing you have windows drive is hd0

what are the other drives?

you need to tell us so we can help

3) boot a live cd and post the output of

fdisk -l

you may need to issue command su && fdisk -l....or sudo fdisk -l depending on which live cd you have
 
Old 06-06-2009, 10:14 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,009

Rep: Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099Reputation: 4099
Allowing some license with your first post, this should work from the boot menu
Code:
root (hd0,1)
setup (hd0)
The "fdisk -l" will help confirm this.
 
Old 06-07-2009, 04:07 AM   #8
greenmuzz
Member
 
Registered: Oct 2003
Posts: 34

Original Poster
Rep: Reputation: 15
Thank you all,

a reinstall has been successful. The issue is certainly over the confusion as to which disk was the first disk the machine used to boot from, versus what linux was reporting as the first disk. / was on sda, but this was not, the primary booting disk. Rather, the bios wanted to boot from hdc - which perhaps should have become obvious to me when I realised I had to set the menu.lst for the windows disk to be hd0. Installing to the mbr of hdc proved to be sufficient. Slightly odd that previous versions of Kubuntu had no confusion with any of this, but at least things are up and running as expected now.
 
  


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
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 03:19 AM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - Newbie 3 12-11-2005 09:26 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM
How do I use GRUB to boot linux at grub prompt? Mustbox Linux - General 2 02-15-2005 02:01 PM
How do I use GRUB to boot linux at grub prompt? Trillseker Linux - General 5 06-19-2003 07:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:45 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