Difference between revisions of "Kernel Panic"
Jump to navigation
Jump to search
(Created page with " mount /dev/sda3 /mnt/gentoo mount /dev/sda1 /mnt/gentoo/boot mount -t proc none /mnt/gentoo/proc mount -o bind /dev /mnt/gentoo/dev chroot /mnt/gentoo /bin/bash env-update …") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | mount /dev/sda3 /mnt/gentoo | + | If you can't boot with your kernel, you will need to adjust your settings, recompile the kernel, copy the new kernel to your boot partition and try again. Insert your install CD so you can boot to a working configuration. Once you reach a prompt, mount your partitions, devices and processes. |
| − | mount /dev/sda1 /mnt/gentoo/boot | + | '''#''' mount /dev/sda3 /mnt/gentoo |
| − | mount -t proc none /mnt/gentoo/proc | + | '''#''' mount /dev/sda1 /mnt/gentoo/boot |
| − | mount -o bind /dev /mnt/gentoo/dev | + | '''#''' mount -t proc none /mnt/gentoo/proc |
| − | chroot /mnt/gentoo /bin/bash | + | '''#''' mount -o bind /dev /mnt/gentoo/dev |
| − | env-update && source /etc/profile | + | Chroot into the system environment. |
| − | cd /usr/src/linux | + | '''#''' chroot /mnt/gentoo /bin/bash |
| − | make menuconfig | + | '''#''' env-update && source /etc/profile |
| − | make && make modules_install | + | Change your kernel settings. |
| − | cp arch/x86_64/boot/bzImage /boot/kernel | + | '''#''' cd /usr/src/linux |
| + | '''#''' make menuconfig | ||
| + | Compile your new kernel and copy the new image to your boot drive. | ||
| + | '''#''' make && make modules_install | ||
| + | '''#''' cp arch/x86_64/boot/bzImage /boot/kernel | ||
| + | Exit from the system environment, umount your resources and reboot the system. | ||
| + | '''#''' exit | ||
| + | '''#''' umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo | ||
| + | '''#''' reboot | ||
Latest revision as of 18:45, 7 January 2011
If you can't boot with your kernel, you will need to adjust your settings, recompile the kernel, copy the new kernel to your boot partition and try again. Insert your install CD so you can boot to a working configuration. Once you reach a prompt, mount your partitions, devices and processes.
# mount /dev/sda3 /mnt/gentoo # mount /dev/sda1 /mnt/gentoo/boot # mount -t proc none /mnt/gentoo/proc # mount -o bind /dev /mnt/gentoo/dev
Chroot into the system environment.
# chroot /mnt/gentoo /bin/bash # env-update && source /etc/profile
Change your kernel settings.
# cd /usr/src/linux # make menuconfig
Compile your new kernel and copy the new image to your boot drive.
# make && make modules_install # cp arch/x86_64/boot/bzImage /boot/kernel
Exit from the system environment, umount your resources and reboot the system.
# exit # umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo # reboot