Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

How does linux know which partition should be mounted at which directory? Where is this info stored?

share|improve this question
up vote 7 down vote accepted

The information about what hard drives to mount where is stored in /etc/fstab.

share|improve this answer
And the current mount information is in /etc/mtab – Michael Mrozek Apr 19 '11 at 19:20
...or in /proc/mounts, /etc/mtab is some cases may have wrong info – rvs Apr 19 '11 at 19:53

Your search for which partition is mounted may not end in fstab, the listing may use LABELs or UUIDs. You can search for LABELs with e2label.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.