What is meant by mounting a device in Linux?
In simple words a mount point is a directory to access your data (files and folders) stored on your disks.
Let us read a farmer story who distributed his uncultivated land to his children and what they did from it.
There is a farmer 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 farmer's children planned to improve their respective lands and started ploughing depending on the crops they were going to cultivate.
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 a farmer gives to his children are called partitions
- Ploughing land for cultivating crops is called as formatting.
- Planting trees and crops are called is akin to disks/partitions.
- Protecting the grown crops and trees by arranging a gate is called mounting.