Linux File System Management

Source: Internet
Author: User

In the Linux kernel to support a large number of file systems, different file systems for the processing of the file is not the same, to choose the appropriate file system according to the actual situation, to create a file system, is the high-level format of the partition. The relevant commands for file System management are as follows:

1. Fdisk: View partition list, create partition

2. MKFS: Create file system for partition

Cat/proc/filesystems: View the file systems supported by the current kernel

Commands that specialize in managing EXT series files:

3, MKE2FS:

-j: Creating a ext3 Type file system

-B block_size: Specifies the block size, which defaults to 4096; the available values are 1024, 2048, or 4096;

-L LABEL: Specifies the partition volume label;

-M #: Specifies the percentage of blocks reserved for super users

-I #: To specify how many bytes of space to create an inode, the default is 8192; The value given here should be 2^n times the block size;

-N #: Specifies the number of inode;

-F: Force file system creation;

-E: User Specifies additional file system attributes;

4. Blkid: Query or view related properties of disk device

UUID: identifier

Type: File system types

Label: Volume label

5. E2label: Used to view or define the volume label

The re-create file system can damage the files in the system, and use TUNE2FS to adjust the file system's related properties

6, Tune2fs: Adjust the file system related properties

-j: No damage to the original data, the ext2 upgrade to ext3;

-L LABEL: Sets or modifies the volume label;

-M #: Adjust the reserved percentage;

-R #: Specifies the number of reserved blocks;

-O: Set default mount options;

Cc.

-C #: Specify the number of mounts to # times after the self-test, 0 or 1 tables to turn off this function;

-I #: The self-test is performed per mount, and 0 or 1 means that the function is turned off;

-L: Displays the information in the Super block;

7. DUMPE2FS: Display file attribute information

-H: Show only information in the Super block

8. fsck: Check and repair Linux file system

-T Fstype: Specifying the file system type

-A: Automatic repair

9, E2fsck: Dedicated to repair Ext2/ext3 file system

-F: Mandatory check;

-P: Automatic repair;

When memory in the system is not enough, swap partitions can be used so that the system can be overloaded and run

10. Free: View memory and Swap partitions

11, Mkswap: Create the Swap partition, if it is a disk device, you need to use the Fdisk command to adjust the partition type to 82

12. Swapon: Start swap partition

13. Swapoff: Turn off swap partition

The file system configuration file is:/etc/fstab. At the beginning of the OS, each file system defined in this file is automatically mounted.



This article is from the "Linux Learning History" blog, so be sure to keep this source http://ccf312.blog.51cto.com/10750490/1725519

Linux File System Management

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.