During Linux installation, only about GB space is allocated to Linux, so another TB backup disk is mounted for resource storage and system backup, however, after the system enters the system upon startup, the system needs to manually mount the data on the backup disk. Therefore, if you want to enable automatic mounting upon system startup, you can simply record the operation process. First, run the df command to view the name of the partition to be mounted. [Jeffery @ CentOS ~] $ D
During Linux installation, only about GB space is allocated to Linux, so another TB backup disk is mounted for resource storage and system backup, however, after the system enters the system upon startup, the system needs to manually mount the data on the backup disk. Therefore, if you want to enable automatic mounting upon system startup, you can simply record the operation process.
First, run the df command to view the name of the partition to be mounted.
[Jeffery @ CentOS ~] $ Df-k
You can see the name of the partition to be mounted. you can determine the partition size. ^ 0 ^
Edit the/etc/fstab file.
[Jeffery @ CentOS ~] $ Sudo vim/etc/fstab
Add the mounting configuration information at the end.
/Dev/sdb1 /Media/Bak1 Ext4 ULTS 0 0
/Dev/sdb2 /Media/Bak2 Ext4 ULTS 0 0
The first column is the partition name, and the second column is the path to be mounted. we usually mount it to/media. remember to create your own Bak (custom name) folder and open permissions, otherwise, an error message indicating that only the root user can be mounted will be prompted. The third column is the file format of the partition.
After the instance is restarted, you can see that it is automatically mounted at startup. ^ 0 ^