{
    "content": [
        {
            "type": "text",
            "text": "# BLKID (info)\n\n## NAME\n\nblkid - locate/print block device attributes\n\n## SYNOPSIS\n\nblkid --label label | --uuid uuid\nblkid [--no-encoding --garbage-collect --list-one --cache-file file]\n[--output format] [--match-tag tag] [--match-token NAME=value]\n[device...]\nblkid --probe [--offset offset] [--output format] [--size size]\n[--match-tag tag] [--match-types list] [--usages list]\n[--no-part-details] device...\nblkid --info [--output format] [--match-tag tag] device...\n\n## DESCRIPTION\n\nThe blkid program is the command-line interface to working with the\nlibblkid(3) library. It can determine the type of content (e.g.,\nfilesystem or swap) that a block device holds, and also the attributes\n(tokens, NAME=value pairs) from the content metadata (e.g., LABEL or\nUUID fields).\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (9 subsections)\n- **EXIT STATUS**\n- **CONFIGURATION FILE**\n- **ENVIRONMENT**\n- **AUTHORS**\n- **SEE ALSO**\n- **REPORTING BUGS**\n- **AVAILABILITY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "BLKID",
        "section": "",
        "mode": "info",
        "summary": "blkid - locate/print block device attributes",
        "synopsis": "blkid --label label | --uuid uuid\nblkid [--no-encoding --garbage-collect --list-one --cache-file file]\n[--output format] [--match-tag tag] [--match-token NAME=value]\n[device...]\nblkid --probe [--offset offset] [--output format] [--size size]\n[--match-tag tag] [--match-types list] [--usages list]\n[--no-part-details] device...\nblkid --info [--output format] [--match-tag tag] device...",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "-d",
                "long": "--no-encoding",
                "arg": null,
                "description": "Don't encode non-printing characters. The non-printing characters are encoded by ^ and M- notation by default. Note that the --output udev output format uses a different encoding which cannot be disabled."
            },
            {
                "flag": "-D",
                "long": "--no-part-details",
                "arg": null,
                "description": "Don't print information (PARTENTRY* tags) from partition table in low-level probing mode."
            },
            {
                "flag": "-g",
                "long": "--garbage-collect",
                "arg": null,
                "description": "Perform a garbage collection pass on the blkid cache to remove devices which no longer exist."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display a usage message and exit. -H, --hint setting Set probing hint. The hints are optional way how to force probing functions to check for example another location. The currently supported is \"sessionoffset=number\" to set session offset on multi-session UDF."
            },
            {
                "flag": "-i",
                "long": "--info",
                "arg": null,
                "description": "Display information about I/O Limits (aka I/O topology). The 'export' output format is automatically enabled. This option can be used together with the --probe option."
            },
            {
                "flag": "-k",
                "long": "--list-filesystems",
                "arg": null,
                "description": "List all known filesystems and RAIDs and exit."
            },
            {
                "flag": "-l",
                "long": "--list-one",
                "arg": null,
                "description": "Look up only one device that matches the search parameter specified with the --match-token option. If there are multiple devices that match the specified search parameter, then the device with the highest priority is returned, and/or the first device found at a given priority (but see below note about udev). Device types in order of decreasing priority are: Device Mapper, EVMS, LVM, MD, and finally regular block devices. If this option is not specified, blkid will print all of the devices that match the search parameter. This option forces blkid to use udev when used for LABEL or UUID tokens in --match-token. The goal is to provide output consistent with other utils (like mount(8), etc.) on systems where the same tag is used for multiple devices. -L, --label label Look up the device that uses this filesystem label; this is equal to --list-one --output device --match-token LABEL=label. This lookup method is able to reliably use /dev/disk/by-label udev symlinks (dependent on a setting in /etc/blkid.conf). Avoid using the symlinks directly; it is not reliable to use the symlinks without verification. The --label option works on systems with and without udev. Unfortunately, the original blkid(8) from e2fsprogs uses the -L option as a synonym for -o list. For better portability, use -l -o device -t LABEL=label and -o list in your scripts rather than the -L option. -n, --match-types list Restrict the probing functions to the specified (comma-separated) list of superblock types (names). The list items may be prefixed with \"no\" to specify the types which should be ignored. For example: blkid --probe --match-types vfat,ext3,ext4 /dev/sda1 probes for vfat, ext3 and ext4 filesystems, and blkid --probe --match-types nominix /dev/sda1 probes for all supported formats except minix filesystems. This option is only useful together with --probe. -o, --output format Use the specified output format. Note that the order of variables and devices is not fixed. See also option -s. The format parameter may be: full print all tags (the default) value print the value of the tags list print the devices in a user-friendly format; this output format is unsupported for low-level probing (--probe or --info). This output format is DEPRECATED in favour of the lsblk(8) command. device print the device name only; this output format is always enabled for the --label and --uuid options udev print key=\"value\" pairs for easy import into the udev environment; the keys are prefixed by IDFS or IDPART prefixes. The value may be modified to be safe for udev environment; allowed is plain ASCII, hex-escaping and valid UTF-8, everything else (including whitespaces) is replaced with ''. The keys with ENC postfix use hex-escaping for unsafe chars. The udev output returns the IDFSAMBIVALENT tag if more superblocks are detected, and IDPARTENTRY* tags are always returned for all partitions including empty partitions. This output format is DEPRECATED. export print key=value pairs for easy import into the environment; this output format is automatically enabled when I/O Limits (--info option) are requested. The non-printing characters are encoded by ^ and M- notation and all potentially unsafe characters are escaped. -O, --offset offset Probe at the given offset (only useful with --probe). This option can be used together with the --info option."
            },
            {
                "flag": "-p",
                "long": "--probe",
                "arg": null,
                "description": "Switch to low-level superblock probing mode (bypassing the cache). Note that low-level probing also returns information about partition table type (PTTYPE tag) and partitions (PARTENTRY* tags). The tag names produced by low-level probing are based on names used internally by libblkid and it may be different than when executed without --probe (for example PARTENTRYUUID= vs PARTUUID=). See also --no-part-details. -s, --match-tag tag For each (specified) device, show only the tags that match tag. It is possible to specify multiple --match-tag options. If no tag is specified, then all tokens are shown for all (specified) devices. In order to just refresh the cache without showing any tokens, use --match-tag none with no other options. -S, --size size Override the size of device/file (only useful with --probe). -t, --match-token NAME=value Search for block devices with tokens named NAME that have the value value, and display any devices which are found. Common values for NAME include TYPE, LABEL, and UUID. If there are no devices specified on the command line, all block devices will be searched; otherwise only the specified devices are searched. -u, --usages list Restrict the probing functions to the specified (comma-separated) list of \"usage\" types. Supported usage types are: filesystem, raid, crypto and other. The list items may be prefixed with \"no\" to specify the usage types which should be ignored. For example: blkid --probe --usages filesystem,other /dev/sda1 probes for all filesystem and other (e.g., swap) formats, and blkid --probe --usages noraid /dev/sda1 probes for all supported formats except RAIDs. This option is only useful together with --probe. -U, --uuid uuid Look up the device that uses this filesystem uuid. For more details see the --label option."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Display version number and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "libblkid",
                "section": "3",
                "url": "https://www.chedong.com/phpMan.php/man/libblkid/3/json"
            },
            {
                "name": "findfs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/findfs/8/json"
            },
            {
                "name": "lsblk",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lsblk/8/json"
            },
            {
                "name": "wipefs",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/wipefs/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 34,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 13,
                "subsections": [
                    {
                        "name": "-d, --no-encoding",
                        "lines": 5,
                        "flag": "-d",
                        "long": "--no-encoding"
                    },
                    {
                        "name": "-D, --no-part-details",
                        "lines": 3,
                        "flag": "-D",
                        "long": "--no-part-details"
                    },
                    {
                        "name": "-g, --garbage-collect",
                        "lines": 3,
                        "flag": "-g",
                        "long": "--garbage-collect"
                    },
                    {
                        "name": "-h, --help",
                        "lines": 8,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-i, --info",
                        "lines": 4,
                        "flag": "-i",
                        "long": "--info"
                    },
                    {
                        "name": "-k, --list-filesystems",
                        "lines": 2,
                        "flag": "-k",
                        "long": "--list-filesystems"
                    },
                    {
                        "name": "-l, --list-one",
                        "lines": 93,
                        "flag": "-l",
                        "long": "--list-one"
                    },
                    {
                        "name": "-p, --probe",
                        "lines": 45,
                        "flag": "-p",
                        "long": "--probe"
                    },
                    {
                        "name": "-V, --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "CONFIGURATION FILE",
                "lines": 23,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "blkid - locate/print block device attributes\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "blkid --label label | --uuid uuid\n\nblkid [--no-encoding --garbage-collect --list-one --cache-file file]\n[--output format] [--match-tag tag] [--match-token NAME=value]\n[device...]\n\nblkid --probe [--offset offset] [--output format] [--size size]\n[--match-tag tag] [--match-types list] [--usages list]\n[--no-part-details] device...\n\nblkid --info [--output format] [--match-tag tag] device...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "The blkid program is the command-line interface to working with the\nlibblkid(3) library. It can determine the type of content (e.g.,\nfilesystem or swap) that a block device holds, and also the attributes\n(tokens, NAME=value pairs) from the content metadata (e.g., LABEL or\nUUID fields).\n\nIt is recommended to use lsblk(8) command to get information about\nblock devices, or lsblk --fs to get an overview of filesystems, or\nfindmnt(8) to search in already mounted filesystems.\n\nlsblk(8) provides more information, better control on output\nformatting, easy to use in scripts and it does not require\nroot permissions to get actual information. blkid reads\ninformation directly from devices and for non-root users it\nreturns cached unverified information. blkid is mostly\ndesigned for system services and to test libblkid(3)\nfunctionality.\n\nWhen device is specified, tokens from only this device are displayed.\nIt is possible to specify multiple device arguments on the command\nline. If none is given, all partitions or unpartitioned devices which\nappear in /proc/partitions are shown, if they are recognized.\n\nblkid has two main forms of operation: either searching for a device\nwith a specific NAME=value pair, or displaying NAME=value pairs for one\nor more specified devices.\n\nFor security reasons blkid silently ignores all devices where the\nprobing result is ambivalent (multiple colliding filesystems are\ndetected). The low-level probing mode (-p) provides more information\nand extra exit status in this case. It's recommended to use wipefs(8)\nto get a detailed overview and to erase obsolete stuff (magic strings)\nfrom the device.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "The size and offset arguments may be followed by the multiplicative\nsuffixes like KiB (=1024), MiB (=1024*1024), and so on for GiB, TiB,\nPiB, EiB, ZiB and YiB (the \"iB\" is optional, e.g., \"K\" has the same\nmeaning as \"KiB\"), or the suffixes KB (=1000), MB (=1000*1000), and so\non for GB, TB, PB, EB, ZB and YB.\n\n-c, --cache-file cachefile\nRead from cachefile instead of reading from the default cache file\n(see the CONFIGURATION FILE section for more details). If you want\nto start with a clean cache (i.e., don't report devices previously\nscanned but not necessarily available at this time), specify\n/dev/null.\n",
                "subsections": [
                    {
                        "name": "-d, --no-encoding",
                        "content": "Don't encode non-printing characters. The non-printing characters\nare encoded by ^ and M- notation by default. Note that the --output\nudev output format uses a different encoding which cannot be\ndisabled.\n",
                        "flag": "-d",
                        "long": "--no-encoding"
                    },
                    {
                        "name": "-D, --no-part-details",
                        "content": "Don't print information (PARTENTRY* tags) from partition table in\nlow-level probing mode.\n",
                        "flag": "-D",
                        "long": "--no-part-details"
                    },
                    {
                        "name": "-g, --garbage-collect",
                        "content": "Perform a garbage collection pass on the blkid cache to remove\ndevices which no longer exist.\n",
                        "flag": "-g",
                        "long": "--garbage-collect"
                    },
                    {
                        "name": "-h, --help",
                        "content": "Display a usage message and exit.\n\n-H, --hint setting\nSet probing hint. The hints are optional way how to force probing\nfunctions to check for example another location. The currently\nsupported is \"sessionoffset=number\" to set session offset on\nmulti-session UDF.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-i, --info",
                        "content": "Display information about I/O Limits (aka I/O topology). The\n'export' output format is automatically enabled. This option can be\nused together with the --probe option.\n",
                        "flag": "-i",
                        "long": "--info"
                    },
                    {
                        "name": "-k, --list-filesystems",
                        "content": "List all known filesystems and RAIDs and exit.\n",
                        "flag": "-k",
                        "long": "--list-filesystems"
                    },
                    {
                        "name": "-l, --list-one",
                        "content": "Look up only one device that matches the search parameter specified\nwith the --match-token option. If there are multiple devices that\nmatch the specified search parameter, then the device with the\nhighest priority is returned, and/or the first device found at a\ngiven priority (but see below note about udev). Device types in\norder of decreasing priority are: Device Mapper, EVMS, LVM, MD, and\nfinally regular block devices. If this option is not specified,\nblkid will print all of the devices that match the search\nparameter.\n\nThis option forces blkid to use udev when used for LABEL or UUID\ntokens in --match-token. The goal is to provide output consistent\nwith other utils (like mount(8), etc.) on systems where the same\ntag is used for multiple devices.\n\n-L, --label label\nLook up the device that uses this filesystem label; this is equal\nto --list-one --output device --match-token LABEL=label. This\nlookup method is able to reliably use /dev/disk/by-label udev\nsymlinks (dependent on a setting in /etc/blkid.conf). Avoid using\nthe symlinks directly; it is not reliable to use the symlinks\nwithout verification. The --label option works on systems with and\nwithout udev.\n\nUnfortunately, the original blkid(8) from e2fsprogs uses the -L\noption as a synonym for -o list. For better portability, use -l -o\ndevice -t LABEL=label and -o list in your scripts rather than the\n-L option.\n\n-n, --match-types list\nRestrict the probing functions to the specified (comma-separated)\nlist of superblock types (names). The list items may be prefixed\nwith \"no\" to specify the types which should be ignored. For\nexample:\n\nblkid --probe --match-types vfat,ext3,ext4 /dev/sda1\n\nprobes for vfat, ext3 and ext4 filesystems, and\n\nblkid --probe --match-types nominix /dev/sda1\n\nprobes for all supported formats except minix filesystems. This\noption is only useful together with --probe.\n\n-o, --output format\nUse the specified output format. Note that the order of variables\nand devices is not fixed. See also option -s. The format parameter\nmay be:\n\nfull\nprint all tags (the default)\n\nvalue\nprint the value of the tags\n\nlist\nprint the devices in a user-friendly format; this output format\nis unsupported for low-level probing (--probe or --info).\n\nThis output format is DEPRECATED in favour of the lsblk(8)\ncommand.\n\ndevice\nprint the device name only; this output format is always\nenabled for the --label and --uuid options\n\nudev\nprint key=\"value\" pairs for easy import into the udev\nenvironment; the keys are prefixed by IDFS or IDPART\nprefixes. The value may be modified to be safe for udev\nenvironment; allowed is plain ASCII, hex-escaping and valid\nUTF-8, everything else (including whitespaces) is replaced with\n''. The keys with ENC postfix use hex-escaping for unsafe\nchars.\n\nThe udev output returns the IDFSAMBIVALENT tag if more\nsuperblocks are detected, and IDPARTENTRY* tags are always\nreturned for all partitions including empty partitions.\n\nThis output format is DEPRECATED.\n\nexport\nprint key=value pairs for easy import into the environment;\nthis output format is automatically enabled when I/O Limits\n(--info option) are requested.\n\nThe non-printing characters are encoded by ^ and M- notation\nand all potentially unsafe characters are escaped.\n\n-O, --offset offset\nProbe at the given offset (only useful with --probe). This option\ncan be used together with the --info option.\n",
                        "flag": "-l",
                        "long": "--list-one"
                    },
                    {
                        "name": "-p, --probe",
                        "content": "Switch to low-level superblock probing mode (bypassing the cache).\n\nNote that low-level probing also returns information about\npartition table type (PTTYPE tag) and partitions (PARTENTRY*\ntags). The tag names produced by low-level probing are based on\nnames used internally by libblkid and it may be different than when\nexecuted without --probe (for example PARTENTRYUUID= vs\nPARTUUID=). See also --no-part-details.\n\n-s, --match-tag tag\nFor each (specified) device, show only the tags that match tag. It\nis possible to specify multiple --match-tag options. If no tag is\nspecified, then all tokens are shown for all (specified) devices.\nIn order to just refresh the cache without showing any tokens, use\n--match-tag none with no other options.\n\n-S, --size size\nOverride the size of device/file (only useful with --probe).\n\n-t, --match-token NAME=value\nSearch for block devices with tokens named NAME that have the value\nvalue, and display any devices which are found. Common values for\nNAME include TYPE, LABEL, and UUID. If there are no devices\nspecified on the command line, all block devices will be searched;\notherwise only the specified devices are searched.\n\n-u, --usages list\nRestrict the probing functions to the specified (comma-separated)\nlist of \"usage\" types. Supported usage types are: filesystem, raid,\ncrypto and other. The list items may be prefixed with \"no\" to\nspecify the usage types which should be ignored. For example:\n\nblkid --probe --usages filesystem,other /dev/sda1\n\nprobes for all filesystem and other (e.g., swap) formats, and\n\nblkid --probe --usages noraid /dev/sda1\n\nprobes for all supported formats except RAIDs. This option is only\nuseful together with --probe.\n\n-U, --uuid uuid\nLook up the device that uses this filesystem uuid. For more details\nsee the --label option.\n",
                        "flag": "-p",
                        "long": "--probe"
                    },
                    {
                        "name": "-V, --version",
                        "content": "Display version number and exit.\n",
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "If the specified device or device addressed by specified token (option\n--match-token) was found and it's possible to gather any information\nabout the device, an exit status 0 is returned. Note the option\n--match-tag filters output tags, but it does not affect exit status.\n\nIf the specified token was not found, or no (specified) devices could\nbe identified, or it is impossible to gather any information about the\ndevice identifiers or device content an exit status of 2 is returned.\n\nFor usage or other errors, an exit status of 4 is returned.\n\nIf an ambivalent probing result was detected by low-level probing mode\n(-p), an exit status of 8 is returned.\n",
                "subsections": []
            },
            "CONFIGURATION FILE": {
                "content": "The standard location of the /etc/blkid.conf config file can be\noverridden by the environment variable BLKIDCONF. The following\noptions control the libblkid library:\n\nSENDUEVENT=<yes|not>\nSends uevent when /dev/disk/by-{label,uuid,partuuid,partlabel}/\nsymlink does not match with LABEL, UUID, PARTUUID or PARTLABEL on\nthe device. Default is \"yes\".\n\nCACHEFILE=<path>\nOverrides the standard location of the cache file. This setting can\nbe overridden by the environment variable BLKIDFILE. Default is\n/run/blkid/blkid.tab, or /etc/blkid.tab on systems without a /run\ndirectory.\n\nEVALUATE=<methods>\nDefines LABEL and UUID evaluation method(s). Currently, the\nlibblkid library supports the \"udev\" and \"scan\" methods. More than\none method may be specified in a comma-separated list. Default is\n\"udev,scan\". The \"udev\" method uses udev /dev/disk/by-* symlinks\nand the \"scan\" method scans all block devices from the\n/proc/partitions file.\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "Setting LIBBLKIDDEBUG=all enables debug output.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "blkid was written by Andreas Dilger for libblkid and improved by\nTheodore Ts'o and Karel Zak.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "libblkid(3), findfs(8), lsblk(8), wipefs(8)\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "For bug reports, use the issue tracker at\nhttps://github.com/karelzak/util-linux/issues.\n",
                "subsections": []
            },
            "AVAILABILITY": {
                "content": "The blkid command is part of the util-linux package which can be\ndownloaded from Linux Kernel Archive\n<https://www.kernel.org/pub/linux/utils/util-linux/>.\n\nutil-linux 2.37.2                 2021-07-20                          BLKID(8)",
                "subsections": []
            }
        }
    }
}