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] FILEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -p | option | Low-level probe |
| -s | option | Select tag |
| -o | option | Output format |
| FILE | operand | Private 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