Unable to mount nfs shares are rw

Hi All

I have been having some trouble getting my nfs share to mount correctly. I am able to view, but can not write. The desktop client is a fresh install of openSuSe 12.2 x64.

Remote server 1 is Ubuntu Server 12.10 x64
Remote server 2 is FreeNAS 8.2 x64

The client’s fstab is as follows:


# mirrored backup on file server
192.168.1.148:/export/backup    /mnt/backup     nfs     vers=3,rsize=32768,wsize=32768,intr,noatime 0 0 
# NAS on file server
192.168.1.148:/export/storage   /mnt/remote     nfs     vers=3,rsize=32768,wsize=32768,intr,noatime 0 0 
# multimedia files on media server
192.168.1.122:/mnt/storage/media        /mnt/media      nfs     rsize=131072,wsize=131072,intr,noatime 0 0 

The multimedia files on 192.168.1.122 mounts and is rw, so no problem there.

Here is the exports file on the server that does not mount as rw


/export/storage 192.168.1.1/24 (rw,sync,no_root_squash)
/export/backup 192.168.1.1/24 (rw,sync,no_root_squash)

I’m stuck as it used to work… but had to reinstall… copied the config from the previous install (had it saved as a txt file) but now does not work.

Any thoughts?

The multimedia share misses the “vers” option. That’s a thing I see. But … on my server / clients I use the “defaults” option, shares are mounted " rw " is the original share is " rw ".

I did not originally have the vers=3 in the fstab, but I added it as SuSE was trying to mount as nfsv4 by default, and I don’t want to use v4.

This is the exports file on the server that is able to mount correctly:


/mnt/storage/media -alldirs -network 192.168.1.1/24

WHen I look at the mounted files through the client, this is how it looks:


drwxrwxrwx 3 linux users 16384 Dec 25 16:38 Camera
drwxrwxrwx 4 linux users    78 Jan 14 10:43 Documents
drwxrwxrwx 7 linux  1000    69 Aug  6  2012 OS Images
drwxrwxrwx 4 linux  1000    37 Nov 12 16:13 Other Software
drwxrwxrwx 3 linux users    45 Jan 17 10:07 Shared
drwxrwxrwx 6 linux users    63 Jan 31 14:57 SickBeard

when I access the server, this is how it looks:


drwxrwxrwx 3 server users  16384 Dec 25 16:38 Camera
drwxrwxrwx 4 server users     78 Jan 14 10:43 Documents
drwxrwxrwx 7 server server    69 Aug  6  2012 OS Images
drwxrwxrwx 4 server server    37 Nov 12 16:13 Other Software
drwxrwxrwx 3 server users     45 Jan 17 10:07 Shared
drwxrwxrwx 6 server users     63 Jan 31 14:57 SickBeard

The working nfs mount appears as such:


drwxr-xr-x 56 linux root 56 Jan 23 15:37 iTunes
drwxr-xr-x  4 linux root  4 Feb  5 11:47 movies
drwxr-xr-x 82 linux root 83 Jan 25 22:49 tvshows

when I try to create a file, I get the following error:


linux@suse-desktop:/mnt/remote> touch test
touch: cannot touch âtestâ: Read-only file system

what are your rights in /mnt/remote ? Based on that you should change the rights to be able to ‘touch’ a file. Not sure how it affects the NFS as I don’t know under what user that is mounted.

here is what I get when I do an ls -l in /mnt/remote



linux@suse-desktop:/mnt> cd remote/
linux@suse-desktop:/mnt/remote> ls -l
total 32
drwxrwxrwx 3 linux 1000 16384 Dec 25 16:38 Camera
drwxrwxrwx 4 linux 1000    78 Jan 14 10:43 Documents
drwxrwxrwx 7 linux 1000    69 Aug  6  2012 OS Images
drwxrwxrwx 4 linux 1000    37 Nov 12 16:13 Other Software
drwxrwxrwx 3 linux 1000    45 Jan 17 10:07 Shared
drwxrwxrwx 6 linux 1000    63 Jan 31 14:57 SickBeard


and in case I have something setup wrong, when logged in with the main user account and running ‘id’ I get the following:



uid=1000(linux) gid=100(users) groups=100(users),33(video)


On 2013-02-05 22:26, bluedalek wrote:

