Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Removed one package to much, need help chrooting [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MilkSjeik
n00b
n00b


Joined: 17 Apr 2005
Posts: 66
Location: Belgium

PostPosted: Tue Aug 02, 2005 6:42 am    Post subject: Removed one package to much, need help chrooting [Solved] Reply with quote

Hi,

I removed to much from my gentoo system when trying to update to the 2005 version.
I did a clean and thought (even with the warning), that devfs wasn't used anymore on my system.
Wrong offcourse, my system now hangs at boot. I think the problem is solved when I can emerge this package again on my system.

But, what is the best way to chroot into my system? Can I still use the 2004.3 boot cd? Or is it better do download the new one? And after it's booted what commands do I use?

$ mount /dev/sda3 /mnt/gentoo (I think sda3 is my / dir)
$ chroot /mnt/gentoo /bin/bash
$ env-update
$ emerge devfs

Or isn't live this easy? I had a try yesterday, but I failed to chroot...
Also when I browsed /mnt/gentoo, my home directory was empty. Is it over-rulled by the boot cd /mnt/gentoo folder?
So even if I would succeed in my chrooting attempt, is it then enough to emerge my package?

Milky


Last edited by MilkSjeik on Tue Aug 02, 2005 6:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
ONEEYEMAN
Advocate
Advocate


Joined: 01 Mar 2005
Posts: 3612

PostPosted: Tue Aug 02, 2005 7:45 am    Post subject: Reply with quote

Hi, MilkSjeik.
Before you chroot you could try to run fdisk and ask for you partition info using the "p" command. This is jst to be sure. Also I would think that you are prety safe with the old CD. Just make sure that you following the handbook for the chrooting. You need /mnt/gentoo. /mnt/gentoo/boot and /mnt/gentoo/proc.
If it's not gonna work you could try and burn the latest CD

Thank you.
Back to top
View user's profile Send private message
MilkSjeik
n00b
n00b


Joined: 17 Apr 2005
Posts: 66
Location: Belgium

PostPosted: Tue Aug 02, 2005 4:37 pm    Post subject: Reply with quote

Worked:

Code:

mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
chroot /mnt/gentoo /bin/bash
env-update
emerge devfsd


But not it seems I changed to much config files automatically... I had to reset my displaymanager in /etc/rc.conf to gdm.
Also my keyboard isn't correct in tty consoles... I'll have to check some things, but at least I'm up and running again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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