lab9 Filesystem
  • Introduction
  • Important Commands
    • File Permissions
    • Disk Duplication
    • Create FAT Filesystems
    • Check and Repair FAT filesystem
    • Mount
    • Demo
    • Viewing with Hex Editor
      • Endian-ness in FAT32
  • Linux File System Calls
  • Directory Related Calls in C Language
  • Overview of FAT32
  • Accessing FAT using C
    • C Header of FAT
      • Header: Boot Sector
      • Header: Dir Entry
      • Read the header
    • 8+3 File Name
    • Traversing Cluster
    • Finding Next Cluster
    • Reference
Powered by GitBook
On this page

Was this helpful?

  1. Important Commands

Check and Repair FAT filesystem

PreviousCreate FAT FilesystemsNextMount

Last updated 5 years ago

Was this helpful?

In Linux, we have a tool to check the details of the FAT filesystem. The command isdosfcsk.

By this command, we can verify the disk we initialized earlier.

To verify,

$ dosfsck -v test.disk

Then the following will appear:

This agrees with the settings ofmkfs.vfatthat we ran.