> This is the exports file on the server that is able to mount correctly:
>
>
> Code:
> --------------------
>
> /mnt/storage/media -alldirs -network 192.168.1.1/24
>
> --------------------

That file has a strange format. The documented format in the man page is
like this:


> EXAMPLE
>        # sample /etc/exports file
>        /               master(rw) trusty(rw,no_root_squash)
>        /projects       proj*.local.domain(rw)
>        /usr            *.local.domain(ro) @trusted(rw)
>        /home/joe       pc001(rw,all_squash,anonuid=150,anongid=100)
>        /pub            *(ro,insecure,all_squash)
>        /srv/www        -sync,rw server @trusted @external(ro)
>        /foo            2001:db8:9:e54::/64(rw) 192.0.2.0/24(rw)
>        /build          buildhost[0-9].local.domain(rw)
>
>        The  first line exports the entire filesystem to machines master and trusty.  In addition to write access, all uid squashing is turned off
>        for host trusty. The second and third entry show examples for wildcard hostnames and netgroups (this is the entry `@trusted'). The  fourth
>        line  shows the entry for the PC/NFS client discussed above. Line 5 exports the public FTP directory to every host in the world, executing
>        all requests under the nobody account. The insecure option in this entry also allows clients with NFS implementations  that  don't  use  a
>        reserved  port  for  NFS.   The  sixth line exports a directory read-write to the machine 'server' as well as the `@trusted' netgroup, and
>        read-only to netgroup `@external', all three mounts with the `sync' option enabled. The seventh line exports a directory to both  an  IPv6
>        and an IPv4 subnet. The eighth line demonstrates a character class wildcard match.


I do not see the “-alldirs” parameter you use in the man page. I don’t
know what the “-network” means, either. And the last thing would be a
“()” with options inside.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Hi Carlos

The working exports / nfs mount is a FreeNAS / BSD system, hence the strange format. I did not set this up in the exports file manually, rather it was created by the FreeNAS GUI automatically.

As for my problem, I do not seem to be any further ahead, and I realize that my initial posts may be a little confusing… so… I am going to try again from the top.

Desktop Client - openSuSE 12.2 x64 (clean OS install)
File Server - Ubuntu Server 12.10 x64 (clean OS install, existing storage drives)
Media Server - FreeNAS 8.2 x64 (existing OS & storage drives)

Desktop details:

fstab:


192.168.1.148:/export/backup    /mnt/backup     nfs     vers=3,rsize=32768,wsize=32768,rw,intr,noatime 0 0 
192.168.1.122:/mnt/storage/media        /mnt/media      nfs     rsize=131072,wsize=131072,intr,noatime 0 0 
192.168.1.148:/export/storage   /mnt/remote     nfs     vers=3,rsize=32768,wsize=32768,rw,intr,noatime 0 0

results of mount:


linux@suse-desktop:/mnt/remote> mount
devtmpfs on /dev type devtmpfs (rw,relatime,size=8190368k,nr_inodes=2047592,mode=755)                                                                                                                                                                                          
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/md0 on / type ext4 (rw,relatime,stripe=64,data=ordered)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=27,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
mqueue on /dev/mqueue type mqueue (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/sda2 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sdc1 on /home type ext4 (rw,relatime,data=ordered)
/dev/sdd1 on /mnt/storage type ext4 (rw,relatime,data=ordered)
192.168.1.122:/mnt/storage/media/ on /mnt/media type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.122,mountvers=3,mountport=856,mountproto=udp,local_lock=none,addr=192.168.1.122)
none on /proc/fs/vmblock/mountPoint type vmblock (rw,relatime)
gvfs-fuse-daemon on /run/user/gentle/gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /var/lock type tmpfs (rw,relatime)
192.168.1.148:/export/backup/ on /mnt/backup type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.148,mountvers=3,mountport=35116,mountproto=udp,local_lock=none,addr=192.168.1.148)
192.168.1.148:/export/storage/ on /mnt/remote type nfs (rw,noatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.148,mountvers=3,mountport=35116,mountproto=udp,local_lock=none,addr=192.168.1.148)


