ubuntu8.10手动编译安装内核linux-2.6.27.7

$ sudo su
$ cd ~/Desktop
$ cp linux-2.6.27.7.tar.gz /usr/src/
$ cd /usr/src/linux-2.6.27.7
$ make mrproper
$ make menuconfig
$ make -j2
$ make install
$ make modules_install
$ ln -s /boot/vmlinuz-2.6.27.7 /vmlinuz-2.6.27.7
$ mkinitramfs -o /boot/init.img-2.6.27.7 /lib/modules/2.6.27.7
$ ln -s /boot/init.img-2.6.27.7 /init.img-2.6.27.7
$ gedit /boot/grub/menu.lst

添加如下信息:("uuid"和"root"可以拷贝原来的配置信息)
title linux kernel 2.6.27.7
uuid bdce929d-3c0b-4f10-aeb7-76b0fb8b62cd
kernel /vmlinuz-2.6.27.7 root=UUID=1d668bc0-d6b1-4798-8173-b05b65e925e7 ro quiet splash
initrd /initrd.img-2.6.27.7
quiet

title linux kernel 2.6.27.7 (recovery mode)
uuid bdce929d-3c0b-4f10-aeb7-76b0fb8b62cd
kernel /vmlinuz-2.6.27.7 root=UUID=1d668bc0-d6b1-4798-8173-b05b65e925e7 ro single
initrd /initrd.img-2.6.27.7

你可能感兴趣的:(ubuntu)