Linux disk and file System Management 3 file system

Source: Internet
Author: User
Tags system log

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.