Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I screwed up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
galenjr
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 88
Location: Connecticut, USA

PostPosted: Thu Sep 09, 2004 11:45 pm    Post subject: I screwed up Reply with quote

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
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Thu Sep 09, 2004 11:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
steveb
Advocate
Advocate


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Thu Sep 09, 2004 11:59 pm    Post subject: Reply with quote

  • 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
View user's profile Send private message
galenjr
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 88
Location: Connecticut, USA

PostPosted: Fri Sep 10, 2004 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message
galenjr
Tux's lil' helper
Tux's lil' helper


Joined: 02 Aug 2004
Posts: 88
Location: Connecticut, USA

PostPosted: Fri Sep 10, 2004 5:20 am    Post subject: Reply with quote

thank you steveb your directions worked great <3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum