// 如果内核不能启动的话,重新编译内核
Boot from the Install CD and wait until you receive a prompt
1.We first mount all partitions:
# mount /dev/sda3 /mnt/gentoo
# mount /dev/sda1 /mnt/gentoo/boot
# swapon /dev/sda2
# mount -t proc none /mnt/gentoo/proc
// #mount -t proc proc /mnt/gentoo/proc
// #mount --rbind /dev /mnt/gentoo/dev
2.Then we chroot into our Gentoo environment and configure the kernel:
# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile
# cd /usr/src/linux
# make menuconfig
3.Now (de)select anything you have (de)selected wrongly at your
previous attempt. Then quit and compile your kernel:
# make && make modules_install
// make -j4
// make modules_install
4.Now copy over your bzImage file, overwriting your previous one:
# cp arch/i386/boot/bzImage /boot/<kernel_name>
5.If you use LILO, rerun lilo -- GRUB users should skip this:
# /sbin/lilo
6.Now exit the chroot and reboot.
# exit
# umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo
# reboot
Boot from the Install CD and wait until you receive a prompt
1.We first mount all partitions:
# mount /dev/sda3 /mnt/gentoo
# mount /dev/sda1 /mnt/gentoo/boot
# swapon /dev/sda2
# mount -t proc none /mnt/gentoo/proc
// #mount -t proc proc /mnt/gentoo/proc
// #mount --rbind /dev /mnt/gentoo/dev
2.Then we chroot into our Gentoo environment and configure the kernel:
# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile
# cd /usr/src/linux
# make menuconfig
3.Now (de)select anything you have (de)selected wrongly at your
previous attempt. Then quit and compile your kernel:
# make && make modules_install
// make -j4
// make modules_install
4.Now copy over your bzImage file, overwriting your previous one:
# cp arch/i386/boot/bzImage /boot/<kernel_name>
5.If you use LILO, rerun lilo -- GRUB users should skip this:
# /sbin/lilo
6.Now exit the chroot and reboot.
# exit
# umount /mnt/gentoo/proc /mnt/gentoo/boot /mnt/gentoo
# reboot