LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2005, 04:15 AM   #1
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
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.

regards
 
Old 10-26-2005, 05:45 AM   #2
karl.wilcox
LQ Newbie
 
Registered: Oct 2005
Location: Lincolnshire, England
Distribution: SuSE/Debian (From Knoppix)
Posts: 9

Rep: Reputation: 0
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!

Hope this helps,

All the best,
Karl
 
Old 10-26-2005, 07:50 PM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
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)
and i'm not clear with that alternative method.

regards
 
Old 10-27-2005, 03:10 AM   #4
karl.wilcox
LQ Newbie
 
Registered: Oct 2005
Location: Lincolnshire, England
Distribution: SuSE/Debian (From Knoppix)
Posts: 9

Rep: Reputation: 0
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)

Hope this helps,
Karl
 
Old 12-21-2005, 11:20 PM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Original Poster
Rep: Reputation: 45
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.

/ 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/hd 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/winC 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/winD 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/winE 192.168.0.2(rw,nohide,no_root_squash,sync)
/root/Desktop/MyComputer/winF 192.168.0.2(rw,nohide,no_root_squash,sync)
viewers should notice that i've set the path upto the directory where i've mounted my drives

Quote:
root@bond:~# cat /etc/fstab
/dev/hda9 swap swap defaults 0 0
/dev/hda6 / reiserfs defaults 1 1
/dev/hda1 /root/Desktop/MyComputer/winC vfat ro 1 0
/dev/hda5 /root/Desktop/MyComputer/winD vfat rw 1 0
/dev/hda7 /root/Desktop/MyComputer/winE vfat rw 1 0
/dev/hda8 /root/Desktop/MyComputer/winF vfat rw 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/hdd1 /root/Desktop/MyComputer/hd vfat rw 1 0
regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting NFS Share To Another Machine mijohnst Linux - Networking 8 06-24-2005 10:30 AM
Two hard drives one machine BU5T4 Linux - Hardware 3 01-25-2005 05:00 PM
NFS Dummy Machine (NO HDD)? cmj Linux - Networking 1 12-13-2004 08:22 PM
is there something wrong with backing up to nfs or samba mounted drives? SerfurJ Linux - Networking 3 02-11-2004 10:36 AM
Need to see other two drives in my machine Olusegun Linux - Newbie 1 12-18-2002 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration