chiark / gitweb /
volume_id: remove all partition table support
[elogind.git] / extras / volume_id / README
1 vol_id - volume, filesystem, disklabel reader
2
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
7 should print:
8
9   --export prints all values
10   -h       prints help text
11   -l       prints the label of the volume
12   -u       prints the uuid of the volume
13
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
16 and slashes ignored.
17
18 fstype                 probe  label  uuid  fsversion
19 ----------------------------------------------------
20 ext                    *      *      *     *
21 reiserfs jr/3.5/3.6/4  *      *      *     *
22 fat (12, 16, 32)       *      *      *     *
23 ntfs                   *      *      *     *
24 jfs                    *      *      *     -
25 xfs                    *      *      *     -
26 hfs (plus, wrapped)    *      *      *     -
27 udf                    *      *      -     -
28 iso9660                *      *      n/a   -
29 ufs                    *      -      -     -
30 linux swap             *      *      *     *
31 LVM 1                  *      -      -     -
32 LVM 2                  *      -      -     *
33 linux raid             *      -      *     *
34 cramfs                 *      *      -     -
35 sysv                   *      *      -     *
36 luks                   *      -      *     -
37 hpfs                   *      -      -     -
38 romfs                  *
39 squashfs               *
40 minix                  *
41 highpoint              *
42 isw_raid               *
43 lsi_raid               *
44 nvidia_raid            *
45 promise_raid           *
46 silicon_raid           *
47 via_raid               *
48
49
50 If no label is found vol_id exits with nonzero and the rule will be
51 ignored.
52
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
56   ID_FS_TYPE=ext3
57   ID_FS_VERSION=1.0
58   ID_FS_UUID=3e999973-00c9-4917-9442-b7633bd95b9e
59   ID_FS_LABEL=devel
60   ID_FS_LABEL_SAFE=devel
61
62   $ extras/volume_id/vol_id -l /dev/sda6
63   devel
64
65   $ extras/volume_id/vol_id -t /dev/sda6
66   ext3
67
68
69 Any comment/questions/concerns to me:
70   Kay Sievers <kay.sievers@vrfy.org>