Operating System - Linux
1832603 Members
2523 Online
110043 Solutions
New Discussion

Re: Can't mount /home directory

 
Sheryl_6
Occasional Advisor

Can't mount /home directory

Installing RedHat AS 3.0 Update 4

I created a directory called /home, ypbind is successful, and the auto.master reads as followings:

/home yp:auto.home nosuid

When I cd to /home, there's nothing in the directory? What could be the problem
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: Can't mount /home directory

What are the mount settings for /home in /etc/fstab

Note that /home is a common folder for Linux installs. Thats the default location of user HOME directories.

That being the case, the folder already exists and has contents. They will become inaccessible if you try and mount a filesystem on it.

If there already was a filesystem/parition named /home, this also explains why the error is occurring. Can't have two.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sheryl_6
Occasional Advisor

Re: Can't mount /home directory

Steve,

That's what I am trying to do. Automount the user HOME directories that physical live on other server.

Therefore I don't think I need to edit the /etc/fstab. Or do I?

Florian Heigl (new acc)
Honored Contributor

Re: Can't mount /home directory

No You don't have to put something in /etc/fstab

- is the automounter running properly?
- can You access the mount point through autmounter via /net/server/home ? (might also be /hosts or so)
- Is Your NIS-map for the automouter okay and works on other hosts?
yesterday I stood at the edge. Today I'm one step ahead.
Vitaly Karasik_1
Honored Contributor

Re: Can't mount /home directory

Florian, AFAIK, "net" map doesn't work on linux's automounter.

Sheryl, can you send us your /etc/auto.master?

Rgds,
Vitaly
Sheryl_6
Occasional Advisor

Re: Can't mount /home directory

/etc/auto.master is as follows:
/home yp:auto.home nosuid

The mount point(/home)is there in root's home directory, but it's empty. I can login as myslef, but my profile is not getting read.

Any idea on what the problem could be?
Florian Heigl (new acc)
Honored Contributor

Re: Can't mount /home directory

Vitaly - thank You for that input, I'll have to check that.

Still I think that the map on the NIS server is missing

/home yp:auto.home nosuid
refers to it, and if it's not supplied to the automouter, he can't automount /home :)
yesterday I stood at the edge. Today I'm one step ahead.
Sheryl_6
Occasional Advisor

Re: Can't mount /home directory

ypcat can see the (auto.home) file.

Sheryl
Vitaly Karasik_1
Honored Contributor

Re: Can't mount /home directory

Can you mount home directory manually:
mount server:/home /home ?

any error messages on your linux box and/or NFS server?
Paul Cross_1
Respected Contributor

Re: Can't mount /home directory

This is just an idea. I didn't see the info above, so maybe you haven't tried or thought of this.

a) you mention that you only cd into /home. Usually you wont see anything in /home. Have you tried cd /home/userid? It would be beneficial to see a few lines of your auto.home map too.

b) root usually can't cd into these dirs, make sure you are running cd as a non-priv user. su - userid; cd ~

c) do your other automounted directories work?

-p