Mounting and unmounting the partition summary

1, a block device lists lsblk
Mounting and unmounting the partition summary
see a new disk SDB
2, view the partition table parted / dev / sdb print
Mounting and unmounting the partition summary
can not be seen that the partition
3, a hard disk format (in Example GPT) gdisk / dev / sdb enter press n, which means the new partition; then keep pressing Enter, which means the entire hard drive all formatting, press p to view the
Mounting and unmounting the partition summary
press w to save and exit press y to confirm formatting
4, the partition file system format mkfs.xfs / dev / sdb1
entire hard disk partition
5, mount the partition
first create a mount point mkdir / mnt / kaifeng
mount Mount / dev / sdb1 / mnt / kaifeng
Mounting and unmounting the partition summary
6, displays the file system df -hT
Mounting and unmounting the partition summary
mount a successful
7, when not uninstall partition
umount / dev / sdb1

Guess you like

Origin blog.51cto.com/13339010/2430610