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

Viewing with Hex Editor

PreviousDemoNextEndian-ness in FAT32

Last updated 5 years ago

Was this helpful?

In order to analyze the file system, we have to view it using hexadecimal editor.

There are two common hex editors in Ubuntu:

  • hexedit

  • xxd

Now try to view the disk file by hexedit. If you haven't unmount it, do it now.

In the terminal,

$ hexedit test.disk

There are three columns in the output:

  1. Line number in hexadecimal

  2. Content in Hexadeciaml

  3. Content in ASCII

For one hex digit, 4 bits (2^4 = 16) are needed to represent 0-15(0-F). Two hex digits occipies 8bits = 1 byte, therefore they are in group of two.