Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-29-2005, 03:38 AM
|
#1
|
Member
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 8.04
Posts: 33
Rep:
|
Only limited writing access on FAT via NFS
I am trying to connect a windows partition from my linux client via NFS. The partition has been sucessfully exported by the server which is a double-boot-PC. AT the moment I am able to copy files from the FAT to the Linux box and furthermore I can delete files on the FAT and create directories there without problems.
The only difficulty I have is that when I try to copy files from the Linux client onto the FAT. Then I receive "cp: file ,,/mnt/nfs/micha/test/testfile.jpg" cannot be created: Operation not permitted". Nevertheless an empty file has been established and when I try copying again the file is transfered correctly.
Until yet I have played with several exporting options in /etc/exports like "all_squash", "no_root_squash", "rw" etc.
In my fstab I have
192.168.0.2:/home/micha/pix /mnt/nfs nfs rsize=8192,wsize=8192,user,soft,noauto 0 0 and I mount simply with "mount /mnt/nfs"
Is there anybody around who has sucessfully mounted a FAT via NFS with full write access?
Thanks for helping me.
Micha
|
|
|
10-30-2005, 06:19 PM
|
#2
|
Member
Registered: Oct 2004
Posts: 77
Rep:
|
Im having exactly the same problem. anyone can help?!
|
|
|
10-31-2005, 03:37 AM
|
#3
|
Member
Registered: Sep 2003
Location: Germany
Distribution: Ubuntu 8.04
Posts: 33
Original Poster
Rep:
|
Meanwhile I found a solution:
Establish a new group on the server. This group should use the FAT-Partition. E.g. vfat-user (GID=500).
Insert this GID and a valid UID in your server fstab (e.g. UID=1000 and GID=v-fat-user).
Than export your FAT in /etc/exports with the options "all_squash,rw,async,anonuid=1000,anongid=500". anonuid and anongid should refer to the parameter in your server fstab. They are used for mapping the NFS access.
In your client fstab no especial entrys are necessary. In my I have 192.168.0.1:/home/micha /mnt/nfs nfs rsize=8192,wsize=8192,user,soft,bg,noauto 0 0
With this solution several users can access the server FAT. If you need only one user access you can resign anonuid, anongid and all_squash.
Have fun
micha
|
|
|
All times are GMT -5. The time now is 06:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|