[deployment-guide] Added the "Using the blkid Command" section.
Jaromir Hradilek
jhradile at fedoraproject.org
Wed Oct 19 01:04:43 UTC 2011
commit 6bf23b7c2b30a059d285cb4d2aed1b9fec5e4b6b
Author: Jaromir Hradilek <jhradile at redhat.com>
Date: Tue Oct 18 19:51:21 2011 +0200
Added the "Using the blkid Command" section.
en-US/System_Monitoring_Tools.xml | 44 ++++++++++++++++++++++++++++++++++++-
1 files changed, 43 insertions(+), 1 deletions(-)
---
diff --git a/en-US/System_Monitoring_Tools.xml b/en-US/System_Monitoring_Tools.xml
index d208e46..54fd6da 100644
--- a/en-US/System_Monitoring_Tools.xml
+++ b/en-US/System_Monitoring_Tools.xml
@@ -357,7 +357,7 @@ Swap: 4095 0 4095</screen>
</section>
</section>
<section id="s1-sysinfo-filesystems">
- <title>Viewing File Systems</title>
+ <title>Viewing Block Devices and File Systems</title>
<indexterm>
<primary>system information</primary>
<secondary>file systems</secondary>
@@ -402,6 +402,48 @@ sr0 11:0 1 1024M 0 rom</screen>
For a complete list of available command line options, refer to the <emphasis role="bold">lsblk</emphasis>(8) manual page.
</para>
</section>
+ <section id="s2-sysinfo-filesystems-blkid">
+ <title>Using the blkid Command</title>
+ <indexterm>
+ <primary><command>blkid</command></primary>
+ </indexterm>
+ <para>
+ The <command>blkid</command> command displays information about available block devices, such as their file system type or <firstterm>universally unique identifier</firstterm> (<acronym>UUID</acronym>). For example:
+ </para>
+ <screen>~]$ <command>blkid</command>
+/dev/sda1: UUID="5d170c31-0f14-4c7e-b72a-501b8f795bff" SEC_TYPE="ext2" TYPE="ext3"
+/dev/sda2: UUID="m9PwZw-Kwlz-VIRu-6TDh-zKjV-V3Ud-42IFuh" TYPE="LVM2_member"
+/dev/sda4: UUID="TgN1Z5-5Qcx-cChP-A7Jx-v9DO-ZuTU-wAR0Uj" TYPE="LVM2_member"
+/dev/mapper/vg_rhel-lv_home: UUID="abe1a729-2a72-4533-a9e8-77379d8d44c5" TYPE="ext4"
+/dev/mapper/vg_rhel-lv_root: UUID="e2f60b08-f606-41ec-99cb-20550dde6aca" TYPE="ext4"
+/dev/sda3: UUID="147bc2f6-edca-40b7-be05-092cda2e3993" TYPE="swap"
+/dev/mapper/vg_test-lv_fedora_16: LABEL="_Fedora-16-x86_6" UUID="1d8b542a-e45c-4296-92c4-edaa8ef7dd7c" TYPE="ext4"</screen>
+ <para>
+ To display information about a particular device only, specify the device name on the command line:
+ </para>
+ <screen>~]$ <command>blkid /dev/sda1</command>
+/dev/sda1: UUID="5d170c31-0f14-4c7e-b72a-501b8f795bff" SEC_TYPE="ext2" TYPE="ext3"</screen>
+ <para>
+ You can also use the above command with the <option>-p</option> and <option>-o udev</option> command line options to obtain more detailed information. Note that <systemitem class="username">root</systemitem> privileges are required to run this command:
+ </para>
+ <screen>~]# <command>blkid -po udev /dev/sda1</command>
+ID_FS_UUID=5d170c31-0f14-4c7e-b72a-501b8f795bff
+ID_FS_UUID_ENC=5d170c31-0f14-4c7e-b72a-501b8f795bff
+ID_FS_SEC_TYPE=ext2
+ID_FS_VERSION=1.0
+ID_FS_TYPE=ext3
+ID_FS_USAGE=filesystem
+ID_PART_ENTRY_SCHEME=dos
+ID_PART_ENTRY_TYPE=0x83
+ID_PART_ENTRY_FLAGS=0x80
+ID_PART_ENTRY_NUMBER=1
+ID_PART_ENTRY_OFFSET=2048
+ID_PART_ENTRY_SIZE=4194304
+ID_PART_ENTRY_DISK=8:0</screen>
+ <para>
+ For a complete list of available command line options, refer to the <emphasis role="bold">blkid</emphasis>(8) manual page.
+ </para>
+ </section>
<section id="s2-sysinfo-filesystems-df">
<title>Using the df Command</title>
<indexterm>
More information about the docs-commits
mailing list