LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 06-09-2008, 11:30 AM   #1
Boblangley
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
Question grub boot options? find file?


i have Ubuntu 8.04 installed as a dual boot with wxp. i love it, but am trying to simplify the restart sequence for my wife. after selecting ubuntu as the boot os, the system displays a file not found message and then shows a grub screen with a list of commands that all start with "find file". looking for the file menu.lst in several different locations. the entry that indicates /boot/grub/menu.lst is the only one i want to show (the only one that works.) is there a configuration file that should be edited? i haven't been able to find it so far.

Last edited by Boblangley; 06-09-2008 at 11:32 AM. Reason: punctuation
 
Old 06-09-2008, 12:29 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 177Reputation: 177
Try reinstalling grub to the MBR. Assuming that your MBR is locted on /dev/hda the command is:

sudo grub-install /dev/hda

-----------------
Steve Stites
 
Old 06-09-2008, 10:28 PM   #3
Boblangley
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Exclamation no change

i followed your directions, but nothing changed in the boot sequence. the command appeared to complete successfully, but i still have a screen that comes up with four possibilities for finding the grub menu.lst. only one will result in a boot.
 
Old 06-09-2008, 11:10 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,767

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Quote:
the entry that indicates /boot/grub/menu.lst is the only one i want to show (the only one that works.) is there a configuration file that should be edited?
It tells you there where the file is located, and name of the file. It's in /boot/grub directory, and the name is menu.lst.

To edit out the options that don't boot, you can either delete the entries or comment them out with a # symbol at the beginning of each line you don't want to show. Commenting out the lines is the safest way, because IF you find out later that you can correct them so that they do boot, you won't have to strain your brain trying to remember what the entries were.

To effect repairs of the non-booting lines, you would be best if you posted here the output of 'fdisk -l' and the contents of /boot/grub/menu.lst (just the menu entries that show on screen). Errors in the non-booting lines will become more obvious by studying those two files.
 
Old 06-10-2008, 12:31 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,230

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
The commands you'll need (from a Ubuntu terminal) are
Code:
sudo fdisk -l
egrep -v "(^#|^\s*$)" /boot/grub/menu.lst
(the latter justs removes all the rubbish Debian based distros insist on including in menu.lst)
 
Old 06-11-2008, 10:41 AM   #6
Boblangley
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
the output from fdisk -l is shown immediately below. the contents of menu.lst is shown at the bottom starting with ###. i appreciate the help.


bob@upstairs:~$ sudo fdisk -l
[sudo] password for bob:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1ca83749

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19457 156288321 7 HPFS/NTFS

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x81d30cb7

Device Boot Start End Blocks Id System
/dev/sdb1 2 60801 488376000 f W95 Ext'd (LBA)
/dev/sdb5 2 60801 488375968+ 7 HPFS/NTFS

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 9728 78140128+ 7 HPFS/NTFS

Disk /dev/sdd: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9c679c67

Device Boot Start End Blocks Id System
/dev/sdd2 2 2491 20000925 f W95 Ext'd (LBA)
/dev/sdd5 2 2382 19125351 83 Linux
/dev/sdd6 2383 2491 875511 82 Linux swap / Solari




#####contents of menu.lst is below:
default 0
timeout 10

title Ubuntu 8.04, kernel 2.6.24-18-generic
root (hd1,4)
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=35aa53ce-d1b6-4439-b1b5-8f654ac99181 ro quiet splash
initrd /boot/initrd.img-2.6.24-18-generic
quiet

title Other operating systems:
root

title Microsoft Windows XP Professional
root (hd0,0)
chainloader +1
savedefault
makeactive
 
Old 06-11-2008, 04:58 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,230

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
Do you happen to have a mix of P-ATA (i.e. IDE) and S-ATA disks by any chance ???.
If so, I may have bad news for you - I gave up trying to make this work, and moved off Ubuntu altogether on such a setup.
I opened a bug back in the 7.10 beta but the devs weren't interested. The initscripts are apparently to blame - seemingly goes all the way back to the Debian.
For a while I manually adjusted things, then it all got too hard and I moved on (a nice little quad-core - I needed something other than Vista on it).
 
Old 06-11-2008, 06:47 PM   #8
Boblangley
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
yes, you're right

yes. hd0 and hd1 are pata ide drives. i also have an internal sata and an external.
 
Old 06-12-2008, 08:01 PM   #9
Boblangley
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
still need help with GRUB

I'm going to try this again:

When I boot my computer, Grub displays the options listed in my /boot/grub/menu.lst file.

The options shown are:
Windows XP Professional
Ubuntu
Other
When Ubuntu is selected, a screen is presented that displays more or less as follows:
At top of page

find --set-root --ignore-floppies /ubuntu/install/boot/grub/menu.lst

then File not found. Press any key to continue.

then
find /ubuntu/disks/install/boot/grub/menu.lst
find /menu.lst
find /boot/grub/menu.lst (this is the only selection that boots)
find /grub/menu.lst
commandline
reboot
halt

Selecting any line except the third results in a "File not found. Press any key to continue." message.
Once /boot/grub/menu.lst is selected, another screen displays with "GRUB4DOS 0.4.3 2008-04-22, Memory 638k/1534m, CodeEnd:0x41228" shown at the top. Below this the three boot options, Ubuntu, Other, and Windows XP are again displayed. From there, Ubuntu will boot either when selected or after a brief delay.

I hope to be able to go directly to Ubuntu without dealing with the file not found issues, or having to select the OS a second time. Surely there is a way to avoid dealing with the file not found conditions. I have reinstalled Ubuntu, reinstalled GRUB on hd0, with no luck.
 
Old 06-12-2008, 09:56 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,230

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
I was going to ask you about the "file" commands you mentioned. What is tinybit's little baby (grub4dos) doing in the mix ???.
That option list doesn't match the menu.lst I got you to list out earlier - is that verbatim ???. What does boot.ini look like on the Windoze side ???.
 
Old 06-15-2008, 10:09 PM   #11
Boblangley
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
thanks anyway

thanks for your help, but while trying to figure out what you were ever so cryptically talking about, i stumbled upon a utility called wingrub that required every bit of 2 minutes to fix my problem. i recommend it highly. next time someone asks for help, try reading their posting before asking a sackful of dumb ass questions.
 
  


Reply

Tags
boot, grub, sequence, ubuntu


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
framebuffer/grub boot options 0pal_t0ad Linux - General 4 12-13-2004 12:48 PM
GRUB boot options. enyawix Linux - Software 2 12-08-2004 01:49 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-12-2004 11:40 PM
Hiding boot options with GRUB? kayhan Linux - Newbie 1 12-28-2003 04:48 PM


All times are GMT -5. The time now is 09:21 PM.

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