Re: Grub boots from command line but not menu



On Fri, 24 Feb 2006 08:01:16 -0700, Douglas Mayne wrote:


I wrote about grub and an idea for the layout of multibooting with more
than one Linux distribution here:
http://groups.google.com/group/comp.os.linux.setup/msg/17d3cfcff0cf2d0f

Notice: That link is the start of the thread.


I guess that this will have to stop working then, because there is no
grub, or lilo installed in the Slackware partition. It's really a shame,
as it's worked so well up until now.

title Slackware 9.1 - slack partition
kernel (hd0,8)/boot/vmlinuz root=/dev/hda9 vga=788 hdb=ide-scsi hdd=ide-scsi

title Slackware 9.1 - slack partition 2.4.22
kernel (hd0,8)/boot/vmlinuz-adaptec.s-2.4.22 root=/dev/hda9 vga=788 hdb=ide-scsi hdd=ide-scsi

[root@fatman boot]# ls -l
total 2752
-rw-r--r-- 1 root root 1404802 Jan 15 2004 vmlinuz
-rw-r--r-- 1 root root 1404802 Jan 15 2004 vmlinuz-adaptec.s-2.4.22
[root@fatman boot]#

You will note a complete lack of a grub directory, and, obviously, any
files therein. No initrd either, as that's the Slack way.

title PCLinuxOS
kernel (hd0,11)/boot/vmlinuz root=/dev/hda12 devfs=mount hdb=ide-scsi hdd=ide-scsi vga=788 splash=verbose show0pts
initrd (hd0,11)/boot/initrd.img

If the above had installed a boot loader, it would have been lilo, but
this grub stanza does the job instead. Contents of the /boot directory
below.

[root@fatman boot]# ls -l
total 2668
-rw-r--r-- 1 root root 512 Dec 9 2003 boot.0300
-rw-r--r-- 1 root root 512 Dec 13 2003 boot.0800
lrwxrwxrwx 1 root root 24 Dec 18 03:17 config -> config-2.4.23-2.tmb.2mdk
-rw-r--r-- 1 root root 53039 Dec 18 2003 config-2.4.23-2.tmb.2mdk
-rw-r--r-- 1 root root 5032 Jan 4 2004 diag1.img
-rw-r--r-- 1 root root 16796 Jan 4 2004 diag2.img
-rw-r--r-- 1 root root 180641 Dec 20 2003 initrd-2.4.23-2.tmb.2mdk.img
lrwxrwxrwx 1 root root 28 Apr 22 2004 initrd.img -> initrd-2.4.23-2.tmb.2mdk.img
lrwxrwxrwx 1 root root 32 Dec 18 03:17 kernel.h -> /boot/kernel.h-2.4.23-2.tmb.2mdk
-rw-r--r-- 1 root root 537 Dec 20 2003 kernel.h-2.4.23-2.tmb.2mdk
drwx------ 2 root root 4096 Dec 12 2003 lost+found/
-rw------- 1 root root 251904 Jan 15 2004 map
lrwxrwxrwx 1 root root 15 Apr 22 2004 message -> message-graphic
-rw-r--r-- 1 root root 183517 Jan 22 2004 message-graphic
-rw-r--r-- 1 root root 132 Dec 9 2003 message-text
lrwxrwxrwx 1 root root 28 Apr 22 2004 System.map -> System.map-2.4.23-2.tmb.2mdk
-rw-r--r-- 1 root root 617975 Dec 18 2003 System.map-2.4.23-2.tmb.2mdk
-rw-r--r-- 1 root root 256 Dec 9 2003 us.klt
lrwxrwxrwx 1 root root 25 Apr 22 2004 vmlinuz -> vmlinuz-2.4.23-2.tmb.2mdk
-rw-r--r-- 1 root root 1358399 Dec 18 2003 vmlinuz-2.4.23-2.tmb.2mdk
[root@fatman boot]#

Lots of extra junk it there, but again no grub directory.

Grub needs to be installed exactly once, by one OS. All other additional
OS need only have a stanza added to the single menu.lst used by that
single installation of grub. If there is a separate boot partition, it
will be found in /grub/menu.lst. If there is no boot partition, it will be
found in /boot/grub/menu.lst on the partition of the OS from which grub
was installed.

For Red Hat/Fedora menu.lst will be renamed grub.conf.

As you choose to chainload multiple grub installations, I can see why
you'd be confused about how grub actually works. I have one grub, on a
boot partition, with multiple stanzas for the various OSs, seven at
present, and all boot just fine. If OP has the problem that he states,
there is most probably a syntax error in the Slackware stanza in his
menu.lst.

--
imotgm
"Lost? Lost? I've never been lost... Been a tad confused for a
month or two, but never lost."


.



Relevant Pages

  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: XP reinstallation woes on Multiboot system
    ... original installation a breeze.Was I ever wrong! ... I mean the moment the yellow progress bar in Setup is Copying Files ... You need to be *very* quick to catch it, if you want to Boot into any ... & what Partition are you choosing to do the Install onto? ...
    (uk.people.silversurfers)
  • Re: microsoft xp unable to log on
    ... separate partition and try copying your data from your current setup to the ... Assuming your system is set to boot from the CD-ROM drive, ... To Repair a Windows XP Installation using Recovery Console press R. ... can delete, create and format partitions. ...
    (microsoft.public.windowsxp.accessibility)
  • Re: Partition Issue
    ... question is how to combine hdb into a single partition. ... I use 16 GB for 10.0 installation, and 5 GB is still free, and there is a ... Than you have boot loader grub that has it's own pointers listed ...
    (alt.os.linux.suse)
  • Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesnt work
    ... grub is installed on the /root partition, which is the first partition on hdc: hdc1, or in grub notation. ... Stage1 is the unpatched 512-byte file, that is patched and copied to the boot record during setup. ... This byte is initialized to 0xff in the stage1 file, but patched to 0x81 in your setup, to say "we are booting from disk." ...
    (comp.os.linux.setup)