{"id":1752,"date":"2014-11-21T11:00:02","date_gmt":"2014-11-21T11:00:02","guid":{"rendered":"http:\/\/linoxide.com\/how-tos\/linux-command-lsblk-blkid\/"},"modified":"2026-01-29T11:42:06","modified_gmt":"2026-01-29T11:42:06","slug":"linux-command-lsblk-blkid","status":"publish","type":"post","link":"https:\/\/linoxide.com\/linux-command-lsblk-blkid\/","title":{"rendered":"Linux blkid Command to Find Block Devices Details"},"content":{"rendered":"\n<p>The&nbsp;<strong>blkid<\/strong>&nbsp;program is a command-line utility that displays information about available block devices. It can determine the type of content (e.g. filesystem, swap) a block device holds and also attributes (tokens, NAME=value pairs) from the content metadata (e.g. LABEL or UUID fields).<\/p>\n\n\n\n<p>In this tutorial we learn about blkid command in Linux and how to use it to find UUIDs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">blkid usage<\/h2>\n\n\n\n<p>Simply running blkid without any argument will list all the available devices with their Universally Unique Identifier (UUID), the TYPE of the file-system and the LABEL if it\u2019s set.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># blkid<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/linoxide.com\/wp-content\/uploads\/2026\/01\/blkid.jpg\" alt=\"blkid\" class=\"wp-image-8597\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Listing device UUID<\/h2>\n\n\n\n<p>If you wish to have information displayed only for a specific device you can use the device name as an option after blkid to do so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># blkid \/dev\/sda1<\/code><\/pre>\n\n\n\n<p>Also if you know the&nbsp;<strong>UUID<\/strong>&nbsp;of a device but don\u2019t know the device name and wish to find it out you can use the 0-U option like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># blkid -U d3b1dcc2-e3b0-45b0-b703-d6d0d360e524<\/code><\/pre>\n\n\n\n<p>If you wish to obtain mode detailed information you can use the -p and -o udev option to have it display in a nice format like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># blkid -po udev \/dev\/sda1<\/code><\/pre>\n\n\n\n<p>Sometimes the device list might not be updated, if you think this is the case you can use the -g option that will perform a garbage collection pass on the blkid cache to remove devices which no longer exist.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># blkid -g<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>In this tutorial, we learned blkid command and how to use it to list block device details. Blkid is mainly used to list disk\/partitions UUID.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;blkid&nbsp;program is a command-line utility that displays information about available block devices. It can determine the type of content (e.g. filesystem, swap) a block device holds and also attributes (tokens, NAME=value pairs) from the content metadata (e.g. LABEL or UUID fields). In this tutorial we learn about blkid command in Linux and how to use it to find UUIDs. blkid usage Simply running blkid without any argument will list all the available devices with their Universally Unique Identifier (UUID), the TYPE of the file-system and the LABEL if it\u2019s set. Listing device UUID If you wish to have information displayed<\/p>\n","protected":false},"author":1,"featured_media":1751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"none","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[26],"tags":[],"class_list":["post-1752","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"_links":{"self":[{"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/posts\/1752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/comments?post=1752"}],"version-history":[{"count":1,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/posts\/1752\/revisions"}],"predecessor-version":[{"id":1756,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/posts\/1752\/revisions\/1756"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/media\/1751"}],"wp:attachment":[{"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/media?parent=1752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/categories?post=1752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linoxide.com\/wp-json\/wp\/v2\/tags?post=1752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}