Tuesday, October 30, 2012

Solution: kernel rebuild on redhat



Boot system from Linux CD and give linux rescue command on boot screen
linux rescue
Select language to English
Select language to English
Select Keyboard layout to US
Select Keyboard layout to US
Press enter on continue and it will search for linux on hard disk

We don't need networking for this operation so select no

Rescue mode will mount system image under the/mnt/sysimage folder press ok


now change chroot to/mnt/sysimage

mkdir /a        (creat /a dir)

cat /proc/sys/dev/cdrom/info :
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

    drive name:             hdc
    drive speed:            1
    drive # of slots:       1
    Can close tray:         1
    Can open tray:          1
    Can lock tray:          1
    Can change speed:       1
    Can select disk:        0

mount /dev/hdc /a       (so that cdrom is mount to /a)

cd  /a
rpm -ivh kernel-(whatever the kernel version)
 

 
Now reboot the system and remove Linux CD from CDROM



Have fun!!!


No comments:

Post a Comment