Mounting takes place before a computer can use any kind of storage device (such as a hard drive, CD-ROM, or network share). The user or their operating system must make it accessible through the computer’s file system. A user can only access files on mounted media —From Wikipedia.
From the above statement only a geek can understand what a mount point is and for the people who are new to Linux/Unix cannot understand it in one shot and they have to do a bit of research on it to understand. This post is for new people who are just going to learn disk management and Linux. All the advanced users can ignore this post if you people know the meaning of mount point in Linux.
So what actually a mount point is?
In simple words a mount point is a directory to access your data (files and folders) which is stored in your disks.
To understand a mount, we should know two more concepts
What is a partition?
What is formatting?
A partition is a slice of a hard disk to write data into it. There are many advantages in creating partitions such as protection from data corruptions by isolating each partition from one another, systematic writing data to disks, even sometimes writing and reading is fast when we create partitions.
Formatting is a concept on how we write data onto disks. Data can be written in many ways with different meta data added to each chunk of data written to disk for security, reductions in disk space wastage, etc.
Once formatting is done on a partition, we can write data on the partition. To access that partition we link the partition to a directory in our machine so that if we go to that directory we can access all the data stored in that partition. This linking of partition with a directory is called as mounting or mount point.
Still did not get the mount concept?
Let us read a farmer story who distributed his uncultivable land to his children and what they did from it.
There is a former who thought of distributing his whole barren land of 25 Hectares to his three children, he distributed as below.
Child 1: John got eight hectares of land.
Child 2: Barbie got 13 hectares of land.
Child 3: Steve got four hectares of land.
Now the former children planned for improving their respective lands and started ploughing depending on the crops they are going to cultivates.
John wants to cultivate Oranges.
Barbi wants to cultivate Mangos.
Steve wants to cultivate corn.
For these crops/fruit tree cultivation they require to plough differently to suite their crops. As shown below diagram for cultivating Mangos ploughing is different from cultivating corn. Once this is done they sow their respective crop plants in their lands.
As crops are grown they should be protected from intruders and they arranged a fence around their lands and created an entry point to each of their lands with a gate.
So if anyone to access their lands they have to enter through these gates and get the fruit’s/corn from the land.
The analogy of this story to our disk management is as below.
Farmers land is equal to entire disk
Slices which farmer given to his children is called as partitions
Ploughing land for cultivating crops is called as formatting.
Planting trees and crops are called as writing data to disks/partitions.
Protecting the grown crops and trees by arranging a gate is called mounting.
Some FAQ’s related to mount in Linux/Unix:
Q. I lost my mount point,is my data lost in that partition?
You just lost your access point not the data. To access your partition mount your partition on other directory.
Q. I am M$ windows person and I do not see any mount point stuff, can you explain where is my mount point?
M$ hidden the concept of mounting. The drives in windows is called as mount points and it starts from C drive and ends with Z drive. And, why we do not have A and B drives have all different story.
Q How can I find mounted partitions in my machine?
Use below commands to know more about the mount points cat /etc/mtab df -h Q. What is a network mount point? A network mount is a mount point which can access network file systems like NFS, Samba, FTP, SSH, etc.
Hope this helps new commers to Linux will understand this.