linux@suse-desktop:/mnt> ls -la
total 32
drwxr-xr-x  6 root root 4096 Feb  4 00:38 .
drwxr-xr-x 24 root root 4096 Feb  5 17:34 ..
drwxrwxrwx  2 root root 4096 Feb  5 17:16 backup
drwxrwxrwx  6 root root    6 Feb  5 17:28 media
drwxrwxrwx  2 root root 4096 Feb  4 00:37 remote
drwxrwxrwx  3 root root 4096 Feb  5 16:44 storage
linux@suse-desktop:/mnt> sudo mount -a
root's password:
linux@suse-desktop:/mnt> ls -la
total 24
drwxr-xr-x  6 root   root 4096 Feb  4 00:38 .
drwxr-xr-x 24 root   root 4096 Feb  5 17:34 ..
drwxrwxrwx  4 linux 1000   33 Aug 20 18:10 backup
drwxrwxrwx  6 root   root    6 Feb  5 17:28 media
drwxrwxrwx  8 linux 1000  101 Feb  5 16:05 remote
drwxrwxrwx  3 root   root 4096 Feb  5 16:44 storage
linux@suse-desktop:/mnt> 

tried to change ‘backup’ and ‘remote’ to match the working nfs mount ‘media’


linux@suse-desktop:/mnt> sudo chown root:root backup/
chown: changing ownership of ‘backup/’: Read-only file system
linux@suse-desktop:/mnt> 

am able to create a file with ‘touch’ on the media share


linux@suse-desktop:/mnt> cd media
linux@suse-desktop:/mnt/media> touch test
linux@suse-desktop:/mnt/media> ls -la
total 65
drwxrwxrwx  6 root   root    7 Feb  5 20:26 .
drwxr-xr-x  6 root   root 4096 Feb  4 00:38 ..
drwxr-xr-x 56 linux root   56 Jan 23 15:37 iTunes
drwxr-xr-x  4 linux root    4 Feb  5 11:47 movies
-rw-r--r--  1 linux root    0 Feb  5 20:26 test
drwx------  4 linux root    4 Dec 26 19:30 .Trash-1000
drwxr-xr-x 82 linux root   83 Jan 25 22:49 tvshows
linux@suse-desktop:/mnt/media> 

but as with trying to change owner ship, I am getting an error that the file system is read only when trying to touch a file into existence in either ‘remote’ or ‘backup’


linux@suse-desktop:/mnt/media> cd ../remote/
linux@suse-desktop:/mnt/remote> touch test
touch: cannot touch ‘test’: Read-only file system
linux@suse-desktop:/mnt/remote> 

So then I ssh’d into the two servers, and check to see what their permissions are set as

file server:


server@ubuntu-server:/export$ ls -la
total 4
drwxr-xr-x  4 root   root     33 Jan 31 00:20 .
drwxr-xr-x 24 root   root   4096 Jan 31 22:28 ..
drwxrwxrwx  4 server server   33 Aug 20 18:10 backup
drwxrwxrwx  8 server server  101 Feb  5 16:05 storage
server@ubuntu-server:/export$ cd storage/
server@ubuntu-server:/export/storage$ ls -la
total 32
drwxrwxrwx 8 server server   101 Feb  5 16:05 .
drwxr-xr-x 4 root   root      33 Jan 31 00:20 ..
drwxrwxrwx 3 server server 16384 Dec 25 16:38 Camera
drwxrwxrwx 4 server server    78 Jan 14 10:43 Documents
drwxrwxrwx 7 server server    69 Aug  6  2012 OS Images
drwxrwxrwx 4 server server    37 Nov 12 16:13 Other Software
drwxrwxrwx 3 server server    45 Jan 17 10:07 Shared
drwxrwxrwx 6 server server    63 Jan 31 14:57 SickBeard
server@ubuntu-server:/export/storage$ 

and the media server:


Welcome to FreeNAS
[root@freenas] ~# cd /mnt/storage/
[root@freenas] /mnt/storage# ls -la
total 49
drwxrwxrwx  5 root  wheel    5 Dec 20 23:37 ./
drwxr-xr-x  4 root  wheel  512 Feb  2 21:15 ../
drwxr-xr-x  3 root  wheel    3 Dec 20 23:32 jail/
drwxrwxrwx  6 root  wheel    7 Feb  5 20:26 media/
drwxr-xr-x  3 root  wheel    3 Dec 20 23:32 software/
[root@freenas] /mnt/storage# 

