Re: Suse 9.1 Pro fails to boot



On Tue, 20 Jun 2006 04:48:15 GMT, Charlie Smith
<csmith001@xxxxxxxxxxxxx> wrote:

Woohoo - I made SOME progress tonight!

I managed to get the install cd to boot in the target machine.
Turns out the admin (that's me) made a big goof when he connected
the cd reader and cd writer. Removed the original reader from the
system and am now able to boot from cd again. Yeah!

Second problem - not able to boot from hard drive. Kind of got this
one fixed.

Once I booted from the install cd, I went thru the repair installed
system - the whole nine yards. It found a couple of minor problems
in filesystem and udev so I let it correct those.

Then it got to the bootloader section and I let it generate a new
grub menu.lst file. I took out the cd and tried to boot from the
drive. No go - still goes straight to the grub shell.

I checked all the files in my boot partition and everything looked
okay (permissions and links). So I tried entering the kernel and
initrd lines from menu.lst and it booted just fine.

My question now is why isn't grub able to read the menu.lst file
and present the menu like it supposed to?

BTW, I also ran fdisk -l to get the partition layout on the disk.

/dev/hda1 - swap
/dev/hda2 - root

Yep, that's it. /boot is in /dev/hda2 and grub is a subdirectory
of /boot.

Any ideas why grub can't or won't read it's menu.lst file?


Run grub and set the MBR to point to hda2
grub> root (hd0,1) #sets grub root to hda2
> setup (hd0) #write grub config to MBR of hda
> quit

For booting a kernel in hda2 (/boot) your grub stanza in menu.lst
should resemble this: (assuming you have initrd and vmlinuz linked to
the correct images)

:title SUSE Linux
: root (hd0,1)
: kernel /vmlinuz root=/dev/hda2 othercrap....
: initrd /initrd


Also, some grubs look for "grub.conf" instead of "menu.lst" in the
/boot/grub directory. You could try linking or copying menu.lst to
grub.conf

--
alistair
.



Relevant Pages

  • Re: GRUB, MBR and NTLDR confusion
    ... that GRUB can be loaded on to the boot partition instead of the MBR ... What you want is to install it to the MBR of /dev/hda. ...
    (Ubuntu)
  • Re: [SLE] Booting problem
    ... grub will not completly load, It shows Grub on the screen and then Grub ... install dvd,click install,click other,click boot to installed system. ... Loader and make sure you install the boot loader in the Master Boot Record. ...
    (SuSE)
  • Re: Adding FC5 to an XP computer -
    ... Ordinarily, I'd use GRUB to handle booting, too. ... to avoid altering the Windows installation in that situation. ... the installation is now running with Grub and boot on the mbr. ... The fc5 install is on the second drive, ...
    (Fedora)
  • Re: Grub on USB
    ... How can I install grub onto a USB drive so that I can have grub shell at ... Be advised that you may need an initrd to boot from a USB ...
    (comp.os.linux.misc)
  • Re: [SLE] grub refuses to grub
    ... Note before I had Suse 9.0 with Grub and with Suse 9,2 it doesn't work ... > for Windows and 60 gig HD for Linux, a regular CDROM and a CDRW. ... > which distro I try to install and have install Grub, ... > where the actual boot sector is, and I gather, where the actual Grub ...
    (SuSE)