Linux Learning Path 4-Disk Management, file system introduction

Source: Internet
Author: User

(Note: Most of the file system is placed in the next chapter)


Linux Disk Management

Partition Tool fdisk ( supports up to 15 partitions for one hard drive)

Manage subcommands:

N new P display partition T change partition type D delete partition L partition type description W save exit

Q Discard save exit m get help

Note: After the creation is complete, check to see if the kernel has identified the new partition:

# cat/proc/partitions

If it is not recognized, you can use the following command to make the system aware:

CentOS 5 used on: Partprobe [DEVICE], such as PRATPROBE/DEV/SDB1

CentOS 6,7 on use: Partx kpartx

Partx command: Partxdevice

-A DEVICE Activate all partitions

-a-n m:n DEVICE activates the specified

M

M:

: N

Kpartx command:

Kpartx-af DEVICE

File System Management

Linux file systems include: ext2 (non-Datejust), ext3 (Datejust), Ext4 (Datejust ), ReiserFS, XFS, Btrfs (Datejust, up-to-date), swap (swap partition)

Disc File system: iso9660

Windows File system: FAT32 (VFAT), NTFS

Unix:ffs, UFS, JFS, JFS2

Network File System: NFS, CIFS

Cluster file system: OCFS2, GFS2

Distributed File systems: Ceph,moosefs, MogileFS, Hdfs,gfs, Glusterfs

To create a file system:

MKFS ( It is actually called according to the different file types, corresponding to the other formats of the/sbin under MKFS.EXT2,MKFS.EXT4, and so on-T)

MKFS-T type DEVICE

Example: Mkfs–t ext4/dev/sdb1 =mkfs.ext4/dev/sdb1

MKE2FS ( Special Management tool for Ext Series file system):

mke2fs-t {EXT2|EXT3|EXT4} DEVICE

-B block:1024, 2048, 4096

- l ' LABEL ': set the volume label

Example: Mke2fs-t ext4-l ' TEST '-B 2048-m 5/dev/sdb2

Blkid command: Get file system Type, UUID, volume label

Example: Blkid or BLKID/DEV/SDB2


This article is from the "naïve Little Comrade" blog, please be sure to keep this source http://dengxi.blog.51cto.com/4804263/1691236

Linux Learning Path 4-Disk Management, file system introduction

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.