I am able to touch a file on the media server:


[root@freenas] /mnt/storage# cd media/
[root@freenas] /mnt/storage/media# ls -l
total 73
drwxrwxrwx   6 root  wheel   7 Feb  5 20:26 ./
drwxrwxrwx   5 root  wheel   5 Dec 20 23:37 ../
drwx------   4 1000  wheel   4 Dec 26 19:30 .Trash-1000/
drwxr-xr-x  56 1000  wheel  56 Jan 23 15:37 iTunes/
drwxr-xr-x   4 1000  wheel   4 Feb  5 11:47 movies/
-rw-r--r--   1 1000  wheel   0 Feb  5 20:26 test
drwxr-xr-x  82 1000  wheel  83 Jan 25 22:49 tvshows/
[root@freenas] /mnt/storage/media# touch test2
[root@freenas] /mnt/storage/media# ls -l
total 73
drwxrwxrwx   6 root  wheel   8 Feb  5 20:37 ./
drwxrwxrwx   5 root  wheel   5 Dec 20 23:37 ../
drwx------   4 1000  wheel   4 Dec 26 19:30 .Trash-1000/
drwxr-xr-x  56 1000  wheel  56 Jan 23 15:37 iTunes/
drwxr-xr-x   4 1000  wheel   4 Feb  5 11:47 movies/
-rw-r--r--   1 1000  wheel   0 Feb  5 20:26 test
-rw-r--r--   1 root  wheel   0 Feb  5 20:37 test2
drwxr-xr-x  82 1000  wheel  83 Jan 25 22:49 tvshows/
[root@freenas] /mnt/storage/media# 

as well as on the file server:


server@ubuntu-server:~$ cd /export/storage/
server@ubuntu-server:/export/storage$ ls -l
total 32
drwxrwxrwx 3 server server 16384 Dec 25 16:38 Camera
drwxrwxrwx 4 server server    78 Jan 14 10:43 Documents
drwxrwxrwx 7 server server    69 Aug  6  2012 OS Images
drwxrwxrwx 4 server server    37 Nov 12 16:13 Other Software
drwxrwxrwx 3 server server    45 Jan 17 10:07 Shared
drwxrwxrwx 6 server server    63 Jan 31 14:57 SickBeard
server@ubuntu-server:/export/storage$ touch test
server@ubuntu-server:/export/storage$ ls -la
total 32
drwxrwxrwx 8 server server   112 Feb  5 20:38 .
drwxr-xr-x 4 root   root      33 Jan 31 00:20 ..
drwxrwxrwx 3 server server 16384 Dec 25 16:38 Camera
drwxrwxrwx 4 server server    78 Jan 14 10:43 Documents
drwxrwxrwx 7 server server    69 Aug  6  2012 OS Images
drwxrwxrwx 4 server server    37 Nov 12 16:13 Other Software
drwxrwxrwx 3 server server    45 Jan 17 10:07 Shared
drwxrwxrwx 6 server server    63 Jan 31 14:57 SickBeard
-rw-rw-r-- 1 server server     0 Feb  5 20:38 test
server@ubuntu-server:/export/storage$ 

as posted previous, here are the exports files on the file server:



/export/storage 192.168.1.1/24 (rw,sync,no_root_squash) /export/backup 192.168.1.1/24 (rw,sync,no_root_squash)

and the media server:


/mnt/storage/media -alldirs -network 192.168.1.1/24

Yes, I know the options are weird on the media server, but lets not focus too much on that since one, it’s working… and two it’s BSD, not linux.

I think I have provided everything I can. Can anyone shed some light on this? I am on the verge of pulling out what hair I have left!

Thanks again in advance!

bluedalek wrote:

> Code:
> --------------------
>
>
> /export/storage 192.168.1.1/24 (rw,sync,no_root_squash)
/export/backup 192.168.1.1/24 (rw,sync,no_root_squash)
>
> --------------------

I don’t know how you broke the formatting, so I can’t be absolutely
sure, but I think this is your problem. You are NOT allowed to have
whitespace between the client and the parenthesised list of options. So
I think you have requested default options, which includes ‘ro’.

BTW

