AmigaDOS (Amiga FFS and OFS)

AmigaDOS is the native file system of the Commodore Amiga (1985): the Old File System (OFS) and Fast File System (FFS) on floppies and hard disks. It survives in Amiga preservation, emulators and old disk images.

Overview

AmigaDOS uses 512-byte blocks. A boot block (DOS plus a flags byte) selects OFS or FFS and options such as international mode and directory caching. The root block sits in the middle of the volume and holds a hash table of directory entries, a bitmap pointer list and the volume name. Files are described by header blocks with block pointer tables and extension blocks. All structures carry checksums.

History

  • OFS (Old File System) shipped with the Amiga 1000 in 1985.
  • FFS (Fast File System) arrived with AmigaOS 1.3 in 1988.

Structures

Offsets are in bytes from the start of the structure named in each heading. Field names are descriptive and are not an official specification. Fixed-width integers are shown as u/i (unsigned/signed) followed by bit width and byte order.

Date

OffsetSizeTypeFieldNotes
(offset + 4)4u32 BEInutes
(offset + 8)4u32 BETicks
offset4u32 BEDays

Data Runs

OffsetSizeTypeFieldNotes
0x24u32 BECount
0x7E4u32 BEExtension
77 – i4u32 BE–

Enumerate Lost Entries

OffsetSizeTypeFieldNotes
0x04u32 BE–
0x14u32 BE–
0x7D4u32 BEEntry

Get Children

OffsetSizeTypeFieldNotes
0x04u32 BE–
0x34u32 BESlots
6 + s4u32 BEKey

Get Children

OffsetSizeTypeFieldNotes
0x04u32 BE–
0x14u32 BE–
0x7C4u32 BEKey

Make Entry

OffsetSizeTypeFieldNotes
0x504u32 BEProtection
0x514u32 BESize
0x754u32 BEReal

Make Entry

OffsetSizeTypeFieldNotes
0x14u32 BE–
0x514u32 BESize

Read Bitmap

OffsetSizeTypeFieldNotes
0x7F4u32 BEExtension
i4u32 BEPage

Read Bitmap

OffsetSizeTypeFieldNotes
0x684u32 BEExtension
i4u32 BEPage

Other fields read

Read inOffsetSizeTypeFieldNotes
Amiga Dos(longIndex * 4)4i32 BE–
Checksum Oki4u32 BE–
Data Runs0x04u32 BE–
Read Bitmapi4u32 BEBits
Is Root0x04u32 BE–

Constants

Amiga Dos

NameValueTypeNotes
BlockSize512int
THeader2, TData = 8, TList = 16int
StRoot1, StUserDir = 2, StSoftLink = 3, StLinkDir = 4, StFile = -3, StLinkFile = -4int
Epochnew(1978, 1, 1, 0, 0, 0, TimeSpan.Zero)DateTimeOffset

Implementation limits

ClassNameValueNotes
Amiga Dos File SystemMaxListBlocks100_000
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.