Question: 2. (7096) Construct a simple Linux ext2 file system disk image, with block size of 1024 bytes, 16 inodes, 1 group, volume name (disk name)

2. (7096) Construct a simple Linux ext2 file system disk image, with block size of 1024 bytes, 16 inodes, 1 group, volume name (disk name) as YourFirstName YourLastName_437disk. 3a) (1096) Display your file system specification and its disk layout, including where is your block bitmap, inode bitmap, inode table, your volume name, etc. (10%) Show where is root directory (from inode, to 1st block) and its content (10%) Create a text file containing 800 of "A", 800 of "B" and 800 of "C". Copy it into your disk image as a file named as "abc" (use debugfs's write). Show where is this newly created file block (from root dir, to inode, to 1,nd,3rd blocks) and show the 2nd block of content by dumping segment of disk image specified by 2nd block's address (use xxd-s) 3b) 3c) 3.d) (1096) Create several new directories and files to reach the system limit. Describe how 16 inodes are consumed. 3e) (30%) write a utility program catfilev, to find and print out the content of a file specified in this mini file system by its inode. The utility takes two parameters: inode # and the name of the disk image Show the steps to make your file system image, and answer questions of 3.a) to d). For 3.e) paste your code and running examples into your assignment file. You might need several utilities to accomplish your task, such as dd, mkfs.ext2, debugfs and xxd 2. (7096) Construct a simple Linux ext2 file system disk image, with block size of 1024 bytes, 16 inodes, 1 group, volume name (disk name) as YourFirstName YourLastName_437disk. 3a) (1096) Display your file system specification and its disk layout, including where is your block bitmap, inode bitmap, inode table, your volume name, etc. (10%) Show where is root directory (from inode, to 1st block) and its content (10%) Create a text file containing 800 of "A", 800 of "B" and 800 of "C". Copy it into your disk image as a file named as "abc" (use debugfs's write). Show where is this newly created file block (from root dir, to inode, to 1,nd,3rd blocks) and show the 2nd block of content by dumping segment of disk image specified by 2nd block's address (use xxd-s) 3b) 3c) 3.d) (1096) Create several new directories and files to reach the system limit. Describe how 16 inodes are consumed. 3e) (30%) write a utility program catfilev, to find and print out the content of a file specified in this mini file system by its inode. The utility takes two parameters: inode # and the name of the disk image Show the steps to make your file system image, and answer questions of 3.a) to d). For 3.e) paste your code and running examples into your assignment file. You might need several utilities to accomplish your task, such as dd, mkfs.ext2, debugfs and xxd
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