> Code:
> --------------------
>
> linux@suse-desktop:/mnt> ls -la
> total 32
> drwxr-xr-x 6 root root 4096 Feb 4 00:38 .
> drwxr-xr-x 24 root root 4096 Feb 5 17:34 …
> drwxrwxrwx 2 root root 4096 Feb 5 17:16 backup
> drwxrwxrwx 6 root root 6 Feb 5 17:28 media
> drwxrwxrwx 2 root root 4096 Feb 4 00:37 remote
> drwxrwxrwx 3 root root 4096 Feb 5 16:44 storage
> linux@suse-desktop:/mnt> sudo mount -a
> root’s password:
> linux@suse-desktop:/mnt> ls -la
> total 24
> drwxr-xr-x 6 root root 4096 Feb 4 00:38 .
> drwxr-xr-x 24 root root 4096 Feb 5 17:34 …
> drwxrwxrwx 4 linux 1000 33 Aug 20 18:10 backup
> drwxrwxrwx 6 root root 6 Feb 5 17:28 media
> drwxrwxrwx 8 linux 1000 101 Feb 5 16:05 remote
> drwxrwxrwx 3 root root 4096 Feb 5 16:44 storage
> linux@suse-desktop:/mnt>
>
> --------------------

> Code:
> --------------------
>
> server@ubuntu-server:/export$ ls -la
> total 4
> drwxr-xr-x 4 root root 33 Jan 31 00:20 .
> drwxr-xr-x 24 root root 4096 Jan 31 22:28 …
> drwxrwxrwx 4 server server 33 Aug 20 18:10 backup
> drwxrwxrwx 8 server server 101 Feb 5 16:05 storage
> server@ubuntu-server:/export$ cd storage/
> server@ubuntu-server:/export/storage$ ls -la
> total 32
> drwxrwxrwx 8 server server 101 Feb 5 16:05 .
> drwxr-xr-x 4 root root 33 Jan 31 00:20 …
> drwxrwxrwx 3 server server 16384 Dec 25 16:38 Camera
> drwxrwxrwx 4 server server 78 Jan 14 10:43 Documents
> drwxrwxrwx 7 server server 69 Aug 6 2012 OS Images
> drwxrwxrwx 4 server server 37 Nov 12 16:13 Other Software
> drwxrwxrwx 3 server server 45 Jan 17 10:07 Shared
> drwxrwxrwx 6 server server 63 Jan 31 14:57 SickBeard
> server@ubuntu-server:/export/storage$

> I think I have provided everything I can. Can anyone shed some light
> on this? I am on the verge of pulling out what hair I have left!

One important thing to remember about NFS is that it uses UIDs and they,
and most other attributes of filesystems, are preserved across the mount
unless you do something special. For that reason, it is usual in most
networks that use NFS to make sure that the list of users and groups
(/etc/passwd & /etc/group) is the same on every machine, otherwise
confusions like this will happen.

So your ubuntu box has a user called ‘server’ and a group called
‘server’. We don’t know what the UIDs are but we can see that on your
desktop the user UID maps to a user called ‘linux’ whilst the group UID
is 1000 and there is no group on that machine with that UID.

dmera wrote:
> Not sure how it affects the NFS
> as I don’t know under what user that is mounted.

I guess you’re trying to help. But please restrict your attempts to
subjects that you know something about. You clearly don’t understand how
NFS works, so please stop confusing people until you do.

Thanks! This fixed my issue :slight_smile: I had looked at this a number of time as did some far more Linux knowledgeable people than I, and nobody caught this.

Many thanks again!

bluedalek wrote:
> Thanks! This fixed my issue :slight_smile: I had looked at this a number of
> time as did some far more Linux knowledgeable people than I, and nobody
> caught this.

Yes, don’t ask me how I know that particular gotcha!

Glad it’s solved

On 2013-02-06 15:05, Dave Howorth wrote:
> bluedalek wrote:
>> Thanks! This fixed my issue :slight_smile: I had looked at this a number of
>> time as did some far more Linux knowledgeable people than I, and nobody
>> caught this.
>
> Yes, don’t ask me how I know that particular gotcha!

Indeed, good hunting :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On Wed, 06 Feb 2013 12:03:02 GMT, Dave Howorth
<djh-novell@no-mx.forums.opensuse.org> wrote:

