commands

blkid — Probe storage signatures

Probe known signatures in an explicitly selected image; -p performs low-level probing. No match is not proof of empty storage. Use a fresh private workspace; live operations are VM-only.

Formal Syntax & Structure

linux syntaxlinux
blkid -p [-s TAG] [-o FORMAT] FILE

Parameters & Attributes

NameTypeDescription
-poptionLow-level probe
-soptionSelect tag
-ooptionOutput format
FILEoperandPrivate image

Return Value

exit status and output

Probe known signatures in an explicitly selected image; -p performs low-level probing. No match is not proof of empty storage.

Working Example

Example Snippetlinux
test ! -e ./fresh.swap && test ! -L ./fresh.swap || exit 1dd if=/dev/zero of=./fresh.swap bs=1M count=1 status=nonechmod 600 ./fresh.swapmkswap -U 12345678-1234-4234-8234-123456789abc ./fresh.swap > swap.logblkid -p -s TYPE -o value ./fresh.swap
Linux Reference