File System Simulation (revision 151111-r01)¶
Return to Lab 08
- Download disk simulation files:
wget --no-check-certificate https://projects.ui.ac.id/attachments/download/8256/File_System.tar.bz2
- Extract the compressed file and delete it later on:
tar xjf File_System.tar.bz2
rm -f File_System.tar.bz2
- Change your directory to File_System:
- Compile all java files:
- Do the file system creation simulation using this command:
java mkfs [file_name_for_file_system] [block_size_in_byte] [block_amount]
- For example, please do this command:
java mkfs filesys.dat 64 8
- Take note on how many i-nodes that can fit in 1 block (1 i-node = 64 bytes).
- 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
- Take note of the output of the representation result of the program's output above and the meaning of those representation.
- 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
- Re-run the dump program and take note of the changes made by executing mkdir program.
- Re-run the mkdir program. Create directory /KELAS, /JURUSAN, /NAMA_ANGKATAN, /FAKULTAS, /UNIVERSITAS. Change KELAS with your Class Code (e.g. A160), change JURUSAN with your major (e.g. 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.
- Take note on how many directories that you can make before you use the maximum capacity of the file system.
- Exit File_Sytem directory.
- Type all the observations that you made above to WHAT-IS-THIS.txt\.
- 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