Debian system upgrade system kernel

Source: Internet
Author: User
The experience in this article is based on the following Environment: The original Debian version is: DebianGNU/Linux3.1 and the original kernel version is 2.6.8-2-686. the download path of the new kernel version is 2.6.15.6: /tmp references:/usr/share/doc/kernel-package/README.gz about this document :/*****************

This article is based on the following environment:

The original Debian version is: Debian GNU/Linux 3.1.

The original kernel version is 2.6.8-2-686.

The downloaded new kernel version is 2.6.15.6.

The storage path of the downloaded file is/tmp.

Reference:/usr/share/doc/kernel-package/README.gz

About this document:

/*************************************** ******************************

* Filename: Upgrade your Debian Linux kernel to the latest stable version.

* Purpose: Kernel upgrade experience

* Wrote by: zhoulifa (

[Email = zhoulifa@163.com] zhoulifa@163.com [/email]

) Zhou Lifa (

Http://zhoulifa.bokee.com

)

Linux enthusiasts Linux knowledge disseminators sohowhose developers are best at C language

* Date time: 2006-03-16 23:55:00

* Note: Anyone can use these documents at will, including your commercial use.

* But follow the GPL

**************************************** *****************************/

The latest stable version of the Linuxkernel is: 2.6.15.6

Step 1: You have to go

Http://www.kernel.org

Download the latest Linux kernel, 2.6.15.6 is

Http://www.kernel.org/pub/linux/ker....6.15.6.tar.bz2

Other versions can be obtained from here.

Http://www.kernel.org/pub/linux/kernel

Download.

Step 2: decompress your Kernel. if the downloaded kernel file is stored in the/tmp Directory, run the following command:

Cd/tmp

Tar-xjvf linux-2.6.15.6.tar.bz2

The/tmp/linux-2.6.15.6 directory will be generated after decompression

Step 3 (a) copy the current configuration file to the directory where the new kernel is located, and enter the following command:

Install the build-essential package. Otherwise, an Error occurs: make [1]: *** [scripts/basic/fixdep] Error 1.

D/tmp/linux-2.6.15.6

Cp/boot/config-2.6.8-2-686. config

Step 3 (B) re-compile your kernel and enter the following command:

Make-kpkg clean

Make-kpkg kernel_image

This command runs for a long time and generates a deb file in the/tmp directory.

Kernel-image-2.6.15.6_10.00.Custom_i386.deb

Step 4: install the new kernel and run the following command:

Cd/tmp

Dpkg ikernel-image-2.6.15.6_10.00.Custom_i386.deb

This command also generates the/lib/modules/2.6.15.6 Directory

Step 5: generate the initrd. imgfile and enter the following command:

Mkinitrd-o initrd. img-2.6.16.11/lib/modules/2.6.16.11

If the following error is reported:

-Bash: mkinitrd: command not found

You need to: apt-get install initrd-tools

Error:

Find: warning: you have specified the-mindepth option after a non-option argument-type, but options arenot positional (-mindepth affects tests specified before it as wellas those specified after it ). please specify options before otherarguments.

... * 3

Solution:

Modify:

---/Usr/sbin/mkinitrd

-Find/proc/scsi-type d-mindepth 1-maxdepth 1 \

+ Find/proc/scsi-mindepth 1-maxdepth1-type d \

This command generates the initrd. img-2.6.15.6 file in the/boot directory

Step 6: update Grub and enter the following command:

Update-grub

OK. restart your computer to enjoy your results.

Related Article

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.