(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