Difference between revisions of "Kernel Panic"

From gr0x0rd
Jump to navigation Jump to search
 
Line 13: Line 13:
 
  '''#''' make && make modules_install
 
  '''#''' make && make modules_install
 
  '''#''' cp arch/x86_64/boot/bzImage /boot/kernel
 
  '''#''' cp arch/x86_64/boot/bzImage /boot/kernel
Umount your resources and reboot the system.
+
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
 
  '''#''' umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo
 
  '''#''' reboot
 
  '''#''' 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