{"id":354,"date":"2025-11-30T23:19:36","date_gmt":"2025-11-30T23:19:36","guid":{"rendered":"https:\/\/sites.wp.odu.edu\/dberr012\/?p=354"},"modified":"2025-11-30T23:19:36","modified_gmt":"2025-11-30T23:19:36","slug":"cyse270-assignment-7","status":"publish","type":"post","link":"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-7\/","title":{"rendered":"CYSE270 Assignment 7"},"content":{"rendered":"\n<p><strong>Part I\u2013 Check your file system.<\/strong><\/p>\n\n\n\n<p>Step 1. Execute the ls \/dev\/sd* command to see the current hard disk devices. [use sudo ]<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2-1024x640.jpeg\" alt=\"\" class=\"wp-image-357\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-2.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 2. Execute the fdisk -l command to list the current hard disk partitions. [use sudo ]<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1-1024x640.jpeg\" alt=\"\" class=\"wp-image-356\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 3. Execute the parted -l command to list the current hard disk partition table. [use sudo ]<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1024x640.jpeg\" alt=\"\" class=\"wp-image-355\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>Part II\u2013 Create a new virtual disk&nbsp;<\/strong><\/p>\n\n\n\n<p>Step 1. In the VM setting, attach a new virtual hard disk with the size of 200 MB to our current Linux VM. Name it as \u201c01279985.vdi\u201d&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/5d43773a-23fd-47d8-bd11-03365fda923a\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 2. Load this virtual hard disk to your virtual machine.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/sites.wp.odu.edu\/c926633c-9b79-4430-be6a-64c3ec7f5d9d\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 3. Repeat the steps in Part I and highlight the differences after adding the new virtual hard disk.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3-1024x640.jpeg\" alt=\"\" class=\"wp-image-358\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-3.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul>\n<li>From the three checks from part 1, the three things that have changed were in the devices listing, the partition listing, and the partition table summary<\/li>\n<\/ul>\n\n\n\n<p><strong>Part III\u2013 Creating Partitions and Filesystems&nbsp;<\/strong><\/p>\n\n\n\n<p>Step 1. Use the fdisk command to create a new primary partition on the new virtual hard disk attached in Part II.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6-1024x640.jpeg\" alt=\"\" class=\"wp-image-361\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-6.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 2. Use the correct command to create an ext4 filesystem on the new partition.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7-1024x640.jpeg\" alt=\"\" class=\"wp-image-362\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-7.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 3. Repeat the steps in Part I and highlight the differences.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9-1024x640.jpeg\" alt=\"\" class=\"wp-image-364\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-9.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul>\n<li>There would be differences for \u201cDevices under \/dev,\u201d \u201cfdisk -l output,\u201d parted -l output,\u201d and \u201clsblk -f.\u201d<\/li>\n<\/ul>\n\n\n\n<p>Step 4. Make a new directory named \/cyse. And mount the new partition under this directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8-1024x640.jpeg\" alt=\"\" class=\"wp-image-363\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-8.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 5. Use the df command to check the mounting point of the new partition.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10-1024x640.jpeg\" alt=\"\" class=\"wp-image-365\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-10.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 6. Create a new file named for 01279985.txt in the directory \/cyse and put your name in that file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11-1024x640.jpeg\" alt=\"\" class=\"wp-image-366\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-11.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 7. Unmount \/cyse directory.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12-1024x640.jpeg\" alt=\"\" class=\"wp-image-367\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-12.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 8. Check the contents in \/cyse directory. What do you find?<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13-1024x640.jpeg\" alt=\"\" class=\"wp-image-368\" srcset=\"https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13-1024x640.jpeg 1024w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13-300x188.jpeg 300w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13-768x480.jpeg 768w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13-1536x960.jpeg 1536w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13-480x300.jpeg 480w, https:\/\/sites.wp.odu.edu\/dberr012\/wp-content\/uploads\/sites\/39158\/2025\/11\/image-13.jpeg 1600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Part I\u2013 Check your file system. Step 1. Execute the ls \/dev\/sd* command to see the current hard disk devices. [use sudo ] Step 2. Execute the fdisk -l command to list the current hard disk partitions. [use sudo ] Step 3. Execute the parted -l command to list the current hard disk partition table&#8230;. <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/sites.wp.odu.edu\/dberr012\/2025\/11\/30\/cyse270-assignment-7\/\">Read More<\/a><\/div>\n","protected":false},"author":30971,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wds_primary_category":0},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/354"}],"collection":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/users\/30971"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/comments?post=354"}],"version-history":[{"count":1,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/354\/revisions"}],"predecessor-version":[{"id":369,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/posts\/354\/revisions\/369"}],"wp:attachment":[{"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/media?parent=354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/categories?post=354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sites.wp.odu.edu\/dberr012\/wp-json\/wp\/v2\/tags?post=354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}