Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to filesystems and trying to understand mounting.
Is it something like adding a node in tree?

share|improve this question

migrated from Sep 10 '11 at 15:02

This question came from our site for professional and enthusiast programmers.

Way back in the dawn of computing history, storage consisted of paper and then magnetic tape. To connect storage to the computer you would literally hang or mount the tape on the tape reader. I'm sure that, for awhile anyway, after magnetic disks were introduced tapes hung around as file storage -- not merely back up. It was probably easier to reuse the existing terminology (and code) than invent a new concept for disks and thus we continue to mount a disk-based (or even network-based) file system.

Mounting a filesystem, means taking that storage and connecting it to the operating system in a way that it's usable as a hierarchical storage device with directories and files. This could be the initial filesystem (root of the directory hierarchy) or another filesystem that connects to the root filesystem at a mount point, extending the directory hierarchy. In that sense, it is like extending a tree by adding another tree to it.

share|improve this answer
Early hard disk systems consisted of a removable stack of platters that rested in a disk drive the size of a top-loading washing machine. All the electronics were in the drive. You would mount the stack of platters in the disk drive. Drives were expensive and the disks were physically large but low capacity (e.g. 40 MB) so you'd have several sets of platters (i.e. disks) per drive and you'd mount the appropriate disk for the task at hand. – RedGrittyBrick Sep 10 '11 at 17:54

At the most abstract level, it involves adding the filesystem's information into the VFS such that file accesses are directed to the appropriate place on the filesystem.

share|improve this answer

Yes, it's something like that. Take a look at this article.

You can also see a discussion in this SU post.

share|improve this answer

You must log in to answer this question.