カーネルのアップグレード

  1. バックアップをとっておく。
  2. # apt-get install autoconf automake binutils gcc gettext kernel-package libncurse50-dev libtool linux-kernel-headers make module-init-tools procps e2fsprogs util-linux bzip2
  3. # apt-get install kernel-source-2.6.8
  4. # cd /usr/src
  5. /usr/src# tar jxvf kernel-source-2.6.8.tar.bz2
  6. /usr/src# ln -s kernel-source2.6.8 linux
  7. /usr/src# cp /boot/config-2.4.18-bf2.4 /usr/src/linux/.config
  8. /usr/src# cd linux
  9. /usr/src/linux# make oldconfig
  10. /usr/src/linux# make-kpkg --revision=Chandra2.6 kernel-image
  11. /usr/src/linux# cd ..
  12. /usr/src# dpkg -i kernel-image-2.6.8_Chandra2.6_i386.deb
  13. /usr/src# cd /boot/
  14. /boot# ls
  15. /boot# emacs /etc/lilo.conf
    lba32
    boot=/dev/hda
    root=/dev/hda2
    install=/boot/boot-menu.b
    map=/boot/map
    delay=50
    vga=0x314
    default=Linux
    
    image=/vmlinuz
    	label=Linux
    	read-only
    
    image=/vmlinuz.old
    	label=LinuxOLD
    	read-only
    	optional
    
  16. /boot# lilo -t
    Added Linux *
    Added LinuxOLD
    The boot sector and the map file have *NOT* been altered.
    
  17. /boot# lilo -v
    LILO version 22.5.9, Copyright (C) 1992-1998 Werner Almesberger
    Development beyond version 21 Copyright (C) 1999-2004 John Coffman
    Released 08-Apr-2004, and compiled at 15:30:00 on Aug 15 2004
    Debian GNU/Linux
    
    Reading boot sector from /dev/hda
    Using MENU secondary loader
    Calling map_insert_data
    
    Boot image: /vmlinuz -> boot/vmlinuz-2.6.8
    Added Linux *
    
    Boot image: /vmlinuz.old -> boot/vmlinuz-2.4.18-bf2.4
    Added LinuxOLD
    
    Writing boot sector.
    /boot/boot.0300 exists - no boot sector backup copy made.
    
  18. /boot# /sbin/lilo
    Added Linux *
    Added LinuxOLD
    
  19. /boot# reboot