Topic
  • 2 replies
  • Latest Post - ‏2012-05-04T13:31:49Z by orphy
shibhikkiran
shibhikkiran
17 Posts

Pinned topic What could be the difference between a directory and a filesystem?

‏2012-04-27T07:59:13Z |
Hello,

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.
Updated on 2012-05-04T13:31:49Z at 2012-05-04T13:31:49Z by orphy
  • Tibor_B
    Tibor_B
    41 Posts

    Re: What could be the difference between a directory and a filesystem?

    ‏2012-05-04T11:53:19Z  
    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
    orphy
    480 Posts

    Re: What could be the difference between a directory and a filesystem?

    ‏2012-05-04T13:31:49Z  
    Start with this and come back if you are still not clear.

    http://lmgtfy.com/?q=what+is+a+filesystem+in+unix
    Orphy