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
  • Big Endian
  • Little Endian

Was this helpful?

  1. Important Commands
  2. Viewing with Hex Editor

Endian-ness in FAT32

PreviousViewing with Hex EditorNextLinux File System Calls

Last updated 5 years ago

Was this helpful?

Endian-ness is about byte ordering. We have two types: big endian and little endian.

Suppose we see the following, which represents the bytes per sector.

We have two ways to interpret this number, either 0x00 02 or 0x02 00

Big Endian

0x0002 = 2 bytes

Little Endian

0x0200 = 512 bytes

As in FAT32, little Endian is used. Therefore, the number of bytes per sector is 512 bytes.