Blob


1 .\" $OpenBSD$
2 .\"
3 .\" Copyright (c) 2025 Tobias Heider <tobhe@openbsd.org>
4 .\"
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
8 .\"
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 .\"
17 .Dd $Mdocdate: November 21 2025 $
18 .Dt DISKINFO 1
19 .Os
20 .Sh NAME
21 .Nm diskinfo
22 .Nd display disk information
23 .Sh SYNOPSIS
24 .Nm diskinfo
25 .Op Fl h
26 .Nm diskinfo
27 .Op Fl h
28 .Ar disk
29 .Sh DESCRIPTION
30 The
31 .Nm
32 utility displays information about all available or the specified
33 .Ar disk
34 device.
35 The
36 .Ar disk
37 operand can be a
38 .Dq short form
39 name or
40 .Xr disklabel 8
41 UID.
42 If no operands are specified,
43 information for all available disks is displayed.
44 By default, size values are displayed as 512-byte block counts.
45 .Pp
46 The options are as follows:
47 .Bl -tag -width Ds
48 .It Fl h
49 "Human-readable" output.
50 Use unit suffixes: Byte, Kilobyte, Megabyte,
51 Gigabyte, Terabyte, Petabyte, Exabyte in order to reduce the number of
52 digits to four or less.
53 .Sh EXAMPLES
54 Output information for all available disks:
55 .Pp
56 .Bd -literal
57 # diskinfo
58 DISK TOTAL FSTYPE MOUNT
59 sd0:e0da951523552d12 [QEMU QEMU HARDDISK]
60 |-- sd0a 976240591 RAID
61 |-- sd0c 976773168 unused
62 `-- sd0i 532480 MSDOS
64 sd1:61992282be82044b [QEMU QEMU CRYPTO]
65 |-- sd1a 2097152 4.2BSD /
66 |-- sd1b 67461472 swap
67 |-- sd1c 976240063 unused
68 `-- sd1i 532480 MSDOS
69 .ed
70 .Sh SEE ALSO
71 .Xr disklabel 5 ,
72 .Xr mount 8 ,
73 .Xr getmntinfo 3 ,
74 .Xr sd 4 ,
75 .Xr fstab 5 ,