1 File system
1 operating system to manage files and data through the file system, disk or partition needs to create a filesystem before it can be used for the operating system, the process of creating a file system is called a format
2 devices that do not have a file system are called bare devices
3 common file systems are FAT32, NFTS, Ext2, Ext3, XFS, HFS, etc.
The mainstream file system under Windows 4 is ntfs,linux under the mainstream file system for ext2 and Ext3
5 to determine the quality of a file system is mainly: the largest partition size, support the number of files, the length of support file name, day function, file access performance
2 Creating a file system
1 using the command mke2fs-t ext4/dev/sda1 to create the file system
-b Specifies the file system block size (blocks are the smallest unit of file system read-write operations, default is 4096)
-C When building the file system, check block damage
-L Specify Volume label
-j Establish file System log
2 MKFS can also create a file system, relatively simple mke2fs, supporting a relatively small number of parameters
Mkfs.ext4/dev/sda1
Mkfs.ext3/dev/sda1
Mkfs.vfat/dev/sda1
3 DUMPE2FS can be used to view the file system of a partition
Dumpefs/dev/sda1
4th Zhi
1 with log file system with strong stability, in the presence of errors, can be repaired
2 using a file system with a log, a two-phase commit is used, and the file system does the following when disk operations are performed
-The file system writes the specific contents of the transaction to be executed to the log
-File system to operate
-delete the log after successful operation
3 The advantage of doing this is that when there is an accident, we can write the recovery data through the log written previously. But it will lose some performance.
5 E2label to play the label
1 e2label/dev/sda1 Linuxcast, the name of the general default label is uppercase
6 fsck to check and repair the file system
1 fsck/dev/sda1
2 use-y parameter without prompting to directly repair fsck-y/dev/sda1
3 system startup is the disk will be fsck operation
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/