Centos7 operation automatically mount the partition of the hard disk u

 

 

1. View the disk information system

 

fdisk -l

 

 

 

 Then enter

/etc/fstab 
vim /etc/fstab

 

 Add the corresponding hard disk partition 

/dev/sda6 /run/media/root/data ext4 defaults  0 0

Finally, just mount -a Enter

mount  -a

Well generally restart just fine.

 

Guess you like

Origin www.cnblogs.com/mrguoguo/p/12628831.html