1. Tools that format a block device as FAT32 include:
Mkfs. FAT32 (this tool is provided in Linux)
Newfs_msdos (this tool can be used on the Android platform)
Newfs_msdos-F 32/dev/block/ram0-s 8192-O Android-l zhiliao (-F 32 indicates formatting it to FAT32 format, /dev/block/ram0 is the device to be formatted,-s 8192 is the device size, 8192 represents 8192 sector, and each sector is 512 bytes, -O Android indicates the fatimg OEM name, and-l zhiliao indicates the name of the drive letter displayed on the PC)
2. newfs_msdos
Option |
Description |
-N |
Don't create a file system: Just print out parameters |
-B boot |
Get Bootstrap from file. |
-F fat-type |
Fat Type (one of 12, 16, or 32 ). |
-I volid |
Volume ID. |
-L label |
Volume label (up to 11 characters ). |
-O OEM |
OEM string (up to 8 characters). The default is "BSD 4.4 ". |
-S sector-size |
Number of bytes per sector. |
-A fat-size |
Number of sectors per fat. |
-B block-size |
File System block size (bytes per cluster ). |
-C cluster-size |
Sectors per cluster. |
-E dirents |
Number of root directory entries (fat12 and fat16 only ). |
-F format |
Specify a standard (floppy disk) Format |
Option |
Description |
-H heads |
Number of drive heads. |
-I info |
Location of the file system info sector (FAT32 only ). |
-K backup |
Location of the backup Boot Sector (FAT32 only ). |
-M Media |
Media Descriptor (acceptable range 0xf0 to 0xff ). |
-N fats |
Number of fats. acceptable values are 1 to 16 inclusive |
-O hidden |
Number of hidden sectors. |
-R Reserved |
Number of reserved sectors. |
-S total |
File System size. |
-U track-size |
Number of sectors per track. |
FAT32 Study Notes (5) -- fat related tools