File System Simulation (revision 151111-r01)

Return to Lab 08

  1. Download disk simulation files:
    wget --no-check-certificate
  2. Extract the compressed file and delete it later on:
    tar xjf File_System.tar.bz2
    rm -f File_System.tar.bz2
  3. Change your directory to File_System:
    cd File_System
  4. Compile all java files:
    javac *.java
  5. Do the file system creation simulation using this command:
    java mkfs [file_name_for_file_system] [block_size_in_byte] [block_amount]
  6. For example, please do this command:
    java mkfs filesys.dat 64 8
  7. Take note on how many i-nodes that can fit in 1 block (1 i-node = 64 bytes).
  8. Use the dump program to see the details of the file system that you made(note : the value is in 64 bytes).
    java dump filesys.dat
  9. Take note of the output of the representation result of the program's output above and the meaning of those representation.
  10. Use mkdir program to make an NPM directory at the root of your file system. For example the NPM that is used is 1202000818
    java mkdir /1202000818
  11. Re-run the dump program and take note of the changes made by executing mkdir program.
  12. Re-run the mkdir program. Create directory /KELAS, /JURUSAN, /NAMA_ANGKATAN, /FAKULTAS, /UNIVERSITAS. Change KELAS with your Class, change JURUSAN with your major (CS/SI), Change NAMA_ANGKATAN with your year-class name, change FAKULTAS with your faculty, change UNIVERSITAS with your university) and meanwhile doing the mkdir program, do the dump program too to see the changes.
  13. Take note on how many directories that you can make before you use the maximum capacity of the file system.
  14. Exit File_Sytem directory.
    cd ..
  15. Type all the observations that you made above to WHAT-IS-THIS.txt\.
  16. Move filesys.dat from File_System directory to your Lab08 directory, and delete File_System directory.
    mv File_System/filesys.dat .
    rm -rf File_System

Return to Lab 08
Return to Wiki