On Sun, Dec 22, 2002 at 12:35:02PM +0000, Michael Sternberg wrote:
> 
> Thanks for a rain of solutions :)
> Perhaps I was not clear enough.
> 
> Situation is like this:
> 
> Two users (A and B) want to use directory /root_fs
> on remote NFS server as their root fs. There is a
> single directory /home that have to be different.
> 
> Of course they can mount /root_fs as root fs and manually
> mount some other directory as /home. The question is
> how to perform it automatically !!!

Define exactly what "automatically" means.
Assuming /root_fs is mounted as their "/" and works well,
you can put something like
mount server:/home-of-`hostname` /home
in rc.local or somewhere.

If you want to use symlinks (which is less flexible, IMO),
you can mount server:/root_fs as /root_fs, server:/root_fsA
as /, and then the links will work. To do that, you will
probably need an initrd, because /root_fsA won't have all
the needed stuff to mount /root_fs.

> 
> Ideal solution will be to create two root directories
> /root_fsA and /root_fsB and make all entries in those
> directories (apart from /home) to be links to common /root_fs.
> 
> Unfortunately it does not works - NFS is not going across
> the links.
> 
> Another solution (proposed by Omer I think) - is to add
> all entries from /root_fsA to /etc/fstab and mount all
> them remotely. Unfortunately it does not work also - /root_fsA
> is root fs and kernel expect to find there init and a couple of
> libraries. Mounting /bin and /lib can be occured only after init
> is running..
> 
> 
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to