RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Installation of deb kernel in Debian chroot environment

Article Index
1. Make directory
2. Mount
3. Install kernel

Here are simple steps on how to install custom build or existing Debian kernel within a chroot environment. In this example we do not install a new version of Debian in chroot environment but we use the existing installation. Let's create directory for a chroot environment:

1. Make directory

# mkdir -p /mnt/chroot

First we need to mount a partition with existing Debian installation. In our case a / partition of existing installation is /dev/hdb1 .

# mount  /dev/hdb1 /mnt/chroot

Next we need to bind hardware with new chroot environment. The next commands will make sure that connected hardware works otherwise update-grub may not function properly.

2. Mount

# mount -o bind /proc /mnt/chroot/proc
# mount -o bind /proc /mnt/chroot/dev

Now we are ready to enter chroot environment

chroot

# chroot /mnt/chroot

3. Install kernel

let's install kernel:

/# dpkg -i linux-image-2.6.26-2-486_2.6.26-21lenny4_i386.deb
Selecting previously deselected package linux-image-2.6.26-2-486.
(Reading database ... 12686 files and directories currently installed.)
Unpacking linux-image-2.6.26-2-486 (from linux-image-2.6.26-2-486_2.6.26-21lenny4_i386.deb) ...
Done.
Setting up linux-image-2.6.26-2-486 (2.6.26-21lenny4) ...
Running depmod.
Running mkinitramfs-kpkg.
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.26-2-686
Found kernel: /boot/vmlinuz-2.6.26-2-486
Updating /boot/grub/menu.lst ... done

Share this linux post:

Submit Installation of deb kernel in Debian chroot environment in Delicious Submit Installation of deb kernel in Debian chroot environment in Digg Submit Installation of deb kernel in Debian chroot environment in FaceBook Submit Installation of deb kernel in Debian chroot environment in Google Bookmarks Submit Installation of deb kernel in Debian chroot environment in Stumbleupon Submit Installation of deb kernel in Debian chroot environment in Technorati Submit Installation of deb kernel in Debian chroot environment in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download