Assignment 2 Unix V6 Filesystem:

Boot Block
Superblock
...
...
0
1
2
3
...
#
#
#
#
...
#
Important Details
  • Each example test disk is 10,240,000 bytes (10 MiB)
  • Each block (sector) is 512 bytes
  • Thus there are 10,240,000/512 = 20,000 total blocks in each test disk
  • Block numbers are 0-indexed
  • Inodes are 1-indexed
  • Each inode is 32 bytes
  • Thus each inode block can store 512/32 = 16 inodes
  • The first inode block number is 2
  • Inodes can be allocated (used) or unallocated (free). Allocated inodes are highlighted.
  • Directory entries (direntv6 structs) are 16 bytes
  • Thus each directory file block can store 512/16 = 32 directory entries
  • Block numbers are 2 bytes each
  • Thus each indirect and doubly direct file block can store 512/2 = 256 block numbers
Inode Info
Click on a highlighted inode to display its information.