Install the new linux kernel in ora Mode

Source: Internet
Author: User
Install the new linux kernel. Use the fedora method-general Linux technology-Linux programming and kernel information. For more information, see the following. Create the rpmbuild directory:
Cd ~
Cp-a/usr/src/redhat/rpmbuild
Echo '% _ topdir % (echo $ HOME)/rpmbuild'>. rpmmacros
Yum install fedora-rpmdevtools unidef
Fedora-buildrpmtree
Cd/usr/src
Wget http://download.fedora.redhat.co...-1.2798.fc6.src.rpm

# It seems that there is only this old thing now, so I get something from the development tree.

Wget http://download.fedora.redhat.co... 202. rc8.fc8. src. rpm
Rpm-ivh kernel-2.6.23-0.202.rc8.fc8.src.rpm
Cd ~ /Rpmbuild/SPECS/
Rpmbuild-bp kernel. spec
Cd/root/rpmbuild/BUILD/kernel-2.6.23rc8
Make menuconfig
Make rpm

Then you will ~ /Rpmbuild/SRPMS/directory to find a new src. rpm package
Of course, this src. rpm package is used to install the new src. rpm package after the patch is installed.

Install new kernel
Cd ~ /Rpmbuild/RPMS/i386
Rpm-ivh kernel-2.6.23rc8.i386.rpm
Mkinitrd/boot/initrd-2.6.23-rc8.img 2.6.23-rc8

Edit grub
Cd/boot/grub
Vi./grub. conf

In
Default = 2
Timeout = 5
Splashimage = (hd0, 0)/grub/splash.xpm.gz
Hiddenmenu

, Add
Title Fefora (2.6.23-rc5)
Root (hd0, 0)
Kernel/vmlinuz-2.6.23-rc5 ro root =/dev/VolGroup00/LogVol00 rhgb quiet
Initrd/initrd-2.6.23-rc5.img

In this way, shutdown-r now can see the new kernel in grub.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.