1. Disk partition management tool     FDISK /DEV/DEVICE        D: deleting partitions n: New Partition P: List Existing partitions t: Adjust partition id l: List kernel-supported partitions id w: Save and exit q: Do not save exit reread partition centos 5 : partproble centos 6 : partx, kpartx cannot reread partition resolution kpartx -l /dev/sda kpartx -af /dev/sda partx -a /dev/sda Create a partition mkfs -t fstype /dev /device eg: mkfs -t ext2 /dev/sda3 mkfs.ext2 /dev/ device mke2fs /dev/device mkfs -t ext4 =mkfs.ext4 =mke2fs -t ext4 mkfs -t ext3 = mkfs.ext3=mke2fs -text3=mke2fs -j mke2fs Configuration Files /etc/mke2fs.conf -t:{ext2|ext3|ext4} -j:journal equivalent to-t ext3 -l: Equipment Label -b:{1024|2048|4096} Specifies the block size -i#: Specify # bytes reserved for a inode -i: Specify Inode size -n #: Specify reserved # inode -m directly #: Percentage of space reserved for administrators, default reservation 5% -o: Specify partition characteristics View volume label:e2lable /dev/device setting volume Label: e2lable /dev/device lable View device Properties:blkid /dev/device view: UUID and type View Super Block info: Dump2fs /dev/device
Linux Fundamentals 14