In general, we want to mount a partition by using the mount command. for example, I want to mount devsda3 to mediaabornda.
In general, the mount command is used to mount a partition. if you want to mount/dev/sda3 to/media/aborn/data, run the following command:
Sudo mount/dev/sda3/media/aborn/data
However, this method does not work well because the machine has to be manually remounted after it is restarted.
Then, you can permanently mount the partition by modifying the partition file/etc/fstab.
My partition file/etc/fstab is as follows:
Run the following command to obtain the UUID of the/dev/sda3 partition:
Sudo blkid/dev/sda3
The result is as follows:
Then, add the following line in the format of the/etc/fstab file:
UUID = 904C23B64C23964E/media/aborn/data ntfs defaults 0 2
The first column is the UUID, the second column is the Mount Directory (this directory must be an empty directory), the third column is the file system type, the fourth column is the parameter, and the fifth column 0 indicates no backup, the last column must be 2 or 0 (unless the boot partition is 1)
Finally, the content of/etc/fstab is as follows:
Run the mount-a command to check whether the operation is successful:
Aborn-lisp # mount-