Debian 6 kernel upgrades to understand and uninstall the old kernel

Source: Internet
Author: User
Tags bz2 parent directory

My kernel upgrade is from 2.6.32.5 to 2.6.38.2.

The beginning of these sections is followed by the following article:

http://blog.csdn.net/ctbinzi/article/details/6006931

Install the required software first, and download the latest kernel:
#apt-get Install kernel-package libncurses5-dev wget bzip2 make patch
#cd/USR/SRC
#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.36.tar.bz2
#tar-XJF linux-2.6.36.tar.bz2

The directory to switch to the new kernel
#cd linux-2.6.36

To save time, execute the following command to obtain configuration from the existing kernel
#make Oldconfig
After the execution of this command, depending on the new and old kernel differences, ask you some questions, if not sure, please use the default (directly press ENTER).
When the above steps are complete, execute the kernel configuration program
#make Menuconfig (There is a problem here and you don't know what menuconfig is doing.) But the general is not the tube. As long as the back two, load and save a bit

#make-kpkg--INITRD--append-to-version=-idea Kernel_image

(A lguest error occurred during the compilation, and the solution

Edit Documentation/lguest/makefile
Put
All:lguest
Change into
All

Enter make-kpkg--INITRD--append-to-version=-idea kernel_image Continue compiling

A bug about version occurred during the compilation, and the solution

Edit Include/linux/version.h, add a line of macro definitions

#define Uts_release 2.6.36-idea

Enter make-kpkg--INITRD--append-to-version=-idea kernel_image continue compiling)

The brackets seem to be useless.


The next thing to do:

Reference: http://linuxnotes.blog.163.com/blog/static/18809914920115712746966/


#cd. Returns the parent directory to view the generated installation package

#ls//List files in the directory to view installation packages

... linux-image-2.6.39_2.6.39-10.00.custom_i386.deb

#dpkg-I linux-image-2.6.39_2.6.39-10.00.custom_i386.deb//install new kernel

#mkinitramfs-o/boot/initrd.img-2.6.38.2//initrd boot file to generate a new kernel

#update-grub//Update grub Information

#reboot//Reboot the operating system to see the updated boot entry.

#uname-snr//View new kernel version information

Debian uninstall the old kernel:

Debian uninstall the old kernel first to see what old kernel, with the command:

dpkg--get-selections |grep Linux

If your kernel starts with kernel, change the top Linux to kernel, and then use

dpkg--purge--force-remove-essential linux-image-xxx

XXX is the version number of the kernel you want to uninstall. This completes.




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.