Franske CNT-2311 SP12 Labs
Below is information about the labs you must complete in this class.
Chapter 2
- Complete "Project 2-2" Installing Fedora Core 13 from the book EXCEPT:
- Install to a new VirtualBox VM instead of directly onto the computer, set up the VM to use bridged networking
- Make the root partition 7GB and the swap partition 1GB
- Complete "Project 2-3" from the book
- Complete "Project 2-4" from the book
- Complete "Project 2-5" from the book
- Complete "Project 2-6" from the book
- Complete "Project 2-7" from the book
Chapter 3
- Complete "Project 3-1" from the book
- Complete "Project 3-2" from the book
- Complete "Project 3-3" from the book
- Complete "Project 3-4" from the book
- Complete "Project 3-5" from the book
- Complete "Project 3-6" from the book
- Complete "Project 3-7" from the book
Chapter 4
- Complete "Project 4-1" from the book
- Complete "Project 4-2" from the book
- Complete "Project 4-3" from the book
- Complete "Project 4-4" from the book
- Complete "Project 4-5" from the book
- Complete "Project 4-6" from the book
- Complete "Project 4-7" from the book
- Complete "Project 4-8" from the book
- Complete "Project 4-9" from the book
- Complete "Project 4-10" from the book
Chapter 5
In this chapter we will be working with a few special things related to hardware. You will need to modify your virtual machine to add some additional hard disks and there will be a few modifications to the labs (noted here) which you'll need to make things work well so be sure to read carefully.
- Complete "Project 5-1" from the book
- Complete "Project 5-2" from the book with the following modifications/notes:
- If you are using a VM do this with a virtual floppy disk, it will be much easier than a USB flash drive. If you are using a physical system with Fedora installed directly on the hardware it will be easier with a USB flash drive unless your system has a floppy drive and you have a disk handy. Note that if you follow the instructions for the USB flash drive you will be erasing all of the data on the USB flash drive!
- You will have to add a virtual floppy controller you your virtual machine (under the storage settings for the VM)
- You will have to add a virtual floppy drive (device) to the controller
- You will have to download a blank floppy disk image and "insert" it into your virtual floppy drive
- Complete "Project 5-3" from the book with the following modifications/notes:
- If you are using a VM you will need to make sure your VM has it's virtual CD/DVD drive connected to the host CD/DVD drive the same way as when you installed Fedora to begin with. You may optionally attach an ISO image to the virtual CD/DVD drive the same way as when you installed Ubuntu.
- Complete "Project 5-4" from the book with the following modifications/notes:
- If you are doing this project directly on hardware instead of in a VM there will be some special considerations depending on your specific installation. Please discuss with the instructor before attempting.
- When we installed our Fedora VMs we did not setup a virtual hard drive as big as the book requested so we do not have enough space on our virtual hard drive to make additional partitions. Instead you should add a second NEW (empty) virtual hard drive to your VM's SATA controller. You should actually make two as we'll need the other one later on. Make the new virtual hard drives EACH 15GB in size.
- As you work through this project remember that instead of working on the first hard disk (/dev/sda) you will be working on one of the new disks you created (/dev/sdb). Because that drive doesn't have any existing partitions when you are working on it you will need to create a new partition of 10GB as indicated in the book but it will be /dev/sdb1 instead of /dev/sda3.
- DO NOT Complete "Project 5-5" from the book! We will be doing something similar (instructions below) but will be utilizing the two new virtual hard drives we created instead of a fourth partition. Because this would require major modification to the lab I have re-written it below with new instructions:
- Switch to the command line terminal (tty2) by pressing Ctrl-Alt-F2 and log in to the terminal using the user name of root and password of secret.
- At the command prompt, type fdisk device_file and press Enter, where device_file is the device file for your second hard disk (/dev/sdb is you have SCSI or SATA disks, or /dev/hdb if you have PATA hard disks). At the fdisk prompt, type m and press Enter to view the various fdisk commands.
- At the fdisk prompt, type n and press Enter to create a new partition. Next, type p to select a primary partition and press Enter. When prompted for the partition number, type 2 and press Enter. When prompted for the start cylinder, observe the valid range within the brackets and press Enter to select the default (the first available cylinder). When prompted for the end cylinder, press Enter to select the default of the last available cylinder on your hard disk.
- At the fdisk prompt, type p and press Enter to view the partition table for your hard disk. How many partitions are present? What type of partition is /dev/sdb2 or /dev/hdb2?
- The partition we just created is going to be used for LVM so we should correctly set the partition type. At the fdisk prompt, type l and press Enter to view the supported partition types. Find the "Linux LVM" type. What is the partition code for it? At the fdisk prompt, type t and press Enter to change the partition type of a partition. Next, type 2 to change the type of the second partition. Enter the Hex code for the "Linux LVM" type (8e) and press Enter.
- At the fdisk prompt, type p and press Enter to view the partition table for your hard disk. What type of partition is now listed for /dev/sdb2 or /dev/hdb2?
- At the fdisk prompt, type w and press Enter to save the changes to the hard disk and exit the fdisk utility.
- At the command prompt, type pvcreate device_file and press Enter, where device_file is the device file for the second partition on your second hard disk (/dev/sdb2 if you have a SCSI or SATA disk, or /dev/hdb2 if you have a PATA disk). What does this command do?
- At the command prompt, type vgcreate vg00 device_file and press Enter, where device_file is the device file for the second partition on your second hard disk (/dev/sdb2 if you have a SCSI or SATA disk, or /dev/hdb2 if you have a PATA disk). What does this command do?
- At the command prompt, type lvcreate -L 3GB -n volume1 vg00 and press Enter to create a 3GB logical volume called volume1 from the vg00 volume group.
- At the command prompt, type lvcreate -L 2GB -n volume2 vg00 and press Enter to create a 2GB logical volume called volume2 from the vg00 volume group.
- Complete "Project 5-6" from the book
- Complete "Project 5-7" from the book