← browse the library
Disk / storage preview
icon

Disk / storage

A hard disk drive: enclosure with a platter, spindle hub, and read/write arm.

iddisk
typeicon
domainsystems
requirestikz
licenseCC0-1.0
authorOpenTikZ contributors

diskstoragehdddrivepersistencehardware

Download SVG
disk.tex
\documentclass[border=4pt]{standalone}

% --- packages (mirror these in disk.meta.json "requires") ---
\usepackage{tikz}

% --- palette (canonical source: reference/color-palettes/color-palettes.md; light variant) ---
\definecolor{otblue}{HTML}{0072B2}
\definecolor{otorange}{HTML}{E69F00}
\definecolor{otteal}{HTML}{009E73}
\definecolor{otpurple}{HTML}{CC79A7}
\definecolor{otgray}{HTML}{5A5A5A}

\begin{document}
\begin{tikzpicture}[line width=0.9pt]
  % drive enclosure
  \filldraw[draw=otgray!75, fill=otgray!10, rounded corners=3pt] (0,0) rectangle (2.6,2.2);
  % platter
  \filldraw[draw=otblue!70!black, fill=otblue!16] (1.15,1.1) circle[radius=0.85];
  % spindle hub
  \filldraw[draw=otblue!70!black, fill=otgray!22] (1.15,1.1) circle[radius=0.18];
  % read/write arm
  \draw[otorange!85!black, line width=1.6pt] (2.35,2.0) -- (1.5,0.95);
  \filldraw[otorange!85!black] (1.5,0.95) circle[radius=0.07];
\end{tikzpicture}
\end{document}

Use it

The file compiles on its own (\documentclass{standalone}). Drop it into your project and \input it, or copy the tikzpicture into your figure. Colours come from the shared palette defined in the preamble — edit those named colours, not raw hex.

Graphic content is CC0 1.0 (public domain) — reuse freely, no attribution required.