• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..12-Aug-201312

lib/H14-Mar-201442

MakefileH A D14-Mar-20141.7 KiB

READMEH A D14-Mar-20143 KiB

vol_id.8H A D14-Mar-20141.8 KiB

vol_id.cH A D13-Aug-20136.8 KiB

vol_id.xmlH A D14-Mar-20144.4 KiB

README

1vol_id - probe filesystem and read label and uuid
2
3This program is normally called from a udev rule, to provide udev with the
4filesystem type of a volume and the label and uuid to name a device node.
5vol_id opens the blockdevice node specified at the commandline. The following
6commandline switches are supported to specify what vol_id should print:
7  --export        export key/value pairs
8  --type          filesystem type
9  --label         filesystem label
10  --label-raw     raw label
11  --uuid          filesystem uuid
12  --skip-raid     don't probe for raid
13  --probe-all     find possibly conflicting signatures
14  --help
15
16vol_id will only return successful if the string asked for, is not
17empty. All trailing whitespace will be removed, spaces replaced by underscore
18and slashes ignored.
19
20fstype                 probe  label  uuid  version
21--------------------------------------------------
22linux swap             *      *      *     *
23ext                    *      *      *     *
24reiserfs jr/3.5/3.6/4  *      *      *     *
25fat (12, 16, 32)       *      *      *     *
26ntfs                   *      *      *     *
27jfs                    *      *      *     -
28xfs                    *      *      *     -
29hfs (plus, wrapped)    *      *      *     -
30udf                    *      *      -     -
31iso9660                *      *      -     -
32ufs                    *      -      -     -
33cramfs                 *      *      -     -
34sysv                   *      *      -     *
35luks                   *      -      *     -
36hpfs                   *      -      -     -
37romfs                  *      *      -     -
38squashfs               *      -      -     -
39minix                  *      -      -     *
40ocfs (1, 2)            *      *      *     *
41vxfs                   *      -      -     *
42nss (netware)          *             *     *
43gfs, gfs2              *      -      -     -
44
45Raid members are detected to prevent the probing for a filesystem
46-----------------------------------------------------------------
47linux raid (md)        *      *      *     *
48LVM 1                  *      -      -     -
49LVM 2                  *      -      -     *
50ddf                    *      -      *     *
51highpoint              *      -      -     -
52isw_raid               *      -      -     -
53lsi_raid               *      -      -     -
54nvidia_raid            *      -      -     -
55promise_raid           *      -      -     -
56silicon_raid           *      -      -     -
57via_raid               *      -      -     -
58jmicron                *      -      -     -
59adaptec                *      -      -     -
60
61To give it a try, you may call it on the commandline:
62  $ extras/volume_id/vol_id --export /dev/sda6
63  ID_FS_USAGE=filesystem
64  ID_FS_TYPE=ext3
65  ID_FS_VERSION=1.0
66  ID_FS_UUID=3e999973-00c9-4917-9442-b7633bd95b9e
67  ID_FS_LABEL=devel
68  ID_FS_LABEL_SAFE=devel
69
70  $ extras/volume_id/vol_id --label /dev/sda6
71  devel
72
73  $ extras/volume_id/vol_id --type /dev/sda6
74  ext3
75
76
77Any comment/questions/concerns to me:
78  Kay Sievers <kay.sievers@vrfy.org>
79