The operating system manages files and data through the file system, the disk or partition needs to create a file system before it can be used for the operating system, and the process of creating a file system is called formatting.
Devices without a file system are called bare devices (raw);
The common file system has FAT32,NTFS,EXT2,EXT3,EXT4,XFS,HFS and so on;
The main system under Windows is: NTFS;
The main file system under Linux is: EXT3,EXT4;
creating a file system
Mke2fs-t EXT4/DEV/SDB1
Common parameters:
-b Specifies the file system block size
-C Check bad block when setting up file system
-L Specify Volume label
-j Specifying File system logs
MKFS can also create a file system, which is simpler than MKE2FS, but supports fewer parameters and does not allow fine-grained control
Mkfs.ext3/dev/sdb1
Dumpe2fs
viewing partition file system Information
Dumpe2fs/dev/sdb1
Log Records
hit label
E2LABEL/DEV/SDB1 SYSTEM
fsck checks and repairs the corrupted file system
Linux Partition File system