View previous topic :: View next topic |
Author |
Message |
alok n00b
Joined: 05 Mar 2004 Posts: 38 Location: Austin, TX
|
Posted: Fri Mar 05, 2004 4:45 am Post subject: Compiling new kernel with 2004.0 for a broken 1.4 install |
|
|
I tried to install gentoo about two weeks back with the 1.4 cd's, and I mucked up my kernel (gentoo-sources) quite a bit. I was wondering if it was possible to use the 2004.0 live cd to get a new 2.6 kernel (gentoo-dev-sources) up and running.
If this is possible, I would like to know the commands to get me into my existing gentoo install to compile my new kernel.
Thanks a lot.
-Alok |
|
Back to top |
|
|
Tabriz n00b
Joined: 17 Feb 2004 Posts: 51
|
Posted: Fri Mar 05, 2004 4:55 am Post subject: |
|
|
Honestly, if I were you, I'd just start over from scratch...
If you have an internet connection when you're installing I highly recommend that you just chroot into your install, run an emerge sync, then emerge the gentoo-dev-sources. |
|
Back to top |
|
|
alok n00b
Joined: 05 Mar 2004 Posts: 38 Location: Austin, TX
|
Posted: Fri Mar 05, 2004 4:58 am Post subject: |
|
|
The live cd's do auto configure my network settings, and I was planning to chroot into my install to get the new kernel going. I just forgot the commands to mount everything and whatnot. How exactly do I chroot into my install? |
|
Back to top |
|
|
Tabriz n00b
Joined: 17 Feb 2004 Posts: 51
|
Posted: Fri Mar 05, 2004 5:01 am Post subject: |
|
|
when you boot off the live CDs mount your root partition and boot (you'll need to update your grub.conf if you're using grub)
Code: | mount /dev/hdXX /mnt/gentoo
mount /dev/hdXX /mnt/gentoo/boot
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile |
from there you can perform any maintenance you want on your install remember to replace the hdXX with the proper harddrive and partition. |
|
Back to top |
|
|
alok n00b
Joined: 05 Mar 2004 Posts: 38 Location: Austin, TX
|
Posted: Fri Mar 05, 2004 5:03 am Post subject: |
|
|
Do I not need to mount proc? |
|
Back to top |
|
|
Tabriz n00b
Joined: 17 Feb 2004 Posts: 51
|
Posted: Fri Mar 05, 2004 5:04 am Post subject: |
|
|
I'm not sure, you might want to mount it just to be on the safe side. I don't recall ever doing it myself, but that doesn't mean I was right. |
|
Back to top |
|
|
alok n00b
Joined: 05 Mar 2004 Posts: 38 Location: Austin, TX
|
Posted: Fri Mar 05, 2004 5:08 am Post subject: |
|
|
Okay, sounds good. You don't think there will be a problem with the fact that I would be chroot-ing in with the 2004.0 cd's on a 1.4 install? |
|
Back to top |
|
|
Tabriz n00b
Joined: 17 Feb 2004 Posts: 51
|
Posted: Fri Mar 05, 2004 5:11 am Post subject: |
|
|
It shouldn't matter. Chroot can be used even from one distro to another (it's rather typical for someone to use knoppix to chroot into their broken distro install) |
|
Back to top |
|
|
|