Simon -
I performed the tasks as outlined and here are the contents of /boot:
/boot/: total 25121 drwxr-xr-x 5 root root 9216 Mar 9 10:31 . drwxr-xr-x 24 root root 4096 Jan 24 08:34 .. -rw-r--r-- 1 root root 51676 Feb 17 22:41 config-2.6.9-100.EL drwxr-xr-x 2 root root 1024 Mar 9 10:31 grub -rw-r--r-- 1 root root 444812 May 5 2007 grub-0.95-3.8.i386.rpm -rw-r--r-- 1 root root 1343054 Mar 9 10:29 initrd-2.6.9-100.EL.img -rw-r--r-- 1 root root 13409764 Feb 18 06:25 kernel-2.6.9-100.EL.i686.rpm drwx------ 2 root root 12288 Jan 12 2007 lost+found -rw-r--r-- 1 root root 9371 Aug 12 2006 message -rw-r--r-- 1 root root 9371 Aug 12 2006 message.ja -rw-r--r-- 1 root root 7919724 Aug 13 2006 redhat-logos-1.1.26-1.centos4.4.noarch.rpm -rw-r--r-- 1 root root 67797 Feb 17 22:41 symvers-2.6.9-100.EL.gz -rw-r--r-- 1 root root 770652 Feb 17 22:41 System.map-2.6.9-100.EL drwx------ 2 root root 9216 Mar 9 10:03 .Trash-root -rw-r--r-- 1 root root 1538264 Feb 17 22:41 vmlinuz-2.6.9-100.EL
/boot/grub: total 345 drwxr-xr-x 2 root root 1024 Mar 9 10:31 . drwxr-xr-x 5 root root 9216 Mar 9 10:31 .. -rw-r--r-- 1 root root 82 Mar 8 17:39 device.map -rw-r--r-- 1 root root 7956 Mar 8 17:40 e2fs_stage1_5 -rw-r--r-- 1 root root 7684 Mar 8 17:40 fat_stage1_5 -rw-r--r-- 1 root root 6996 Mar 8 17:40 ffs_stage1_5 -rw------- 1 root root 599 Mar 9 10:31 grub.conf -rw-r--r-- 1 root root 7028 Mar 8 17:40 iso9660_stage1_5 -rw-r--r-- 1 root root 8448 Mar 8 17:40 jfs_stage1_5 -rw------- 1 root root 4240 Mar 8 20:24 menu.lst -rw-r--r-- 1 root root 7188 Mar 8 17:40 minix_stage1_5 -rw-r--r-- 1 root root 9396 Mar 8 17:40 reiserfs_stage1_5 -rw-r--r-- 1 root root 3605 Aug 12 2006 splash.xpm.gz -rw-r--r-- 1 root root 512 Mar 8 17:45 stage1 -rw-r--r-- 1 root root 103688 Mar 8 17:45 stage2 -rw-r--r-- 1 root root 67701 Mar 8 18:30 symvers-2.6.9-89.35.1.EL.gz -rw-r--r-- 1 root root 68477 Mar 8 18:30 symvers-2.6.9-89.35.1.ELsmp.gz -rw-r--r-- 1 root root 7272 Mar 8 17:40 ufs2_stage1_5 -rw-r--r-- 1 root root 6612 Mar 8 17:40 vstafs_stage1_5 -rw-r--r-- 1 root root 9308 Mar 8 17:40 xfs_stage1_5
/boot/lost+found: total 22 drwx------ 2 root root 12288 Jan 12 2007 . drwxr-xr-x 5 root root 9216 Mar 9 10:31 ..
/boot/.Trash-root: total 19 drwx------ 2 root root 9216 Mar 9 10:03 . drwxr-xr-x 5 root root 9216 Mar 9 10:31 ..
On 3/9/2011 12:23 AM, Simon Matter wrote:
I inadvertently missed using the list...here are my recent messages.
As Nico suggested, download the kernel but also grub and redhat-logos, like so wget http://mirrors.kernel.org/centos/4.9/updates/i386/RPMS/kernel-2.6.9-100.EL.i... wget http://mirrors.kernel.org/centos/4.9/os/i386/CentOS/RPMS/redhat-logos-1.1.26... wget http://mirrors.kernel.org/centos/4.9/os/i386/CentOS/RPMS/grub-0.95-3.8.i386....
Then do a
rpm -Uvh --replacepkgs --replacefiles kernel-2.6.9-100.EL.i686.rpm redhat-logos-1.1.26-1.centos4.4.noarch.rpm grub-0.95-3.8.i386.rpm
And the show us the contents of 'ls -laR /boot' and 'cat /etc/grub.conf'
Simon
On 3/8/2011 8:39 PM, Nico Kadel-Garcia wrote:
On Tue, Mar 8, 2011 at 11:31 PM, Todd Carytodd@aristesoftware.com wrote:
reinstall is not an option for yum. I ran "yum install kernel" and it completed without errors however there are no links created.
Oh, dear. Can you grab the RPM and do "rpm -U -replacepkgs [kernel-whatver].rpm"? You should be able to use "yum remove" on the old kernel packages, consistent with freeing up the space, and now install your new kernel with yum.
Would this be the correct ln command for vmlinuz-2.6.9-89.35.1
# /boot/vmlinuz-2.6.9-89.35.1 /boot/vmlinuz
Todd
On 3/8/2011 7:04 PM, Nico Kadel-Garcia wrote:
On Tue, Mar 8, 2011 at 9:58 PM, Todd Carytodd@aristesoftware.com wrote:
I started a new thread since the original one is getting rather long.
I have retrieved the files I deleted in /boot and /boot/grub, however I need to make links for
/boot/System.map (System.map -> System.map-2.6.9-89.35.1) /boot/vmlinuz (vmlinuz -> vmlinuz-2.6.9-89.35.1) /boot/grub/menu.lst (menu.lst -> ./grub.conf)
Instead, re-install your kernel. "yum reinstall kernel". This should regenerate your symlinks correctly, except possibly the grub.conf.
If it was not so important to get it correct, I would appreciate the syntax for the command. Usually I would figure it out.
Since I have restored the files (I will double check to make sure they are all there), do I need to run grub-install?
i think yes. The old location of the boot loader is listed in /boot/grub/grub.conf, and should be used as the argument to that command. grub is much smarter than LILO used to be, but I think the bootstrap procedure relies on knowing details of where the fiddly bits of grub live on the relevant ex2 compatible filesytem.
My apologies for bothering everyone with such a dumb error on my part.
Todd
-- Ariste Software Petaluma, CA 94952
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Ariste Software Petaluma, CA 94952
-- Ariste Software Petaluma, CA 94952
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos