centos disk mount

1, change the disk format

    fdisk -l  

    fdisk /dev/vdb

    mkfs.xfs /dev/vdb1 

    mkfs.xfs /dev/vdb1 -f

2, view the UUID   

     blkid

3, mount folder 

    vim /etc/fstab

    mount -a

4. View Results

    df -h

    

 

Guess you like

Origin www.cnblogs.com/LessNull/p/11118741.html