1 \documentclass{article}
2 \usepackage[utf8]{inputenc}
4 \usetikzlibrary{arrows,positioning,fit,shapes,calc,trees}
7 \usepackage[active,tightpage]{preview}
8 \PreviewEnvironment{tikzpicture}
9 \setlength\PreviewBorder{5pt}%
14 every node/.style = { scale=3 },
16 cylinder, draw, aspect=0.7,
17 fill = green!40, rounded corners,
18 font = \fontfamily{cmss}\Huge,
19 minimum width = 0.8in, minimum height = 0.7in,
28 \node [hdisk] (hdisk) at (0,0) { Host file \\ ``disk.img'' };
30 % Lines dropping down, text beside them.
32 \draw (hdisk.before bottom) -- ($ (hdisk.before bottom) - (0,1in) $);
33 \node at ($ (hdisk.before bottom) + (0.4in,0) $) [rotate=70, anchor=east] { MBR };
35 \draw ($ (hdisk.before bottom) + (0.5in,0) $) -- ($ (hdisk.before bottom) + (0.5in,-1in) $);
36 \node at ($ (hdisk.before bottom) + (0.8in,0) + (0.2in,0) $) [rotate=70, anchor=east] { boot };
38 \draw ($ (hdisk.before bottom) + (1.2in,0) $) -- ($ (hdisk.before bottom) + (1.2in,-1in) $);
39 \node at ($ (hdisk.before bottom) + (3in,0) + (0.2in,0) $) [rotate=70, anchor=east] { LVM };
41 \draw ($ (hdisk.after top) - (1.4in,0) $) -- ($ (hdisk.after top) - (1.4in,1in) $);
42 \node at ($ (hdisk.after top) - (0.8in,0) + (0.2in,0) $) [rotate=70, anchor=east] { spare };
44 \draw (hdisk.after top) -- ($ (hdisk.after top) - (0,1in) $);