Search:  
Gentoo Wiki

HOWTO_Install_Gentoo_Linux:_Test


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Image:Gentoo_tux.png

Base Install

  1. What is Gentoo?
  2. About
  3. Preparation
  4. Partitioning
  5. Configuring
  6. Stage Progression
  7. Kernel
  8. Bootloader
  9. Test
  10. Converting from or to a non-Gentoo distribution
  11. Troubleshooting
  12. Maintaining

Configuration

Base Extras

Server

Desktop

Other Articles

edit

Contents

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.

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...

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.

Files we have tweaked so far

Retrieved from "http://www.gentoo-wiki.info/HOWTO_Install_Gentoo_Linux:_Test"

Last modified: Fri, 05 Sep 2008 22:51:00 +0000 Hits: 6,590