Linux file System (partition) Operations Management Instructions Summary

Source: Internet
Author: User

Linuxcommon file system Operations management directives are as follows1.CommandMkfs:Create a new file system for a partition, which is the advanced format partition

command format: MKFS [-v] [-t fstype] [fs-options] filesys [blocks]

Common Options explained:

[-T Fstype] : Specifies the type of file system to create , default is ext2

Mkfs-t ext3 =mkfs.ext3 = mke2fs-j

Mkfs-t ext2 =mkfs.ext2 = mke2fs

Mkfs-t VFAT =mkfs.vfat

2.CommandMke2fs: Dedicated to creatingExt2/ext3File System

command format:mke2fs [Options] Device

Common Options explained:

-j: creating a ext3 file system

-L Lablename: Create File system and make volume label name

-M: Specifies the percentage of disk blocks reserved for super User management

-B: create file system and set disk block size (1024,2048,4096 bytes)

-I: specifies the amount ofdisk space (in bytes) reserved for each inode (file), combined with The block size specified by the-B option, we can calculate The number of disk blocks that each file occupies

-N: Specify the number of Inode reserved to the appropriate partition directly

-F: Force run mke2fs

-E: Specify additional Create file system options

3.CommandBlkidPrint/Show block device properties,includeUuid,type,lableand other information

Common command format:blkid [Device]

4.CommandE2label:View or modify file system volume labels

Common command format:e2label device [New-label]

5.CommandTune2fsAdjust the adjustable file system parameters

Common command format:tune2fs [Options]device

Common Options explained:

-j: Adjust file system to ext3 type

-M: Adjust the percentage of disk blocks reserved to super users

-L: Adjust the file system's volume label

-I: set the file system to automatically check the number of days (using e2fsck, 0 or 1 meansto disable this feature

-C: set the maximum number of mounts to wait for check (if set to 0, or 1 to turn off the check on Mount Count)

-C: sets the number of times the file system has been mounted

-L: list or display file system Super block content

6.CommandDumpe2fs:dump EXT2/EXT3 filesystem Information

Common command format:dumpe2fs [Options]device

Common Options explained :

-H: Show only the Super block information and not the block group information

7.CommandFsck:Check and repair the file system

Common command formats:fsck [Options] Device

Common Options explained:

-A automatically repairs the file system after a problem is found, without asking the user if it needs repairing

-T Fstype Specifies the type of file system to be checked and repaired, and generally does not need to specify

8.CommandE2fsckSpecialized InspectionExt2/3File System

Common command format:e2fsck [Options] Device

Common Options explained:

-a|-p Automatic repair file system

-N Check not fix only


This article is from the "I believe---technology achievement dream" blog, please be sure to keep this source http://blacktoo.blog.51cto.com/623428/1727360

Linux file System (partition) Operations Management Instructions Summary

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.