1 .\" Copyright (c) 2023 Benjamin Stürz <benni@stuerz.xyz>
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .TH LSBLK 8 lsblk-@VERSION@ 2023-05-05
16 lsblk \- list block devices
24 utility can be used to examine block devices attached to the system.
27 operands it lists the specified devices.
28 Otherwise it lists all attached block devices.
32 prints version information to stdout, then exit.
38 don't scan for RAID volumes using
42 don't print fancy unicode characters, only print ASCII.
45 don't print the header.
48 also print the disklabel UID.
51 also print the filesystem usage of each partition
52 and the disklabel usage of each disk.
54 Note: The disklabel usage is calculated by
55 summing the size of all (except "c") partitions.
57 Note 2: lsblk shows the total amount of free space,
58 including space reserved for /root.
62 utility exits 0 on success, and >0 if an error occurs.
64 The following line lists all block devices:
70 The following line lists all fields of sd0:
78 The name of the disk/partition.
84 The disklabel UID of the disk.
90 The size of the partition, not the filesystem.
96 For disks: The amount of allocated disk space for partitions.
99 For mounted partitions: The amount of used space.
105 For disks: SIZE - FREE
108 For partitions: FS_SIZE - FREE
114 For disks: The type of the disk.
117 For partitions: The type of data on the partition.
123 For all disks: The label of the disk.
126 For RAID disks: Additionally the status of the volume.
129 For mounted partitions: The first found current mount point.
137 utility was originally written by the
142 clone of the original \fBlsblk\fR.
143 It is incompatible because it doesn't support
144 the same set of options as the original
145 and because of differences in the output.
146 More incompatibilities are caused by specific features only being available
147 on either Linux or OpenBSD.
151 program was written by Benjamin Stürz <benni@stuerz.xyz>.