Linux System Ext File system

Source: Internet
Author: User

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

Related Article

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.