The commands of Disk

The commands of Disk

fdisk( the disk size is less 2TB)

fdisk - partition table manipulator for Linux.

options:

       -l :show all disk infotmation.

 

start disk deal.

 

parted(the size of disk is not limit)

mkfs

mkfs - buld a Iinux file System.

For example:

mkfs.ext3 /dev/sd2

mount/unmount

mount or unmount a file system.

for example:

mount  /dev/sdb2 /mnt

unmount /mnt

df

df -  report file system disk space usage

options

       -h --human-readable

print sizes in human readable format(e.g.,1K 234M 2G)

       -I --inodes

              list inode information insteads of block usage

dumpe2fs

dumppe2fs - dump ext2/ext3/ext4 filesystem information

for example:

dumpe2fs /dev/sda1.

 

原文地址:https://www.cnblogs.com/yghjava/p/6242056.html