2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
11 <date>March 2006</date>
12 <productname>volume_id</productname>
16 <refentrytitle>vol_id</refentrytitle>
17 <manvolnum>8</manvolnum>
18 <refmiscinfo class="version"></refmiscinfo>
22 <refname>vol_id</refname><refpurpose>probe filesystem type and read label and uuid</refpurpose>
27 <command>vol_id</command>
28 <arg><option>--export</option></arg>
29 <arg><option>--type</option></arg>
30 <arg><option>--label</option></arg>
31 <arg><option>--label-raw</option></arg>
32 <arg><option>--uuid</option></arg>
33 <arg><option>--skip-raid</option></arg>
34 <arg><option>--probe-all</option></arg>
35 <arg><option>--offset=<replaceable>bytes</replaceable></option></arg>
36 <arg><option>--debug</option></arg>
37 <arg><option>--help</option></arg>
38 <arg><replaceable>device</replaceable></arg>
42 <refsect1><title>DESCRIPTION</title>
43 <para><command>vol_id</command> is usually called from a udev rule, to
44 provide udev with the filesystem type, the label and the uuid of a
45 volume. It supports most of the common filesystem formats and detects
46 various raid setups to prevent the recognition of raid members
47 as a volume with a filesystem.</para>
50 <refsect1><title>OPTIONS</title>
53 <term><option>--export</option></term>
55 <para>Print all values in key/value format to import them into the
60 <term><option>--type</option></term>
62 <para>Print the filesystem type.</para>
66 <term><option>--label</option></term>
69 Print the safe version of volume label suitable for
75 <term><option>--label-raw</option></term>
78 Print the raw volume label.
83 <term><option>--uuid</option></term>
85 <para>Print the uuid of a volume.</para>
89 <term><option>--skip-raid</option></term>
91 <para>Skip detection of raid metadata.</para>
95 <term><option>--probe-all</option></term>
97 <para>Probe for all types and print all matches.</para>
101 <term><option>--offset=<replaceable>bytes</replaceable></option></term>
103 <para>Probing at the given offset, instead of the start of the volume.
104 The offset value is specified in bytes.</para>
108 <term><option>--debug</option></term>
110 <para>Print debug messages to stderr.</para>
114 <term><option>--help</option></term>
116 <para>Print usage.</para>
122 <refsect1><title>ENVIRONMENT</title>
125 <term><option>UDEV_LOG</option></term>
127 <para>Set the syslog priority.</para>
133 <refsect1><title>EXIT STATUS</title>
134 <para><command>vol_id</command> will only return successful if the
135 value asked for is not empty. All trailing whitespace will be removed,
136 spaces replaced by underscore and slashes ignored.</para>
139 <refsect1><title>AUTHOR</title>
140 <para>Written by Kay Sievers <email>kay.sievers@vrfy.org</email></para>
144 <title>SEE ALSO</title>
146 <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum>
147 </citerefentry></para>