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