blob: 2e05ab8becee2301b8076fc03de8b132a13b2f01 [file] [log] [blame]
Heinrich Schuchardt2ff43262021-04-19 21:54:45 +02001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: fatinfo (command)
5
Heinrich Schuchardt2ff43262021-04-19 21:54:45 +02006fatinfo command
7===============
8
9Synopsis
10--------
11
12::
13
14 fatinfo <interface> <dev[:part]>
15
16Description
17-----------
18
19The fatinfo command displays information about a FAT partition.
20
21interface
22 interface for accessing the block device (mmc, sata, scsi, usb, ....)
23
24dev
25 device number
26
27part
28 partition number, defaults to 1
29
30Example
31-------
32
33Here is the output for a partition on a 32 GB SD-Card:
34
35::
36
37 => fatinfo mmc 0:1
38 Interface: MMC
39 Device 0: Vendor: Man 00001b Snr 97560602 Rev: 13.8 Prod: EB1QT0
40 Type: Removable Hard Disk
41 Capacity: 30528.0 MB = 29.8 GB (62521344 x 512)
42 Filesystem: FAT32 "MYDISK "
43 =>
44
45Configuration
46-------------
47
48The fatinfo command is only available if CONFIG_CMD_FAT=y.
49
50Return value
51------------
52
53The return value $? is set to 0 (true) if the partition is a FAT partition.
54Otherwise it is set to 1 (false).