Mount Linux partition

  1. Add a new disk, virtual machine power failure - Add

  


2. fdisk -l: View disk can be identified


3. Enter: fdisk / dev / sdb, enter partition mode, enter the command -m View


4. primary partition: n: New Partition


The extended partition divided


6. Logical partitioning


 W If not prompted to restart, use the command avoid restarting partprobe


7. Format the partition:

Create a mount point, the partition is mounted to the mount point
   mkdir / disk1
   mkdir / disk5
   Mount / dev / sdb1 / disk1 /
   Mount / dev / sdb5 / disk5 /
  
   Mount: Mount to see if
   the disk manually mount can be used, mount does not work after restart


 8. switched automatically mount

  Vim  /etc/fstab

  

  

 

   

Published 53 original articles · won praise 55 · Views 100,000 +

Guess you like

Origin blog.csdn.net/dreams_deng/article/details/79211524