Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling new kernel with 2004.0 for a broken 1.4 install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
alok
n00b
n00b


Joined: 05 Mar 2004
Posts: 38
Location: Austin, TX

PostPosted: Fri Mar 05, 2004 4:45 am    Post subject: Compiling new kernel with 2004.0 for a broken 1.4 install Reply with quote

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


Joined: 17 Feb 2004
Posts: 51

PostPosted: Fri Mar 05, 2004 4:55 am    Post subject: Reply with quote

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


Joined: 05 Mar 2004
Posts: 38
Location: Austin, TX

PostPosted: Fri Mar 05, 2004 4:58 am    Post subject: Reply with quote

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


Joined: 17 Feb 2004
Posts: 51

PostPosted: Fri Mar 05, 2004 5:01 am    Post subject: Reply with quote

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


Joined: 05 Mar 2004
Posts: 38
Location: Austin, TX

PostPosted: Fri Mar 05, 2004 5:03 am    Post subject: Reply with quote

Do I not need to mount proc?
Back to top
View user's profile Send private message
Tabriz
n00b
n00b


Joined: 17 Feb 2004
Posts: 51

PostPosted: Fri Mar 05, 2004 5:04 am    Post subject: Reply with quote

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


Joined: 05 Mar 2004
Posts: 38
Location: Austin, TX

PostPosted: Fri Mar 05, 2004 5:08 am    Post subject: Reply with quote

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


Joined: 17 Feb 2004
Posts: 51

PostPosted: Fri Mar 05, 2004 5:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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