fjm,
NeddySeagoons' Rough Guide to Chrooting
I need to know your partition scheme to get it spot on. I will use
/dev/hda1 == /boot
/dev/hda2 == <swap>
/dev/hda3 == / (root) You will need to adjust as needed for your install.
Boot the liveCD with the nox option. At the boot: prompt, type
and press return.
If you needed other no options to get booted with the liveCD add them too.
At the prompt, issue the following commands
Code: Select all
swapon /dev/hda2
mount -t <fstype> /dev/hda3 /mnt/gentoo
mount -t <fstype> /dev/hda1 /mnt/gentoo/boot
mount -t proc proc /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
Fill in your filesystem types as required.
Thats everything mounted, now to get into the chroot with the following commands.
Code: Select all
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
The last command provides a pretty prompt, its not actually required.
You will use the above sequence of commands whenever your system needs to be 'rescued', keep it handy.
With your system running on top of the liveCD, you can contine/fix your install.
will add the bit you are missing.
Its all covered in
the handbook at the end of chapter 4 and in chapter 6. If you used the graphical installer, you will have used the other handbook, so these steps will be hidden from you.