This is the question faced by me in recent interview.
Can anyone explain me, what could be difference between a directory and a filesystem?
My answer was,
1. Directory can be created inside a filesystem but we can't able to create a filesystem in directory.
2. We can mount the filesystem but we can't mount the directory.
My interviewer is not convinced by my reply.
Please give your valuable thoughts.
Looking forward to have response.
Pinned topic What could be the difference between a directory and a filesystem?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-05-04T13:31:49Z at 2012-05-04T13:31:49Z by orphy
Tibor_B 270004NWQ341 Posts
Re: What could be the difference between a directory and a filesystem?2012-05-04T11:53:19ZThis is the accepted answer. This is the accepted answer.I am not sure of your point 2, directory might be mounted, f.e. via NFS...
couple of differences from my head:
filesystem is located on a piece of physical memory, has its fixed size, directory is just a file that contains information on files and sub-directories...
Data in one filesystem do not 'compete' for disk space with data in other filesystems....
filesystem can be unmounted and mounted to other server...
orphy 100000E3SF480 Posts
Re: What could be the difference between a directory and a filesystem?2012-05-04T13:31:49ZThis is the accepted answer. This is the accepted answer.Start with this and come back if you are still not clear.