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.
|
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 |
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.
|
Quote:
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. |
The commands you'll need (from a Ubuntu terminal) are
Code:
sudo fdisk -l |
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 |
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). |
yes, you're right
yes. hd0 and hd1 are pata ide drives. i also have an internal sata and an external.
|
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. |
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 ???. |
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. |