---
name: "vol_id"
section: "8"
platform: "linux"
package: "udev"
version: "0.125-7+lenny3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/vol_id"
---

# vol\_id(8)

probe filesystem type and read label and uuid

## NAME

vol\_id - probe filesystem type and read label and uuid

## SYNOPSIS

**vol\_id** \[**--export**\] \[**--type**\] \[**--label**\] \[**--label-raw**\] \[**--uuid**\] \[**--skip-raid**\] \[**--probe-all**\] \[**--help**\] \[*device*\]

## DESCRIPTION

**vol\_id** is usually called from a udev rule, to provide udev with the filesystem type, the label and the uuid of a volume. It supports most of the common filesystem formats and detects various raid setups to prevent the recognition of raid members as a volume with a filesystem.

## OPTIONS

- **--export**

  Print all values in key/value format to import them into the environment.

- **--type**

  Print the filesystem type.

- **--label**

  Print the safe version of volume label suitable for use as filename.

- **--label-raw**

  Print the raw volume label.

- **--uuid**

  Print the uuid of a volume.

- **--skip-raid**

  Skip detection of raid metadata.

- **--probe-all**

  Probe for all types and print all matches.

- **--help**

  Print usage.

## ENVIRONMENT

**UDEV\_LOG**

Set the syslog priority.

## EXIT STATUS

**vol\_id** will only return successful if the value asked for is not empty. All trailing whitespace will be removed, spaces replaced by underscore and slashes ignored.

## AUTHOR

Written by Kay Sievers \<kay.sievers@vrfy.org\>

## SEE ALSO

[**udev**(7)](/udev/7.md)
