View previous topic :: View next topic |
Author |
Message |
MilkSjeik n00b
Joined: 17 Apr 2005 Posts: 66 Location: Belgium
|
Posted: Tue Aug 02, 2005 6:42 am Post subject: Removed one package to much, need help chrooting [Solved] |
|
|
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 |
|
|
ONEEYEMAN Advocate
Joined: 01 Mar 2005 Posts: 3612
|
Posted: Tue Aug 02, 2005 7:45 am Post subject: |
|
|
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 |
|
|
MilkSjeik n00b
Joined: 17 Apr 2005 Posts: 66 Location: Belgium
|
Posted: Tue Aug 02, 2005 4:37 pm Post subject: |
|
|
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 |
|
|
|