LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub boot options? find file? (https://www.linuxquestions.org/questions/linux-newbie-8/grub-boot-options-find-file-648055/)

Boblangley 06-09-2008 11:30 AM

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.

jailbait 06-09-2008 12:29 PM

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

Boblangley 06-09-2008 10:28 PM

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.

bigrigdriver 06-09-2008 11:10 PM

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.

syg00 06-10-2008 12:31 AM

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)

Boblangley 06-11-2008 10:41 AM

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

syg00 06-11-2008 04:58 PM

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).

Boblangley 06-11-2008 06:47 PM

yes, you're right
 
yes. hd0 and hd1 are pata ide drives. i also have an internal sata and an external.

Boblangley 06-12-2008 08:01 PM

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.

syg00 06-12-2008 09:56 PM

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 ???.

Boblangley 06-15-2008 10:09 PM

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. ;)


All times are GMT -5. The time now is 01:58 AM.