Chapter 13 . Running Gentoo Linux 393 Then (Adelphia web hosting)

Chapter 13 . Running Gentoo Linux 393 Then type h to display a list of commands. (See Chapter 7 for information on using fdisk to partition your hard disk.) Repartitioning your disk destroys existing data on your hard disk. Back up any data you value before starting this procedure. Be sure not to delete or change any partitions that have data on them that you want to keep. # fdisk /dev/hda 8. Make file systems. To create the appropriate file systems on your disk partitions, use the mk2fs and mkswap commands. For example, with an IDE hard drive that has the first partition as the boot partition (/dev/hda1), the second as swap (/dev/hda2), and the third as the root (/) partition (/dev/hda3), you can type the following: # mke2fs /dev/hda1 # mkswap /dev/hda2 # mkreiserfs /dev/hda3 9. Turn on swap. Use the swapon command to turn on your swap partition. For our example (with hda2 being the swap partition), type: # swapon /dev/hda2 10. Mount root (/) partition. You need to mount the root (/) partition temporarily to begin installing Gentoo to it. In this example (with the root file system on /dev/hda3), type: # mount /dev/hda3 /mnt/gentoo 11. Mount the /boot partition. Next, mount the boot partition so you can install boot files to that partition: # mkdir /mnt/gentoo/boot # mount /dev/hda1 /mnt/gentoo/boot 12. Get the stage1 tarball. Assuming that you have the minimal Gentoo installation CD, you need to download the stage1 tarball. Find a mirror site near you (as described earlier). Then make a directory on your hard disk to copy it to and download the tarball using a tool such as wget. Here is an example: If you are using the universal CD, the stage1 tarball is available there. Instead of downloading it, jump to the next step and extract the tarball from /mnt/cdrom/ stages/stage1*.tar.bz2. # mkdir /mnt/gentoo/tmp2 # cd /mnt/gentoo/tmp2 # wget -c http://gentoo.osuosl.org/releases/x86/2005.1/ stages/x86/stage1-x86-2005.1.tar.bz2 The wget command, which appears on multiple lines here, should all be typed on one line. (There s no space between the slash at the end of the first line and the word stages at the beginning of the next.) If the download should stop in the middle, you can restart it by running the same command again in the same directory. Note Note Caution
We would like to recommend you tested and proved virtual web hosting services, which you will surely find to be of great quality.

Leave a Reply