1 vol_id - partition, 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 partition 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 partition
12 -u prints the uuid of the partition
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) * * * -
51 The following rule will create a symlink named with the label string:
52 KERNEL=="[hs]d*", PROGRAM=="/sbin/vol_id -l %N", SYMLINK+="%c"
54 If no label is found vol_id exits with nonzero and the rule will be
57 To give it a try, you may call it on the commandline:
58 [root@pim udev.kay]# extras/volume_id/vol_id /dev/hda3
62 U:d2da42b5-bbd9-44eb-a72c-cc4542fcb71e
64 [root@pim udev.kay]# extras/volume_id/vol_id -l /dev/hda3
67 [root@pim udev.kay]# extras/volume_id/vol_id -t /dev/hda3
71 Any comment/questions/concerns to me:
72 Kay Sievers <kay.sievers@vrfy.org>