fatinfo.rst 940 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .. SPDX-License-Identifier: GPL-2.0+:
  2. fatinfo command
  3. ===============
  4. Synopsis
  5. --------
  6. ::
  7. fatinfo <interface> <dev[:part]>
  8. Description
  9. -----------
  10. The fatinfo command displays information about a FAT partition.
  11. interface
  12. interface for accessing the block device (mmc, sata, scsi, usb, ....)
  13. dev
  14. device number
  15. part
  16. partition number, defaults to 1
  17. Example
  18. -------
  19. Here is the output for a partition on a 32 GB SD-Card:
  20. ::
  21. => fatinfo mmc 0:1
  22. Interface: MMC
  23. Device 0: Vendor: Man 00001b Snr 97560602 Rev: 13.8 Prod: EB1QT0
  24. Type: Removable Hard Disk
  25. Capacity: 30528.0 MB = 29.8 GB (62521344 x 512)
  26. Filesystem: FAT32 "MYDISK "
  27. =>
  28. Configuration
  29. -------------
  30. The fatinfo command is only available if CONFIG_CMD_FAT=y.
  31. Return value
  32. ------------
  33. The return value $? is set to 0 (true) if the partition is a FAT partition.
  34. Otherwise it is set to 1 (false).