Partition formatting (Linux File system creation): (assuming that the partition you need to format is /dev/sdb1)
1. Differences between the ext2 file system and the ext3 file system:
Ext2 does not support the log file system, does not produce log files,ext3 will produce log files, the log directory is:
/var/log.
2. create a file system partition:
Mke2fs/dev/sdb1
The default is to create the ext2 file system, if you want to create a ext3 file system, you need to use the parameter -j:
Mke2fs-j/DEV/SDB1
3. File system detection:
E2FSCK/DEV/SDB1: Detects sector errors, logical partitioning errors, and so on.
E2fsck-p/dev/sdb1: Detects errors and automatically fixes them.
4. View partition format:mount
5. view File System specific information:
Tune2fs-l/DEV/SDB1
Change the time of automatic detection:
Tune2fs-c 30/dev/sdb1: automatic detection after mounting
Tune2fs-i 30d/dev/sdb1: test after the day
6. Label Related:
one of the messages printed when executing the command tune2fs-l/dev/sdb1 is Filesystem volume name, which
is the volume label of the partition, used to indicate the purpose of the partition.
Specifies the volume label for a partition:e2label/dev/sdb1 wjt-data(www-data as the volume label)
Find partitions by volume Label:Findfs label=wjt-data
Linux System Ext File system