View previous topic :: View next topic |
Author |
Message |
galenjr Tux's lil' helper
Joined: 02 Aug 2004 Posts: 88 Location: Connecticut, USA
|
Posted: Thu Sep 09, 2004 11:45 pm Post subject: I screwed up |
|
|
I enabled some windows partition thing in my kernel adn now i get a kernel panic. I could fix it if i could boot. The liveCD wont boot on my ocmputer i had to install with knoppix. Anyone know if/how i can boot up with knoppix and recompile my kernel? I'd try it myself but im afraid ill screw it up more. HELP im scared. =[ |
|
Back to top |
|
|
Tsonn Guru
Joined: 03 Jun 2004 Posts: 550
|
Posted: Thu Sep 09, 2004 11:58 pm Post subject: |
|
|
If you boot with knoppix, you can chroot into your gentoo setup like you did during installation. That'll let you recompile the kernel. |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Thu Sep 09, 2004 11:59 pm Post subject: |
|
|
- boot with knoppix
- after knoppix is booted, lood whatever driver you need to get to your root partition
- after that make a mountpoint for gentoo (mkdir -p /mnt/gentoo)
- mount your root partition to /mnt/gentoo
- mount your boot partition to /mnt/gentoo/boot
- mount proc to /mnt/gentoo/proc (mount -t proc -o bind /proc /mnt/gentoo/proc)
- mount /dev to /mnt/gentoo/dev (mount -o bind /dev /mnt/gentoo/dev)
- chroot to gentoo (chroot /mnt/gentoo /bin/bash)
- update your environment variables (env-update)
- source the profile (source /etc/profile)
- change to your kernel directory (cd /usr/src/linux-<your-kernel-ver>)
- start menuconfig (menuconfig)
- do whatever change you need to do
- save and exit your kernel configuration
- compile the kernel
- install the kernel (don't forgett to copy it to /boot and change lilo or slilo or grub or whatever boot loader you use)
- exit from the chroot (exit)
- umount the devices (umount /mnt/gentoo/boot ; umount /mnt/gentoo/dev ; umount /mnt/gentoo/proc ; umount /mnt/gentoo)
- exit from knoppix (reboot)
- take out the knoppix cd
- start your gentoo again
|
|
Back to top |
|
|
galenjr Tux's lil' helper
Joined: 02 Aug 2004 Posts: 88 Location: Connecticut, USA
|
Posted: Fri Sep 10, 2004 12:04 am Post subject: |
|
|
alright thanks guys i wanted to make sure i wasnt gonna screw it up more. from now on im gonna have 2 kernels in grub one that works adn the testing one. =]. thanks again. <3 |
|
Back to top |
|
|
galenjr Tux's lil' helper
Joined: 02 Aug 2004 Posts: 88 Location: Connecticut, USA
|
Posted: Fri Sep 10, 2004 5:20 am Post subject: |
|
|
thank you steveb your directions worked great <3 |
|
Back to top |
|
|
|