Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have read man hier (info hier in fact). But it seems a bit old(Correct me if I am wrong). There are many directories, which are not mentioned in the manual. Eg

/sys
/selinux
/lost+found

I have seen these on Ubuntu and CentOs5 versions. Also I am not sure about the difference between /media and /mnt, though my guess is /mnt can be used for mounting any filesystem, and /media is meant to be used as mount points as only for (removable) media. Though I am not convinced that this difference is enough for /media deserving a separate directory, rather than being a special case for /mnt. What am I missing here? So can someone shed some light on these(above) directories in the filesystems (especially in terms of their intended usage & practical usage, any tricks & and advantages for having them.)?

Note: I have read similar questions but haven't found anything related to above directories.

share|improve this question
    
As for your "/mnt vs /media"-question, see superuser.com/a/417180. –  Daniel Andersson Aug 6 '12 at 9:20

1 Answer 1

up vote 2 down vote accepted

But it seems a bit old(Correct me if I am wrong).

The FHS changes very slowly, so that's not really a problem per se.

/sys
/selinux

These are similar to /proc, but for sysfs and selinuxfs instead of procfs.

/lost+found

This is where loose (i.e. allocated but not in any directory, an error condition) files found by fsck are sent so that the sysadmin can look through them to see if they're needed.

though my guess is /mnt can be used for mounting any filesystem, and /media is meant to be used as mount points as only for (removable) media.

Correct.

Though I am not convinced that this difference is enough for /media deserving a separate directory, rather than being a special case for /mnt.

Opinions vary, and everyone seems to have a unique one.

share|improve this answer
    
Can you explain (or point me to the explanation of) /proc? –  0xc0de Aug 10 '12 at 6:45
    
@0xc0de: It's in the Linux kernel documentation, under Documentation/filesystems/proc.txt. –  Ignacio Vazquez-Abrams Aug 10 '12 at 6:58
    
I had a glance through it, but couldn't link /sys & /selinux to /proc :-S –  0xc0de Aug 10 '12 at 7:23

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.