Monday, November 12, 2012

How-to Update Linux Gentoo Kernel with genkernel Easy Guide

The Guide Show How-to Updating the Linux Gentoo Kernel Using the Genkernel Package/Tool.

To Make the Entire Process Easier to Visualize and Retain the Article Includes the Basic Screenshots of the Essentials Steps Involved.

The Content and Details are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut more Easy & Digestive ;)

gnomePenguin Gentoo
  1. Open a Terminal Window
  2. Download Latest Kernel Sources
    sudo su

    First it's Best to Update you Portage Collection with

    emerge --sync

    Then proceed to Download the Kernel Sources

    emerge kernel-sources
  3. Install or Update genkernel Package
    emerge genkernel
  4. Updating Symlink to Kernel Sources
    unlink /usr/src/linux
    cd /usr/src
    ln -s ./linux-3.<X.Y>-gentoo /usr/src/linux
  5. Generate New Kernel and Initramfs
    genkernel all

    Keep Waiting Because the Entire Generation Process should Take About 1 Hour...

    After you Find the Freshly Generated Kernel and Initramfs Into /boot

  6. Update Grub Consequently
    nano -w /boot/grub/grub.conf

    Inserting Something Like:

    title Gentoo Linux 3.<X.Y>
    root (hd0,0)
    kernel /boot/kernel-genkernel-<-arch-3.X.Y>-gentoo real_root=/dev/sda<Z>
    initrd /boo/initramfs-genkernel-<-arch-3.X.Y>-gentoo
    

    After you Should be Able to Boot Into Gentoo with the Newly Updated Kernel :)

  7. If you have Problems During New Kernel Installation:

    Gentoo Kernel Troubleshooting