Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Correct way to re boot re chroot after boot fails. (ppc)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1698

PostPosted: Fri Jul 14, 2006 8:30 pm    Post subject: Correct way to re boot re chroot after boot fails. (ppc) Reply with quote

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)
Code:
modprobe bmac

Code:
dhcpcd

Code:
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
Code:
nano /root/.ssh/known_hosts
and paste the finger print there.
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:
Code:
mount /dev/hda4 /mnt/gentoo

And if you made a seperate partition for /var or /usr or /home don't forget to mount them
Code:
mount /mnt/gentoo/your partition

Then
Code:
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
code]
Code:
emerge --sync
(if I have not in last day)
to exit out of chroot and reboot
Code:
umount /mnt/gentoo/proc /mnt/gentoo/dev mnt/gentoo/sys

Code:
reboot


Any tips on making this correct or quicker?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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