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>--help</option></arg>
36 <arg><replaceable>device</replaceable></arg>
40 <refsect1><title>DESCRIPTION</title>
41 <para><command>vol_id</command> is usually called from a udev rule, to
42 provide udev with the filesystem type, the label and the uuid of a
43 volume. It supports most of the common filesystem formats and detects
44 various raid setups to prevent the recognition of raid members
45 as a volume with a filesystem.</para>
48 <refsect1><title>OPTIONS</title>
51 <term><option>--export</option></term>
53 <para>Print all values in key/value format to import them into the
58 <term><option>--type</option></term>
60 <para>Print the filesystem type.</para>
64 <term><option>--label</option></term>
67 Print the safe version of volume label suitable for
73 <term><option>--label-raw</option></term>
76 Print the raw volume label.
81 <term><option>--uuid</option></term>
83 <para>Print the uuid of a volume.</para>
87 <term><option>--skip-raid</option></term>
89 <para>Skip detection of raid metadata.</para>
93 <term><option>--probe-all</option></term>
95 <para>Probe for all types and print all matches.</para>
99 <term><option>--help</option></term>
101 <para>Print usage.</para>
107 <refsect1><title>ENVIRONMENT</title>
110 <term><option>UDEV_LOG</option></term>
112 <para>Set the syslog priority.</para>
118 <refsect1><title>EXIT STATUS</title>
119 <para><command>vol_id</command> will only return successful if the
120 value asked for is not empty. All trailing whitespace will be removed,
121 spaces replaced by underscore and slashes ignored.</para>
124 <refsect1><title>AUTHOR</title>
125 <para>Written by Kay Sievers <email>kay.sievers@vrfy.org</email></para>
129 <title>SEE ALSO</title>
131 <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum>
132 </citerefentry></para>