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
Offset
Size
Type
Field
Notes
0x84
8
bytes
Volume Name
0xBC
4
u32 BE
Has Vtoc
0x1B4
2
u16 BE
Heads
0x1B6
2
u16 BE
Sectors Per Track
0x1FC
2
u16 BE
–
(142 + i * 4)
2
u16 BE
Tag
(144 + i * 4)
2
u16 BE
Flags
(444 + i * 8)
4
u32 BE
Start Cylinder
(448 + i * 8)
4
u32 BE
Count
Parse X86
Offset
Size
Type
Field
Notes
0xC
4
u32 LE
–
0x14
8
bytes
Volume Name
0x1C
2
u16 LE
Sector Size
0x1E
2
u16 LE
Count
0x148
128
bytes
Description
0x1D4
4
u32 LE
Heads
0x1D8
4
u32 LE
Sectors Per Track
0x1FC
2
u16 LE
–
(entry + 2)
2
u16 LE
–
(entry + 4)
4
u32 LE
–
(entry + 8)
4
u32 LE
–
entry
2
u16 LE
–
Read Label
Offset
Size
Type
Field
Notes
0x0
512
bytes
–
0x200
512
bytes
–
Constants
Sun Module
Name
Value
Type
Notes
LabelMagic
0xDABE
ushort
VtocSanity
0x600DDEEE
uint
TagBoot
0x01
ushort
TagBackup
0x05
ushort
TagAlternates
0x09
ushort
Structures and constants were extracted from the implementation. Prose sections are a summary from public sources; verify details before relying on them.