1LSMTD(8) System Manager's Manual LSMTD(8)
2
3
4
6 lsmtd - list memory technology devices
7
9 lsmtd [options] [device...]
10
12 lsmtd lists information about all available or the specified MTD and
13 UBI devices. The lsmtd command reads the sysfs filesystem to gather
14 information. Alternatively, the procfs filesystem and ioctl interfaces
15 are used, should the sysfs filesystem not be available.
16
17 The command prints all MTD and UBI devices in a pretty-printed list
18 format by default.
19
20 The default output is subject to change. So whenever possible, you
21 should avoid using default outputs in your scripts. Always explicitly
22 define expected columns by using --output columns-list in environments
23 where a stable output is required.
24
25 Use lsmtd --help to get a list of all available columns.
26
28 -b, --bytes
29 Print columns with size quantities (e.g. erase block size) in
30 bytes instead of a human-readable format.
31
32 -h, --help
33 Display a help text and exit.
34
35 -i, --ascii
36 Only use ascii characters for pretty printing.
37
38 -J, --json
39 Use JSON output format. All potentially unsafe characters in
40 string values are escaped with JSON escape sequences or hex-es‐
41 caped (\u<code>).
42
43 -l, --list
44 Use a pretty-printed list output format (default).
45
46 -m, --no-ubi
47 Do not display information about UBI devices or volumes.
48
49 -n, --noheadings
50 Do not print column headings when using raw or list output for‐
51 mat.
52
53 -o, --output list
54 Specify which output columns to print. Use --help to get a list
55 of all supported columns.
56
57 The default list of columns may be extended if list is specified
58 in the format +list (e.g. lsmtd -o +EB-SIZE).
59
60 -O, --output-all
61 Output all available columns.
62
63 -P, --pairs
64 Produce output in the form of key="value" pairs. All poten‐
65 tially unsafe characters are hex-escaped (\x<code>).
66
67 -r, --raw
68 Produce output in raw format. All potentially unsafe characters
69 are hex-escaped (\x<code>).
70
71 -u, --si-units
72 Display human readable sizes as powers of ten rather than powers
73 of two.
74
75 -V, --version
76 Print version information and exit.
77
78 -x, --sort column
79 Sort output lines by column.
80
82 If the --bytes option is not specified, the JSON output format prints
83 sizes as string values even if they do not have a suffix.
84
86 David Oberhollenzer <david.oberhollenzer@sigma-star.at>
87
89 Report mtd-utils bugs to the Linux mtd mailing list.
90
91 Linux mtd mailing list: <linux-mtd@lists.infradead.org>
92
93 Linux mtd home page: <http://www.linux-mtd.infradead.org/>
94
96 The lsmtd command is part of the mtd-utils package and is available
97 from ftp://ftp.infradead.org/pub/mtd-utils/.
98
100 Copyright © 2017 David Oberhollenzer - sigma star gmbh
101 License GPLv2: GNU GPL version 2 <http://gnu.org/licenses/gpl2.html>.
102 This is free software: you are free to change and redistribute it.
103 There is NO WARRANTY, to the extent permitted by law.
104
106 lsblk(8), ls(1)
107
108
109
110mtd-utils April 2017 LSMTD(8)