LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-30-2009, 02:44 PM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
Question vfat subdirectory and NFS problem


Hi guys,

I am new to the whole NFS thing but I managed to get NFS working and was able to mount and access some directories using NFS. I ran into a situation that I don't know how to get around:

I exported the directory /share through NFS, and I am able to mount it from other machine, I went to the NFS Server machine and mounted a vfat hard disk on /share/mybook

when I do ls /share from other machines, i can see the directory listed but when i cd to it and list it, i get nothing even that the hard disk has some files ( i am able to see them on NFS server using ls /share/book)

please let me know how can I list and have access to vfat mounted directory on the NFS server from remote machines?

Thanks
 
Old 01-31-2009, 06:54 AM   #2
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Wink Dude try samba ..

Bro just google "samba" , its an excellent nfs helping application
 
Old 02-01-2009, 11:05 AM   #3
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
no, you know what, i guess i'll have to mount to vfat directory separately, i've come to realize that "we mount file systems and not directories"!
 
Old 02-01-2009, 11:12 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
Was the vfat partition mounted after the nfs server started? If you put an entry in /etc/fstab, you should be able to share it.

Also, watch the options when you mount the vfat filesystem. Fat32 doesn't contain Linux inodes so you need to determine the ownership and permissions of the entire drive en mass. All of the files will have the same permissions. All of the directories will have the same permissions.

Read the man page for the mount command. The uid, and gid options affect who the owner and group of the filesystem is. The fmask and dmask options determine what the rights are.

If this isn't a removable device, and you aren't dual booting, don't use a vfat filesystem. If it is an external drive, but you don't move it to a Windows machine, it would make sense to reformat it using a native linux filesystem such as ext3 or xfs.
 
Old 02-08-2009, 12:29 PM   #5
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
problem solved..

it turns out that all i needed is to add the nohide option to the subdirectory export on the server and it all worked like a charm.

check man exports, and look for the nohide option flag.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NFS problem whit AIX nfs server . uglumen Solaris / OpenSolaris 1 10-17-2008 07:10 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
Samba or NFS for a vfat partition ? Creak Linux - Software 0 03-26-2004 05:19 AM
How do I mount remote vfat partition with nfs x9abm Linux - Networking 10 08-29-2003 04:26 AM


All times are GMT -5. The time now is 10:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration