You will annotate a printed copy of a filedump as described below and turn it in on paper. 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.

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.

Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
184 inodes, 1440 blocks
72 blocks (5.00%) reserved for the super user
First data block=1
1 block group
8192 blocks per group, 8192 fragments per group
184 inodes per group

Writing inode tables: 0/1done
Writing superblocks and filesystem accounting information: done
/mnt/floppy:
total 4
drwxr-xr-x 2 root root 4096 Dec 25 01:18 temp
-rw-r–r– 1 root root 0 Dec 25 01:18 ttt

/mnt/floppy/temp:
total 0
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0001024 b8 00 00 00 a0 05 00 00 48 00 00 00 74 05 00 00 >∏…….H…t…
0001040 aa 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 >™……………
0001056 00 20 00 00 00 20 00 00 b8 00 00 00 d0 c3 01 3b >. … ..∏…–√.;
0001072 d0 c3 01 3b 01 00 14 00 53 ef 01 00 01 00 00 00 >–√.;….SÔ……
0001088 ce c3 01 3b 00 4e ed 00 00 00 00 00 01 00 00 00 >Œ√.;.NÌ………
0001104 00 00 00 00 0b 00 00 00 80 00 00 00 00 00 00 00 >…………….
0001120 02 00 00 00 01 00 00 00 10 c4 26 0c 26 7c 40 b1 >………ƒ&.&|@±
0001136 ad cc 3f af b5 c5 4a 15 00 00 00 00 00 00 00 00 >≠Ã?ص≈J………
0001152 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0002048 03 00 00 00 04 00 00 00 05 00 00 00 74 05 aa 00 >…………t.™.
0002064 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
0002080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0003072 ff ff ff ff ff 07 00 00 00 00 00 00 00 00 00 00 >ˇˇˇˇˇ………..
0003088 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0003248 00 00 00 80 ff ff ff ff ff ff ff ff ff ff ff ff >….ˇˇˇˇˇˇˇˇˇˇˇˇ
0003264 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ
*
0004096 ff 3f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ˇ?…………..
0004112 00 00 00 00 00 00 00 ff ff ff ff ff ff ff ff ff >…….ˇˇˇˇˇˇˇˇˇ
0004128 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇˇ
*
0005120 00 00 00 00 00 00 00 00 ce c3 01 3b ce c3 01 3b >……..Œ√.;Œ√.;
0005136 ce c3 01 3b 00 00 00 00 00 00 00 00 00 00 00 00 >Œ√.;…………
0005152 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0005248 ed 41 00 00 00 04 00 00 ce c3 01 3b d0 c3 01 3b >ÌA……Œ√.;–√.;
0005264 d0 c3 01 3b 00 00 00 00 00 00 04 00 02 00 00 00 >–√.;…………
0005280 00 00 00 00 00 00 00 00 1c 00 00 00 00 00 00 00 >…………….
0005296 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0006400 ed 41 00 00 00 30 00 00 ce c3 01 3b ce c3 01 3b >ÌA…0..Œ√.;Œ√.;
0006416 ce c3 01 3b 00 00 00 00 00 00 02 00 18 00 00 00 >Œ√.;…………
0006432 00 00 00 00 00 00 00 00 1d 00 00 00 1e 00 00 00 >…………….
0006448 1f 00 00 00 20 00 00 00 21 00 00 00 22 00 00 00 >…. …!…”…
0006464 23 00 00 00 24 00 00 00 25 00 00 00 26 00 00 00 >#…$…%…&…
0006480 27 00 00 00 28 00 00 00 00 00 00 00 00 00 00 00 >’…(………..
0006496 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0006528 a4 81 00 00 1b 00 00 00 d0 c3 01 3b d0 c3 01 3b >§…….–√.;–√.;
0006544 d0 c3 01 3b 00 00 00 00 00 00 01 00 02 00 00 00 >–√.;…………
0006560 00 00 00 00 00 00 00 00 29 00 00 00 00 00 00 00 >……..)…….
0006576 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0006624 00 00 00 00 23 85 56 de 00 00 00 00 00 00 00 00 >….#.V……..
0006640 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
0006656 ed 41 00 00 00 04 00 00 d0 c3 01 3b d0 c3 01 3b >ÌA……–√.;–√.;
0006672 d0 c3 01 3b 00 00 00 00 00 00 02 00 02 00 00 00 >–√.;…………
0006688 00 00 00 00 00 00 00 00 2a 00 00 00 00 00 00 00 >……..*…….
0006704 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0006752 00 00 00 00 24 85 56 de 00 00 00 00 00 00 00 00 >….$.V……..
0006768 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
0006784 a4 81 00 00 1b 00 00 00 d0 c3 01 3b d0 c3 01 3b >§…….–√.;–√.;
0006800 d0 c3 01 3b 00 00 00 00 00 00 01 00 02 00 00 00 >–√.;…………
0006816 00 00 00 00 00 00 00 00 2b 00 00 00 00 00 00 00 >……..+…….
0006832 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0006880 00 00 00 00 25 85 56 de 00 00 00 00 00 00 00 00 >….%.V……..
0006896 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0028672 02 00 00 00 0c 00 01 02 2e 00 00 00 02 00 00 00 >…………….
0028688 0c 00 02 02 2e 2e 00 00 0b 00 00 00 14 00 0a 02 >…………….
0028704 6c 6f 73 74 2b 66 6f 75 6e 64 00 00 0c 00 00 00 >lost+found……
0028720 10 00 06 01 61 6c 70 68 61 31 00 00 0d 00 00 00 >….alpha1……
0028736 c4 03 07 02 73 6f 6d 65 64 69 72 00 00 00 00 00 >ƒ…somedir…..
0028752 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0029696 0b 00 00 00 0c 00 01 02 2e 00 00 00 02 00 00 00 >…………….
0029712 f4 03 02 02 2e 2e 00 00 00 00 00 00 00 00 00 00 >Ù……………
0029728 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0030720 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0030736 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0031744 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0031760 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0032768 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0032784 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0033792 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0033808 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0034816 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0034832 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0035840 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0035856 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0036864 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0036880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0037888 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0037904 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0038912 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0038928 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0039936 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0039952 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0040960 00 00 00 00 00 04 00 00 00 00 00 00 00 00 00 00 >…………….
0040976 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0041984 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 >ABCDEFGHIJKLMNOP
0042000 51 52 53 54 55 56 57 58 59 5a 0a 00 00 00 00 00 >QRSTUVWXYZ……
0042016 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0043008 0d 00 00 00 0c 00 01 02 2e 00 00 00 02 00 00 00 >…………….
0043024 0c 00 02 02 2e 2e 00 00 0e 00 00 00 e8 03 06 01 >…………Ë…
0043040 61 6c 70 68 61 32 00 00 00 00 00 00 00 00 00 00 >alpha2……….
0043056 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
0044032 5a 59 58 57 56 55 54 53 52 51 50 4f 4e 4d 4c 4b >ZYXWVUTSRQPONMLK
0044048 4a 49 48 47 46 45 44 43 42 41 0a 00 00 00 00 00 >JIHGFEDCBA……
0044064 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >…………….
*
1474560



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *