Sun Disk Label (VTOC)

The Sun disk label (VTOC) is the partition scheme of SunOS and Solaris on SPARC (and x86) with eight slices, where slice 2 conventionally covers the whole disk. It appears on older Sun and Solaris disks.

Overview

A Sun label is stored in sector 0. It holds an ASCII description, a Volume Table of Contents (VTOC) with a sanity value (0x600DDEEE), partition tags and flags, geometry, and a partition table of eight slices with start cylinder and block counts. A checksum covers the label and the magic 0xDABE terminates it. Slice 2 conventionally represents the whole disk.

History

  • Used since SunOS 4 and Solaris 2 on SPARC.
  • Solaris x86 uses a similar VTOC inside a fdisk partition; later versions adopted EFI labels for large disks.

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.

Parse Sparc

OffsetSizeTypeFieldNotes
0x848bytesVolume Name
0xBC4u32 BEHas Vtoc
0x1B42u16 BEHeads
0x1B62u16 BESectors Per Track
0x1FC2u16 BE–
(142 + i * 4)2u16 BETag
(144 + i * 4)2u16 BEFlags
(444 + i * 8)4u32 BEStart Cylinder
(448 + i * 8)4u32 BECount

Parse X86

OffsetSizeTypeFieldNotes
0xC4u32 LE–
0x148bytesVolume Name
0x1C2u16 LESector Size
0x1E2u16 LECount
0x148128bytesDescription
0x1D44u32 LEHeads
0x1D84u32 LESectors Per Track
0x1FC2u16 LE–
(entry + 2)2u16 LE–
(entry + 4)4u32 LE–
(entry + 8)4u32 LE–
entry2u16 LE–

Read Label

OffsetSizeTypeFieldNotes
0x0512bytes–
0x200512bytes–

Constants

Sun Module

NameValueTypeNotes
LabelMagic0xDABEushort
VtocSanity0x600DDEEEuint
TagBoot0x01ushort
TagBackup0x05ushort
TagAlternates0x09ushort
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.