Warning Livedoc is no longer being updated and will be deprecated shortly. Please refer to https://documentation.tjhsst.edu.

Difference between revisions of "Gentoo Workstation Install"

From Livedoc - The Documentation Repository
Jump to: navigation, search
(Created page with "'''''THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!!''''' '''''THIS DOCUMENTA...")
(No difference)

Revision as of 18:08, 27 October 2016

THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!! THIS DOCUMENTATION IS NOT YET COMPLETE!!!!! PLEASE DO NOT USE THIS DOCUMENTATION TO IMAGE ANY WORKSTATIONS UNTIL THIS WARNING HAS BEEN REMOVED!!!

Summary

Installing Gentoo on a workstation is quite the adventure. You should probably follow these instructions line-by-line if you don't want to mess up. The first thing you'll want to do is get a Gentoo LiveUSB, or if netroot is up, then you can use that. Networking should automatically get set up using DHCP, and if it doesn't, you're probably doing something wrong.

Preparing the Disk

Now, you'll probably be using /dev/sda, but if you aren't, substitute the disk you are using throughout the documentation.

Partitioning the Disk

First, you'll be creating the partitions on the disk. The CSL uses LVM to manage partitions, so keep that in mind. Run the following commands to partition your disk correctly. If parted throws an error about informing the kernel about the change, you can go ahead and ignore that.

# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel msdos # this will format the disk
(parted) unit MB
(parted) mkpart primary 1 124
(parted) mkpart primary 124 10000
(parted) mkpart primary 10000 -1  //-1 means end of disk
(parted) set 1 lba off
(parted) set 2 lba off
(parted) set 3 lba off
(parted) set 1 boot on
(parted) set 3 lvm on
(parted) print
Model: ATA TOSHIBA DT01ACA0 (scsi)
Disk /dev/sda: 500108MB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:

Number  Start           End               Size              Type           File system  Flags
 1             1.05MB      124MB          123MB          primary                            boot
 2             124MB       10000MB     9877MB       primary
 3             10000MB  500107MB   490107MB    primary                            lvm
(parted) quit

You should get something that looks similar, if not exactly the same as this.

Making the Filesystem

LVM Volume Creation

First you will be creating the LVM volumes, which allow us to resize partitions without having to repartition the physical disk. If there is already a logical volume system on the disk, you will have to remove it by running vgremove vgwkstn and accepting all the prompts.

# pvcreate /dev/sda3  //create the physical volume 
# vgcreate vgwkstn /dev/sda3  //create the volume group
# lvcreate -L 2G -n swap vgwkstn  //create the swap partition
# lvcreate -L 50G -n usr vgwkstn
# lvcreate -L 50G -n opt vgwkstn
# lvcreate -L 10G -n var vgwkstn
# lvcreate -L 1G -n afs vgwkstn
# lvcreate -L 5G -n tmp vgwkstn
# lvcreate -L 5G -n root vgwkstn //note this will be mounted at /root, not /

Congratulations, you're done!

Creating the Filesystem

So now you'll be creating the filesystem for the new partitions. THIS WILL ERASE ALL DATA CURRENTLY ON THE DISK!!! Run the following commands to make the filesystem correctly.

# mkfs.ext2 /dev/sda1
# mkfs.ext4 /dev/sda2
# mkswap /dev/vgwkstn/swap
# swapon /dev/vgwkstn/swap

Next will be to create the LVM volumes