Assignment - traversing a filesystem to find a file You will annotate a printed copy of a filedump as described below and turn it in on paper. Print out thisdump of the content of a floppy diskettein...

1 answer below »


Assignment - traversing a filesystem to find a file


You will annotate a printed copy of a filedump as described below and turn it in on paper.


Print out thisdump of the content of a floppy diskettein the form of an Excel spreadsheet. (Here's the same data intext file format, but for this exercise use the spreadsheet.) It depicts a diskette that contains the following files:


[root@EMACH1 floppy]# ls -lR
.:
total 14
-rw-r--r-- 1 root root 27 May 15 17:03 alpha1
drwxr-xr-x 2 root root 12288 May 15 17:03 lost+found
drwxr-xr-x 2 root root 1024 May 15 17:03 somedir


lost+found:
total 0


somedir:
total 1
-rw-r--r-- 1 root root 27 May 15 17:03 alpha2


where alpha1 contains the letters of the alphabet in order and alpha2 contains the letters of the alphabet backwards. Print out a copy or use one provided in class. As you perform this assignment you will make annotations in the margins and elsewhere on the printout you made above.


Refer also to "Analyzing a filesystem" for an example of how a file is located in the ext2 filesystem. The assignment is for you to trace the process of locating the file /somedir/alpha2. Doing so will be much like finding the example file except you will have to visit an extra directory. As you do so annotate the trace as follows.


1. Number each block whose starting point appears in the dump. Use zero as the first block number.


2. Using a different colored pencil, number each inode whose starting point appears in the inode table portion of the dump. Use one as the first inode number.


3. Label the root directory's inode "root directory inode" in the margin.


4. Circle the field in the root directory's inode that points to its data block.


5. Draw an arrow that leads from the circled field to the first byte of that data block, where the root directory's contents reside.


6. In the margin to the right of the printed word "somedir" write the number that gives the filetype of somedir.


7. Circle, within somedir's directory entry, the field that gives the inode number for somedir.


8. Draw an arrow that leads from the circled field to the first byte of the inode for somedir.


9. Circle, within that inode, the field that leads to the first byte of the contents of somedir.


10. In the margin to the right of the printed word "alpha2" write the number that represents the filetype of alpha2


11. Circle, within the alpha2's directory entry, the field that gives the inode number for alpha2.


12. Draw an arrow that leads from the circled field to the first byte of the inode for alpha2.


13. Circle, within that inode, the field that represents the length of alpha2.


14. Circle, within that inode, the field that represents the time that alpha2's file contents last changed.


15. Circle, within that inode, the field that leads to the contents of alpha2.


16. Draw an arrow that leads from that circled field to the first byte of the contents of alpha2.


17. At the bottom of the page write "17. number of mount operations before check:" followed by that number in decimal.


18. At the bottom of the page write "18. block number of the inode bitmap:" followed by that number in decimal.



Please turn in your annotated printout in class.


Answered 207 days AfterJun 15, 2021

Answer To: Assignment - traversing a filesystem to find a file You will annotate a printed copy of a filedump...

Pawan answered on Jan 09 2022
99 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here