Disk Storage II : Physical Data Storage


Physical disk storage is composed of patterns (usually magnetic) stored in concentriccircles on the surface of (one or more) platters.


Components of Physical Disk Storage




Physical I/O Information Requirements




Translation of Logical Data Storage Requirements




Major Components of Boot Sector

offset contents
0000h E9 xx xx or EB xx 90 (JMP to bootstrap code)
0003h OEM name and version (8 bytes)
000Bh bytes per sector (2 bytes)
000Dh sectors per allocation unit (1 byte)
000Eh reserved sectors, starting at 0 (2 bytes)
0010h number of copies of FAT (1 byte)
0011h number of root directory entries (2 bytes)
-- if <4087 12-bit FAT entries
-- otherwise 16-bit FAT entries
0013h number of sectors in (logical) drive (2 bytes)
0015h media descriptor byte
-- 0F0h: 3.5" DSHD (18 sectors/track)
-- 0F8h: fixed disk
-- 0F9h: 5.25" DSHD (15 sectors/track)
-- ---- 3.5" DSDD (9 sectors/track)
-- 0FCh: 5.25" SS (9 sectors/track)
-- 0FDh: 5.25" DS (9 sectors/track)
-- ---- 8" SSSD (DOS 2+)
-- 0FEh: 5.25" SS (8 sectors/track)
-- ---- 8" SSSD (DOS 1)
-- ---- 8" DSDD
-- 0FFh: 5.25" DS (8 sectors/track)
0016h number of sectors per FAT (2 bytes)
0018h sectors per track (2 bytes)
001Ah number of heads (2 bytes)
001Ch number of hidden sectors (4 bytes)
0020h sectors in logical volume (DOS 4+; size>32MB) (4 bytes)
0024h physical drive number (1 byte)
0025h reserved/unused
0026h 29h ("extended boot signature")
0027h volume ID (4 bytes)
002Bh volume label (11 bytes)
0036h unused/reserved (8 bytes)
003Eh bootstrap code




MS-DOS Directory Structure

Each directory entry is a 32 (20h) byte record.