In this assignment you will:
- add additional partitions using the cfdisk utility
- mount partitions
/etc/fstabto make those mount permanent
- Create a logical volume
These parts must be completed in order. All parts are dependent on the part before them.
You will use your
headless ubuntu instance to complete the following. To make sure that you will be able to complete it, you should first verify that you have some free space on your disk by using
Create the following partitions (at the following mount points):
- /mnt/movies (500M)(ext4)(/dev/sda5)
- /mnt/videogames (1GB)(ext3)(/dev/sda6)
- /mnt/stuff (100M)(ext4)(/dev/sda7)
To do this - complete the following steps:
- Create the partitions with the default type Linux using the
- Make sure to
properly shutdownusing the command and
restart your vmusing the green button after creating the partitions.
After your computer has restarted
Check that the partitions created correctly using cfdisk. And write down the device ID’s. They should be
Format all three partitions by running the
mkfs.ext4command on each partition depending on the partition format type. The command will look something like this
After you have formatted the partitions
- Create all three the mount points by simply creating directories using
- These directories are created on your root partition. When you are done and then cd into the directory it will seamlessly take you to the new partition. The command will look something like this
Now that you have the partitions created and formatted and the mount points created
- Mount all three partitions to the appropriate newly created mount points. Something like
mount /dev/sda6 /mnt/videogames.
Check your work with the
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 ext4 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.
grade_lab12 command from scratch. Pass in the ip address of your machine. Something like:
grade_lab12 144.38.xx.yy. Take a screenshot of the results and upload to scratch.
Last Updated 03/31/2020