Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

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
1  
...or in /proc/mounts, /etc/mtab is some cases may have wrong info –  rvs Apr 19 '11 at 19:53
add comment

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
add comment

Your Answer

 
discard

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.