Ubuntu18.04 mount the hard disk boot

 

 

First, view the disk information
      fstab file format as above, in which:

   1. The device file name
refers to the file name of the disk or partition, you can also use the label or uuid. UUID can be viewed through the "sudo blkid" command.

 

      View the device name of the disk or partition in the other location in the file manager, you can also use this name to find the corresponding UUID in blkid in.

   2. Mount directory:
disk mount path, set on the media habits directory partitions, use the "sudo mkdir / media / xxx" to create;

   3. File Type:
Locate the file type in the corresponding partition of blkid, the partition under linux mostly ext4, is the next ntfs windows;

   4. Mount parameters:
default Defaults;

   5. Whether backup:
0 or 1;

   6. Post:
typically set to 2. If you do not want to self-test, it is set to 0, the device mount point for the root directory is set to 1, the other needs of the self-test device, set to 2.

 

Second, modify the fstab file
open /etc.fstab file, the file name of the disk or partition and mount information to fill:

sudo gedit /etc/fstab

 

 Restart, it can automatically mount.
---------------------
Author: SPACESTUDIO
Source: CSDN
Original: https: //blog.csdn.net/SPACESTUDIO/article/details/86479102
Disclaimer: This article as a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin www.cnblogs.com/erhu-67786482/p/11264298.html