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>-t</option></arg>
30 <arg><option>-l</option></arg>
31 <arg><option>-u</option></arg>
32 <arg><replaceable>device</replaceable></arg>
36 <refsect1><title>DESCRIPTION</title>
37 <para><command>vol_id</command> is usually called from a udev rule, to
38 provide udev with the filesystem type, the label and the uuid of a
39 volume. <command>vol_id</command> supports all common filesystem formats
40 and detects various raid setups to prevent the recognition of raid members
41 as a volume with a filesystem.</para>
44 <refsect1><title>OPTIONS</title>
47 <term><option>--export</option></term>
49 <para>print all values in key/value format to import them into the
54 <term><option>-t</option></term>
56 <para>print the filesystem type</para>
60 <term><option>-l</option></term>
63 print the safe version of volume label suitable for
64 use as filename. Use <option>-L</option> to print literal label
69 <term><option>-u</option></term>
71 <para>print the uuid of a volume</para>
75 <term><option>-L</option></term>
78 print raw volume label
85 <refsect1><title>ENVIRONMENT</title>
88 <term><option>UDEV_LOG</option></term>
90 <para>Set the syslog priority.</para>
96 <refsect1><title>EXIT STATUS</title>
97 <para><command>vol_id</command> will only return successful if the
98 value asked for is not empty. All trailing whitespace will be removed,
99 spaces replaced by underscore and slashes ignored.</para>
102 <refsect1><title>AUTHOR</title>
103 <para>Written by Kay Sievers <email>kay.sievers@vrfy.org</email></para>
107 <title>SEE ALSO</title>
109 <refentrytitle>udev</refentrytitle><manvolnum>7</manvolnum>
110 </citerefentry></para>