1 vol_id - probe filesystem and read label and uuid
3 This program is normally called from a udev rule, to provide udev with the
4 filesystem type of a volume and the label and uuid to name a device node.
5 vol_id opens the blockdevice node specified at the commandline. The following
6 commandline switches are supported to specify what vol_id should print:
8 --export prints all values
10 -l prints the label of the volume
11 -u prints the uuid of the volume
13 vol_id will only return successful if the string asked for, is not
14 empty. All trailing whitespace will be removed, spaces replaced by underscore
17 fstype probe label uuid fsversion
18 ----------------------------------------------------
21 reiserfs jr/3.5/3.6/4 * * * *
22 fat (12, 16, 32) * * * *
26 hfs (plus, wrapped) * * * -
42 Raid members are detected to prevent the probing for a filesystem
43 -----------------------------------------------------------------
57 If no label is found vol_id exits with nonzero and the rule will be
60 To give it a try, you may call it on the commandline:
61 $ extras/volume_id/vol_id --export /dev/sda6
62 ID_FS_USAGE=filesystem
65 ID_FS_UUID=3e999973-00c9-4917-9442-b7633bd95b9e
67 ID_FS_LABEL_SAFE=devel
69 $ extras/volume_id/vol_id -l /dev/sda6
72 $ extras/volume_id/vol_id -t /dev/sda6
76 Any comment/questions/concerns to me:
77 Kay Sievers <kay.sievers@vrfy.org>