DevOps virtualization
In this assignment you will:
/etc/fstab to make those mount permanentThese 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 cfdisk.
Create the following partitions (at the following mount points):
To do this - complete the following steps:
sudo cfdisk command.properly shutdown using the command and restart your vm using 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 /dev/sda5, /dev/sda6, /dev/sda7.
Format all three partitions by running the mkfs.ext3 or mkfs.ext4 command on each partition depending on the partition format type. The command will look something like this mkfs.ext4 /dev/sda5
After you have formatted the partitions
mkdir.mkdir /mnt/moviesNow that you have the partitions created and formatted and the mount points created
mount /dev/sda6 /mnt/videogames.Check your work with the mount command.
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 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.
The grading script will be run as you are logged into scratch. The command you will execute will be similar for all of
your assignments that have an autograder. Here is a sample of the command you will run: run_grader.py --n 2 --ip 1.2.3.4. The 2 is representative of lab2. (Lab 3 would replace the 2 with a 3). NOTE you will pass in the ip address of your virtual machine that you have created. You will see some feedback. You should make sure that all your tests pass and that your score is correctly recorded. Please see your instructor for any help or questi ons on the output.