This is a user space shell application that interprets a FAT32 file system image and allows users to open files, change directories, and display information about the filesystem . The user can open and close a FAT32 .img file, as well as execute basic commands such as ls, cd, info etc...
close info stat get cd ls read
Opens fat32.img file with error handling
Closes fat32.img with error handling
Print out values for: BPB_BytesPerSec BPB_SecPerClus BPB_RsvdSecCnt BPB_NumFATS BPB_FATSz32
Print attributes and starting cluster number of the file or directory name.
Retrieves file from the FAT32 image and places it in your cwd (current working directory). If it does not exist, print "Error: File not found."
Changes directories similar to a bash shell. Supports '..' to go back to previous directory
List directory contents.
Reads from the given file at the position, in bytes, specified by the position parameter and output the number bytes specified.' Byte is in size 1, use fseek and have the position be used as the offset. Number of bytes is the count to read.