NFS: can't see the mounted drives of machine 1 on machine 2
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
NFS: can't see the mounted drives of machine 1 on machine 2
hello all,
i've 2 machines. Both are running slackware 10.0.
i've configured NFS for lan sharing.
now the command which i use for mounting 2nd system on 1st is:
Code:
#mount 192.168.x.x:/ /mnt/client
where client is a directory in 1st system
but it let me see only the /root partition i.e only etc, mnt, usr...........and so on.
it do not let me see the partitions which other system has mounted.
what i think is that problem is with that command.
b'coz it seems that i'm mounting only the root.
Now if its the case then how should i mount the mounted drives.
e.g suppose 2nd system has /mnt/software........then how should i mount it ???
NOTE: all that partitions are "linux" type and not the fat/fat32.
I think you may need the "nohide" option in the file /etc/exports on the first machine. See man exports.
Alternatively you could just exports the bits you need and thus not have to cross mount points - normally you would only export / (as read only) for the purposes of doing backups. Exporting / as read/write it is very easy to get confused about where you are and delete something inopportune!
Hello,
this is the entry in /etc/exports........
where should i edit that "nohide" option ???
Code:
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.
/ 192.168.x.x(rw,no_root_squash)
The nohide option just goes in the brackets like the others:
/ 192.168.x.x(rw,root_squash,nohide)
The danger with this is that you may inadvertantly delete something from your remote system, as in:
"Hmmm, got a lot of crap in /mnt, just tidy it up...."
rm -rf /mnt/*
"Ooops... just deleted everything on my other system!"
The alternative method I talked about is to export and mount just the directories you are using, for example:
# Export everything read-only to one host so it can take complete backups
/ 192.168.1.10(ro,root_squash,sync)
# Export my home directory to my laptop, mounted as /home/krw/remote on the laptop
# i.e. mount -t nfs desktop:/home/krw /home/krw/remote
/home/krw laptop1(rw,root_squash,sync)
# Export public directory to the whole subnet to share software etc.
/home/public 192.168.x.x(ro,root_squash)
Hello,
in order to conclude i'm posting the entries of /etc/exports...and ya it's working properly ( for quite a long...i forgot to post "thnx" reply )
Thanx karl.wilcox
Quote:
root@bond:~# cat /etc/exports
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.