Joined: 31 Dec 2004
|Posted: Fri Jul 14, 2006 8:30 pm Post subject: Correct way to re boot re chroot after boot fails. (ppc)
|I have not seen a quick reference or FAQ for this.
I frequently install gentoo and mess up.
Like when I go for the big test reboot it fails.
So then I go back and retrace steps, emerge something I forgot of, or look at such and such config file.
But first I need to re chroot.
I learned to do everything over ssh so I can copy and paste then post here. I am thinking maby this is not obvious to other noobs.
Is this the correct way to re boot re chroot?
Re booting with live cd on ppc:
Insert live cd and hold down c on keyboard to boot live cd.
G3 (insert other tips here)
|etc/init.d/sshd start |
Open up a console and ssh over, Get the host key error with the new fingerprint and copy the fingerprint. Open
and paste the finger print there.
|nano /root/.ssh/known_hosts |
ssh in again type yes when it asks you if you approve.
(or let me know if their is a better way to do this)
from new ssh console
mount the partition hda(your root partition number here) you installed /root on in my case:
|mount /dev/hda4 /mnt/gentoo |
And if you made a seperate partition for /var or /usr or /home don't forget to mount them
|mount /mnt/gentoo/your partition |
|mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
mount -o bind /sys /mnt/gentoo/sys
chroot /mnt/gentoo /bin/bash
/usr/sbin/env-update && source /etc/profile
(if I have not in last day)
to exit out of chroot and reboot
|umount /mnt/gentoo/proc /mnt/gentoo/dev mnt/gentoo/sys |
Any tips on making this correct or quicker?
Donate to Gentoo