>bluedalek wrote:
>
>> Code:
>> --------------------
>>
>>
>> /export/storage 192.168.1.1/24 (rw,sync,no_root_squash)
>/export/backup 192.168.1.1/24 (rw,sync,no_root_squash)
>>
>> --------------------
>
>I don’t know how you broke the formatting, so I can’t be absolutely
>sure, but I think this is your problem. You are NOT allowed to have
>whitespace between the client and the parenthesised list of options. So
>I think you have requested default options, which includes ‘ro’.
>
>BTW
>
>> Code:
>> --------------------
>>
>> linux@suse-desktop:/mnt> ls -la
>> total 32
>> drwxr-xr-x 6 root root 4096 Feb 4 00:38 .
>> drwxr-xr-x 24 root root 4096 Feb 5 17:34 …
>> drwxrwxrwx 2 root root 4096 Feb 5 17:16 backup
>> drwxrwxrwx 6 root root 6 Feb 5 17:28 media
>> drwxrwxrwx 2 root root 4096 Feb 4 00:37 remote
>> drwxrwxrwx 3 root root 4096 Feb 5 16:44 storage
>> linux@suse-desktop:/mnt> sudo mount -a
>> root’s password:
>> linux@suse-desktop:/mnt> ls -la
>> total 24
>> drwxr-xr-x 6 root root 4096 Feb 4 00:38 .
>> drwxr-xr-x 24 root root 4096 Feb 5 17:34 …
>> drwxrwxrwx 4 linux 1000 33 Aug 20 18:10 backup
>> drwxrwxrwx 6 root root 6 Feb 5 17:28 media
>> drwxrwxrwx 8 linux 1000 101 Feb 5 16:05 remote
>> drwxrwxrwx 3 root root 4096 Feb 5 16:44 storage
>> linux@suse-desktop:/mnt>
>>
>> --------------------
>
>
>> Code:
>> --------------------
>>
>> server@ubuntu-server:/export$ ls -la
>> total 4
>> drwxr-xr-x 4 root root 33 Jan 31 00:20 .
>> drwxr-xr-x 24 root root 4096 Jan 31 22:28 …
>> drwxrwxrwx 4 server server 33 Aug 20 18:10 backup
>> drwxrwxrwx 8 server server 101 Feb 5 16:05 storage
>> server@ubuntu-server:/export$ cd storage/
>> server@ubuntu-server:/export/storage$ ls -la
>> total 32
>> drwxrwxrwx 8 server server 101 Feb 5 16:05 .
>> drwxr-xr-x 4 root root 33 Jan 31 00:20 …
>> drwxrwxrwx 3 server server 16384 Dec 25 16:38 Camera
>> drwxrwxrwx 4 server server 78 Jan 14 10:43 Documents
>> drwxrwxrwx 7 server server 69 Aug 6 2012 OS Images
>> drwxrwxrwx 4 server server 37 Nov 12 16:13 Other Software
>> drwxrwxrwx 3 server server 45 Jan 17 10:07 Shared
>> drwxrwxrwx 6 server server 63 Jan 31 14:57 SickBeard
>> server@ubuntu-server:/export/storage$
>
>> I think I have provided everything I can. Can anyone shed some light
>> on this? I am on the verge of pulling out what hair I have left!
>
>One important thing to remember about NFS is that it uses UIDs and they,
>and most other attributes of filesystems, are preserved across the mount
>unless you do something special. For that reason, it is usual in most
>networks that use NFS to make sure that the list of users and groups
>(/etc/passwd & /etc/group) is the same on every machine, otherwise
>confusions like this will happen.
>
>So your ubuntu box has a user called ‘server’ and a group called
>‘server’. We don’t know what the UIDs are but we can see that on your
>desktop the user UID maps to a user called ‘linux’ whilst the group UID
>is 1000 and there is no group on that machine with that UID.

Thank you very much. I think i may be able to solve my NFS issues now.

?-)

On Wed, 06 Feb 2013 14:05:18 GMT, Dave Howorth
<djh-novell@no-mx.forums.opensuse.org> wrote:

>bluedalek wrote:
>> Thanks! This fixed my issue :slight_smile: I had looked at this a number of
>> time as did some far more Linux knowledgeable people than I, and nobody
>> caught this.
>
>Yes, don’t ask me how I know that particular gotcha!

Oh boy. That sounds like it was really painful.
>
>Glad it’s solved