LiveCD + chroot Saves Me Again

Let's face it, every now and then us Gentoo users break our systems. If we wanted a stable system we wouldn't have gotten Gentoo to begin with. That's not to imply that Gentoo isn't stable, it is. However it's a bleeding-edge distribution that just begs to be modified and tweaked, and tweak we shall. Unfortunately tweaking does sometimes break things, especially during installation. Every now and then you'll need to boot off of the Gentoo LiveCD, mount your installation, and fix something. I did this about an hour ago. It's probably the 50th time I've had to do this, and each time I had to load gentoo.org, access the install guide, and skim through the commands picking out what I needed. Certainly someone with a better memory could just remember them, but if I had a good memory I wouldn't be sitting here writing myself a cheat sheet. Anyways here's the quick and dirty list of what it takes to chroot into your Gentoo installation to repair something from the LiveCD: mkswap /dev/sda3 && swapon /dev/sda3 && mount /dev/sda4 /mnt/gentoo && mount /dev/sda2 /mnt/gentoo/boot && mount -t proc none /mnt/gentoo/proc && mount -o bind /dev /mnt/gentoo/dev && chroot /mnt/gentoo /bin/bash && env-update && source /etc/profile && export PS1="(chroot) $PS1" First off note this assumes you're on an identically configured system as mine, so don't blindly type these commands in. This is a cheat sheet to save me time in the future, use at your own risk. The only thing you really have to change are the drive designations, so if you can manage that go at it. Afterwards you'll be inside of your environment, so good luck. Of course this is assuming you have a previously installed environment, if not go back to Windows.