Lab 12

In this assignment you will:

This assignment is worth 15 points.

These parts must be completed in order. All parts are dependent on the part before them.

Part I

Create a new linux vm.

Begin the install using linux(headless)(bionic_server). These are the instructions from assignment 7 here. Make sure to create the machine using the specifications above and then you can follow assignment 7 until you get to the Partition disks Screen (#7). Watch carefully for this screen. It is immediately after setting the archive mirror.

Creating partitions during install

These slides are from another class but show the screens used to Partition on the bionic_server: here. You will use the specifications below for this assignment.

At the partition disk screen select Manual.

Finish the partitioning and write the changes. Finish installation as usual. Reboot your machine by pushing the green power button on

Make sure both the partitions show up via the mount command after rebooting. You will probably want to use a grep command with sda or xvda to refine your results.

The swap file will not show using the mount command. Type swapon -s to see the swap partition.

Part II

Create the following partitions (at the following mount points):

To do this - complete the following steps:

Create the partitions with the default type Linux using the sudo cfdisk command.

After your computer has restarted

After you have formatted the partitions

Now that you have the partitions created and formatted and the mount points created

Check your work with the mount command.

Part III

After your mount command is working correctly in Part II, add the appropriate entries to the end of the /etc/fstab file so that each of those partitions created in part II are automatically mounted at boot.

Something like this, but not copy-paste: /dev/sda7 /mnt/stuff auto defaults 0 0

You can just use the defaults arguments on the fstab line. Note that if you mess up your fstab line and you reboot, your system could become unusable and you will have to re-install (or rescue).

Test your work without rebooting by unmounting all three new partitions (umount /dev/sda5). Test that they successfully unmounted by running the mount command again. Then run mount -a to reload the /etc/fstab file.

Check your work with the mount command again. If your mounts are correctly reloaded, then you correctly edited the /etc/fstab file and it is safe to restart your machine.

How to pass off

1 Take a screenshot of the mount with grep showing only your entries and swapon -s command.

2 Take a screenshot of the df -h command.

3 Take a screenshot of the newly added lines of fstab file.

Last Updated 04/02/2019