Ubuntu mounts the hard disk to the specified directory and sets it to automatically mount at boot



# Add a line at the end of vim /etc/fsta
/dev/sda1 /home/user/video ext4 rw 0 0 to
save


Attachment (according to the actual situation):
format the hard disk
# mkfs -t ext4 /dev/sda

Check the disk status
# fdisk - lManage

partitions
# fdisk /dev/sda
Common parameters: p (view partition status) d (delete partition) n (create partition) w (exit and save partition) q (exit without saving) t (modify partition type)



Guess you like

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