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


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

  • And the current mount information is in /etc/mtab – Michael Mrozek Apr 19 '11 at 19:20
  • 1
    ...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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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