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


  Search this Thread
Old 05-28-2004, 07:10 PM   #1
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
cannot create new files on fat32 via nfs

i have a network file system (server and client) setup to share a fat32 partition

whenever i try to create a new file onto it (logged in as any user, including root), i get this error: cp: cannot create regular file `/mnt/infinitefat32/': Operation not permitted

if i am in that mounted directory (infinitefat32) and use vi to create a new file, i get an error that says "file does not exists"

the only way to get around this problem is to use "touch file.extension" and then copy the file or create a file with vi

i can work with my fat32 partition locally without any of these problems; i can also use the mkdir command over the network without a problem; my nfs ext3 partition works perfectly

i know of the problems with fat32 on nfs, but i didn't expect creating files to be an issue

here is my /etc/exports file


and hosts.allow

any ideas?
Old 06-02-2004, 04:32 PM   #2
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Original Poster
Rep: Reputation: 30
i've also experienced this problem while trying to export other ext3 partitions under /mnt

this time, i couldn't even mount those partitions, telling me that the server said "permission denied" even though my config files were correct

then i had this wild idea that the server didn't know how to export or mount things over nfs that were mounted locally; so instead of leaving the export locations open, i simply closed them with a "/"; and what do you know, i can now mount and write to these ext3 partitions!

of course i converted to ext3 hoping it would solve the fat32 problems, but it seems that all that was necessary was to make the paths more specific; so i haven't tested on exported fat32's, but i believe that this would have solved my problem

so my hosts.allow and hosts.deny are exactly the same, except now, my exports file looks like (notice that the paths end with backslash, where they didn't in my above post:


and it works!

*edit: one thing to watch out for, though, is that permissions will be kept alive on these ext3 partitions... but only uid's will be authenticated, meaning that if locally i created the user "localuser" which defaulted to the next available uid witht he adduser tool and then created another user on the other computer "otheruser" which defaulted to the next available, files created by localuser can only be viewed by otheruser, even if i create localuser on the other computer....

note that not even mounting and trying to work with the files as root remotely would work because nfs will remap "root" to the user "nobody" unless the option no_root_squash is given.... and that is the option that i added for /mnt/data/ since it isn't another linux install, just a data partition that anyone on my network can do as they please with

so now my entry looks like:

another way around this is to give full permissions to everything in that partitions by locally doing chmod 777 /mnt/data and chmod 777 -R /mnt/data (though this would have to be done every time a new file is created on that partition if you want remote users to work with that file)

Last edited by TheOneAndOnlySM; 06-04-2004 at 12:14 PM.


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
Trying to create a FAT32 partition... PC Wizard Linux - Newbie 2 09-17-2004 11:18 PM
Is it possible to create a new fat32 partition without reinstalling Slack or XP? blk96gt Slackware 8 08-27-2004 12:44 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 11:05 PM
HOW to create a FAT32 partition for file sharing between OSes? jolly_good2000 Linux - General 5 11-21-2002 02:08 AM
nfs fat32 acid_kewpie Linux - Networking 7 10-03-2001 12:45 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:04 PM.

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