Newbie File system

Jerry McAllister jerrymc at clunix.cl.msu.edu
Mon May 15 09:39:06 PDT 2006


> 
> Maan Jee wrote:
> 
> > Hi
> > 
> > Can someone explane that at which filesystem is my "/home" directory
> > located?
> > 
> > 
> > Filesystem  1K-blocks    Used    Avail Capacity  Mounted on
> > /dev/ad0s1a    507630    55002   412018      12%    /
> > devfs                       1           1           0     100%    /dev
> > /dev/ad0s1e    507630          12   467008       0%    /tmp
> > /dev/ad0s1f  34336100 1564298 30024914     5%    /usr
> > /dev/ad0s1d   1506190    24892  1360804      2%    /var
> > 
> > thanks..../mj
> 
> Your 'home' directory is usually located under '/usr'.

Not necessarily, in fact, no, not at all.

Your home directory is where-ever you put it.
>From the 'df' information you show, it is impossible to tell
where it's data actually resides.

Technically "/home" is in root (eg '/') because that specifically is
what you asked for.   But, it is possible for you to have some data
that looks like it is in /home, but have that living somewhere else
and have a link in root that is named 'home' pointing to it.

Now, if you mean your login home directory, that is where-ever your
passwd file entry says it is.   As the system administrator creating 
the account, you can specify that.

Note: as far as namimg goes, that really depends on the mountpoint you
create and use for the filesystem.

On many of our systems I create a file system and mounted is as /home and 
use it to hold users' home directories.   On my desktop running FreeBSD,
I name the mountpoint for that filesystem '/hom' just to be lazy by one 
character.

So, to answer your own question for yourself, do two things.
First, do:    ls -l /
That will tell you if there is something named '/home' or not
and if it is symlinked anythere. 
Then do:    grep yourid /etc/passwd 
     or     finger yourid

Of course, put your own login id in for 'yourid' 

In the first, the next to last field is your login home directory
In the second it tells your home directory and just called it 'Directory:'

////jerry


> 
> -- 
> Gerard Seibert
> gerard at seibercom.net



More information about the freebsd-questions mailing list