Automatically compile and install the latest kernel using KernelCheck in Ubuntu

Posted by suvi under Kernel, Ubuntu

KernelCheck is a project that is designed to easily build the latest kernel for your distribution using the instructions provided in the Master Kernel Thread . This automated process is a fork of AutoKernel by Robert Wolterman (xtacocorex), Timothy Janssen (mentok), and Kristof Verbeken (PinguinZ). KernelCheck is currently licensed under the GNU General Public License.
Read [...]

No Comments

Reboot Linux box after a kernel panic

Posted by suvi under Kernel, Tricks

If you want the server to get rebooted automatically after kernel hit by a pain error message, try adding panic=N to /etc/sysctl.conf file.

It specify kernel behavior on panic. By default, the kernel will not reboot after a panic, but this option will cause a kernel reboot after N seconds. For example following boot parameter will force to reboot Linux after 10 seconds.
Open /etc/sysctl.conf file

# vi /etc/sysctl.conf

No Comments

Howto make partition changes visible to the kernel without reboot

Posted by suvi under Kernel, Other

Many system administrators may be in the habit of re-booting their systems to make partition changes visible to the kernel. With Linux, this is not usually necessary. The partprobe command, from the parted package, informs the kernel about changes to partitions.

No Comments

Recompile your kernel for a perfect fit

Posted by suvi under Kernel, Linux

After I wrote an article on optimizing disk performance,
some readers commented that tweaking settings was just part of the job.
They pointed out that you can get more speed if you also compile your
kernel, adjusting it optimally for your specific hardware and needs.
Compiling the kernel isn’t the challenge it used to be; nowadays the
process is streamlined, and you don’t have to do much but pick your
choices and key in some commands.

No Comments

A quick overview of Linux kernel crash dump analysis

Posted by suvi under Kernel

The Red Hat Crash Utility is a kernel-specific debugger. It is
usually used for performing postmortem system analysis when the system
panicked, locked up, or appears unresponsive. In this short article,
Eugene Teo will give a quick overview of how you can install crash and
how you can use it to get important information from the crash dump
files for debugging and root-cause analysis purposes.

Prerequisites

The crash utility has the following three prerequisites:

No Comments

Tips and tricks: Why do I see this message in my syslog: “kernel: VFS: Busy inodes after unmount. Self-destruct in 5 seconds. Ha

Posted by suvi under Kernel, Linux

Release Found: Red Hat Enterprise Linux 3 and Red Hat Enterprise Linux 4

There is a condition in both Red Hat Enterprise Linux 3 and Red Hat
Enterprise Linux 4 where the kernel fails to properly clean up inodes
after an NFS filesystem is unmounted. When this happens, the following
message is printed to the /var/log/messages file:

No Comments

Custom Linux Kernels with Debian and Fedora

Posted by suvi under Debian, Fedora, Kernel

Earlier this week we took a tour of the generic way of building custom Linux kernels. Today we’ll look some nice Debian shortcuts, and Fedora’s unique way of building custom kernels.

 
The Debian Way of Customizing Kernels

Debian’s kernel source packages are named linux-source-[version]. The current official source package versions are linux-source-2.6.18 (stable), linux-source-2.6.21 (testing and unstable), and linux-source-2.6.22 (unstable and experimental).

No Comments

Custom Linux Kernels Trim Fat and Tune Performance

Posted by suvi under Kernel

I have some shocking news: despite the astonishing
growth of Linux, there is a whole new generation of Linux users who
have never, ever compiled a kernel. How to account for this sad state
of affairs? Perhaps it’s because the distribution maintainers are
doing such fine jobs it’s not necessary. Maybe users just don’t know
that they can. Whatever the reasons, today we’re taking a tour of some

No Comments

Howto upgrade kernel(2.6.22-9-generic) in Feisty Fawn

Posted by suvi under Kernel, Ubuntu

Currently Feisty Fawn users (7.04) using the generic kernel (which is
2.6.20-16-generic). This tutorial will explain howto upgrade you to
kernel version 2.6.22-9-generic(as of 31JUL07).

First you need to add the Gutsy repository (this is only temporary to pull the new kernel)

echo ‘deb http://archive.ubuntu.com/ubuntu/ gutsy main restricted’ | sudo tee -a /etc/apt/sources.list

Update the source list using the following command

sudo apt-get update

you need to install the new kernel using the following command

No Comments

Upgrade/Compile linux kernel in Debian

Posted by suvi under Debian, Kernel

I never found good documentation on upgrading/compiling linux kernel in Debian, Most of the time I stuck in between and my running libs gets corrupted, then same story; Put new hard disk, Install latest Debian, mount old HDD and copy all the contents.

After reading/research documents in net, I setup my step-by-step Linux kernel up-gradation (Bash Script) in Debian. up-till now I upgraded more than 5 Debian kernels without any problem.
If you found anything wrong in this tutorial, please click here.

apt-get install kernel-package –yes

No Comments

/dev/hello_world: A Simple Introduction to Device Drivers under Linux

Posted by suvi under Kernel, Linux, Programming

Since the misty days of yore, the first step in learning a new programming language has been writing a program that prints "Hello, world!" (See the Hello World Collection for a list of more than 300 "Hello, world!" examples.) In this article, we will use the same approach to learn how to write simple Linux kernel modules and device drivers. We will learn how to print "Hello, world!" from a kernel module three different ways: printk(), a /proc file, and a device in /dev.

No Comments

How To Compile A Kernel - Debian Etch

Posted by suvi under Debian, Kernel

Each distribution has some specific tools to build a custom kernel
from the sources. This article is about compiling a kernel on a Debian
Etch system. It describes how to build a custom kernel using the latest
unmodified kernel sources from www.kernel.org (vanilla kernel)
so that you are independent from the kernels supplied by your
distribution. It also shows how to patch the kernel sources if you need
features that are not in there.

No Comments