[root@localhost]# mkdir /usr2 Create a new folder required to mount the hard disk in the root directory
[root@localhost]# parted /dev/sdb Use parted to operate GPT disks and enter interactive mode
(parted) mklabel gpt format the disk as GPT
(parted) mkpart primary 0 -1 divide all capacity into one partition
(parted) ignore enter this item
(parted) quit quit
Note: After completing the above steps, the sdb1 disk will be generated in the /dev directory, and the next operation will be the sdb1 disk, not sdb
[root@localhost]# mkfs.xfs -f /dev/sdb1 Format the partition in xfs format
[root@localhost]# vi /etc/fstab Add the following parameters at the end of the fstab table
/dev/sdb1 /usr2 xfs defaults 0 0
[root@localhost]# mount -a Mount the partition
[root@localhost]# df -Th View partition mounting status