Heinrich Schuchardt | 2ff4326 | 2021-04-19 21:54:45 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
Heinrich Schuchardt | 1b0c316 | 2024-01-14 14:53:13 +0100 | [diff] [blame] | 3 | .. index:: |
| 4 | single: fatinfo (command) |
| 5 | |
Heinrich Schuchardt | 2ff4326 | 2021-04-19 21:54:45 +0200 | [diff] [blame] | 6 | fatinfo command |
| 7 | =============== |
| 8 | |
| 9 | Synopsis |
| 10 | -------- |
| 11 | |
| 12 | :: |
| 13 | |
| 14 | fatinfo <interface> <dev[:part]> |
| 15 | |
| 16 | Description |
| 17 | ----------- |
| 18 | |
| 19 | The fatinfo command displays information about a FAT partition. |
| 20 | |
| 21 | interface |
| 22 | interface for accessing the block device (mmc, sata, scsi, usb, ....) |
| 23 | |
| 24 | dev |
| 25 | device number |
| 26 | |
| 27 | part |
| 28 | partition number, defaults to 1 |
| 29 | |
| 30 | Example |
| 31 | ------- |
| 32 | |
| 33 | Here 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 | |
| 45 | Configuration |
| 46 | ------------- |
| 47 | |
| 48 | The fatinfo command is only available if CONFIG_CMD_FAT=y. |
| 49 | |
| 50 | Return value |
| 51 | ------------ |
| 52 | |
| 53 | The return value $? is set to 0 (true) if the partition is a FAT partition. |
| 54 | Otherwise it is set to 1 (false). |