HOWTO Install Gentoo Linux: Test
From Gentoo Linux Wiki
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
|
Contents |
[edit] Bathroom Break
Now, as far as technicalities go, you're technically done installing Gentoo. That is to say that if you were to reboot at this point, your system would be standing on it's own two feet... BUT ... the system isn't yet what I would call useable.
However, even if you've been using a PORTAGE_BINHOST, at this point you've spent a lot of time on your new Gentoo system. Go take a bathroom break, go figure out what the person who has been yelling at you for the past few days wants, take a walk, do SOMETHING!
When you're done with that, come back and you'll be just about ready to start on the next part of the guide.
[edit] Pray and Reboot
Are you back from your bathroom break? Good, because otherwise you'd about piss your pants when you reboot and errors start flying all over the place.
DON'T PANIC!
Before I tell you what you need to do just before rebooting, I'll tell you what happens when you do.
Things aren't as bad as they seems, it is expected that things won't work. (Umm... Yeah...). When you reboot you'll need to be physically at your machine, because the first thing that's going to happen (if everything has been done correctly) is that once Linux starts to boot you'll meet a screen that tells you to enter the root password or press control D for normal startup. In reality, however, you've probably not done everything right, and the first error you get will be something wrong with grub. That aside, for the sake of simplicity, I'm going to assume that you're where I am:
enter the root password or press control D for normal startup Press Ctrl+D for a normal startup Login as root
It's okay that your prompt is green instead of red - that just means that everything is broken and you can do anything at the moment. Your path is currently unset, so you'll need to set it like so:
export PATH="/bin:/sbin"
Now you'll need to create the device nodes for the LVMs
modprobe dm-mod vgchange -a n && vgchange -a y vgchange -a n && vgchange -a y mount -a source /etc/profile && env-update && source /etc/profile init 1 && clear && init 3 && clear
You might want to give it the three finger salute (CTRL+ALT+DEL) to reboot, or it may actually be ready for use.
So, all of that having been fortold, you can reboot your system with a small remnant of confidence.
echo "Consult your deity of choice and then proceed to exit the screen session, if you're in one." exit cd /; umount -a 2>1 | grep gentoo; vgchange -a n && reboot
NOTE: If you're copying (or untarring to restore a backup) from a system, 'PC-1', which uses lvm2 onto 'PC-2' which also uses lvm2, then you'll want the first boot you do on 'PC-2' to be 'single-user mode' (append a 1 to your bootloader kernel options) with no lvm2 partitions mounted. Then run vgchange -a n; vgchange -a y; vgchange -a n; vgchange -a y; to make sure that it catches the new lvm2 setup and doesn't try to use the old one - especially if the logical volumes have the same names on both systems. If you fail to do this, you may find that when /dev/vg0/usr mounts it is actually referencing your old /dev/vg1/home. So just to be on the safe side, be sure to run vgchange -a n before reboot and maybe a second time for good luck before you backup your PC. Not that I learned from experience or anything...
[edit] Backing up
Backup your new Gentoo system using one of the links below. Incremental backups shouldn't take long. Always backup your system when trying something.
[edit] Files we have tweaked so far
- /root/install.conf Custom environment variables
- /etc/make.conf Rules on how to compile packages
- /etc/portage/package.use Package - specific USE settings
- /etc/locales.build Locales to be made during compilation of glibc
- /etc/fstab Information on filesystems and how to mount them
- /boot/grub/grub.conf GRUB bootloader configuration
- /etc/hostname Name of the system
- /etc/hosts The static table lookup for host names
- /etc/rc.conf General, system-wide configuration
- /etc/conf.d/net Networking information
- /etc/modules.autoload.d/kernel-2. Kernel modules to be loaded automatically
- /etc/lvm/lvm.conf LVM configuration
- /etc/localtime Timezone information
- /etc/dnsdomainname The system's DNS domain
- /etc/resolv.conf Resolver configuration file
- /etc/mtab Mounts

