Linux mount disk

1. fdisk -l View disk information, you can see if any disk is not mounted to the system

2. fdisk /dev/vdb disk partition

    First select the n command to add a new partition

    n add a new partition

    All the way behind is default, just press Enter

3. mkfs.ext4 /dev/vdb1 format the disk

4. mount /dev/vdb1 /data1 to mount the disk

5. blkid View block device properties

 

 

    

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326153890&siteId=291194637
Recommended