Mount points
If you have used a computer before you must have connected an external storage device such as an USB drive or a CD drive into your computer. When you put the drive into the computer, the contents of that medium appears on the file manager. However, have you wondered where was that medium actually connected? That's where mount points come in. A mount point is a place that an external partition is connected. In Linux, external partitions are mounted as directories. For example, an USB flash drive usually has one partition, so it will have one mount point at /mount or somewhere else depending on your distribution. Mount points don't have to be in a specific place. For example, a partition can be mounted as /mount/partition_name, /home or /boot. Different partitioning schemes were mentioned previously in this chapter. Mount points are the thing that makes different partitioning schemes possible.
How to mount and unmount a partition
To mount a partition, the device file that presents the partition is needed. You can navigate the /dev directory and find the partition you want to mount. For example /dev/sdb1 is the first partition on the second SATA device. Another example is the /dev/nvme0n1p6. It represents the sixth partition in the first NVME device. After locating the file, simply run the command below as root:
name@computer:~$ mount /dev/partition directoryTo unmount run the umount command with the directory that was chosen as the mount point:
name@computer:~$ umount directory