[PlanetCCRMA] redhat trouble with grub

Noah Garrett Wallach logic@enabled.com
Wed Sep 29 23:08:01 2004


On 29 Sep 2004 20:04:35 -0700, Fernando Pablo Lopez-Lezcano wrote
> 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).


might need some more hand holding here - what is the appropriate way to remove
all the installed ccrma kernels?

here is what I did:

--- snip ---

[root@dhcp-183-1-168-192 boot]# rm *2.4.20-31.1.caps.rh90.ccrma
rm: remove regular file `config-2.4.20-31.1.caps.rh90.ccrma'? y
rm: remove regular file `module-info-2.4.20-31.1.caps.rh90.ccrma'? yy
rm: remove regular file `System.map-2.4.20-31.1.caps.rh90.ccrma'? y
rm: remove regular file `vmlinux-2.4.20-31.1.caps.rh90.ccrma'? y
rm: remove regular file `vmlinuz-2.4.20-31.1.caps.rh90.ccrma'? y
[root@dhcp-183-1-168-192 boot]# rm *2.4.20-31.1.caps.rh90.ccrma
rm: cannot lstat `*2.4.20-31.1.caps.rh90.ccrma': No such file or directory
[root@dhcp-183-1-168-192 boot]# rm *2.4.20-31.1.caps.rh90.ccrmasmp
rm: remove regular file `config-2.4.20-31.1.caps.rh90.ccrmasmp'? y
rm: remove regular file `module-info-2.4.20-31.1.caps.rh90.ccrmasmp'? y
rm: remove regular file `System.map-2.4.20-31.1.caps.rh90.ccrmasmp'? y
rm: remove regular file `vmlinux-2.4.20-31.1.caps.rh90.ccrmasmp'? y
rm: remove regular file `vmlinuz-2.4.20-31.1.caps.rh90.ccrmasmp'? y
[root@dhcp-183-1-168-192 boot]# 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.
[root@dhcp-183-1-168-192 boot]#

--- snip ---

cheers,

noah




> 
> -- Fernando
> 
> _______________________________________________
> PlanetCCRMA mailing list
> PlanetCCRMA@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/planetccrma