[PlanetCCRMA] redhat trouble with grub

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Wed Sep 29 20:05:01 2004


On Wed, 2004-09-29 at 18:08, Noah Garrett Wallach wrote:
> redhat-9.0
> 
> okay I am new to the grub loader.  I just installed the most recent kernel
> with caps 
> 
> --- snip ---
> 
> # apt-get -o RPM::Install-Options::=--oldpackage install
> planetccrma-core-redhat-smp
> Reading Package Lists... Done
> Building Dependency Tree... Done
> planetccrma-core-redhat-smp is already the newest version.
> 0 packages upgraded, 0 newly installed, 0 removed and 18 not upgraded.
> 
> --- snip ---
> 
> but there is no grub entry corresponding recently installed redhat kernel
> version 2.4.20-31.1.caps.rh90.ccrmasmp and there is no initrd file.
> 
> --- snip ---
> 
> -rw-r--r--    1 root     root      1134394 Apr 21 15:18
> vmlinuz-2.4.20-31.1.caps.rh90.ccrma
> -rw-r--r--    1 root     root      1220153 Apr 21 15:03
> vmlinuz-2.4.20-31.1.caps.rh90.ccrmasmp
> 
> --- snip ---

Just to be sure I would check that the kernel is actually installed,
"rpm -q -a | grep kernel" and see if it is there (should be, of course).
> and here is my current grub.conf
> 
> --- snip ---
> 
> # cat grub.conf
> # grub.conf generated by anaconda
> #
> # Note that you do not have to rerun grub after making changes to this file
> # NOTICE:  You have a /boot partition.  This means that
> #          all kernel and initrd paths are relative to /boot/, eg.
> #          root (hd0,0)
> #          kernel /vmlinuz-version ro root=/dev/sda2
> #          initrd /initrd-version.img
> #boot=/dev/sda
> default=0
> timeout=10
> splashimage=(hd0,0)/grub/splash.xpm.gz
> title Red Hat Enterprise Linux WS (2.4.21-20.ELsmp)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-20.ELsmp ro root=LABEL=/ hda=ide-scsi
>         initrd /initrd-2.4.21-20.ELsmp.img
> title Red Hat Enterprise Linux WS (2.4.21-20.EL)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-20.EL ro root=LABEL=/ hda=ide-scsi
>         initrd /initrd-2.4.21-20.EL.img
> title Red Hat Enterprise Linux WS (2.4.21-4.ELsmp)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-4.ELsmp ro root=LABEL=/ hda=ide-scsi
>         initrd /initrd-2.4.21-4.ELsmp.img
> title Red Hat Enterprise Linux WS-up (2.4.21-4.EL)
>         root (hd0,0)
>         kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/ hda=ide-scsi
>         initrd /initrd-2.4.21-4.EL.img
> 
> --- snip ---
> 
> what can I do about this?

Strange, do you remember if there were any error messages when you
installed the kernel? If the package is installed but there is no entry
in /boot/grub/grub.conf and no initrd it means that the post install
scripts somehow failed. There should have been messages printed. Maybe
because you are (apparently) running RedHat Enterprise things are
different enough that the kernel does not complete its installation
scripts. 

One way to find out for sure would be to erase the kernels and install
them paying attention to the postinstall messages (if any). 

-- Fernando