These are the hard drives::
Code:
osmc@osmc:~$ ls /media/ -la total 36 drwxr-xr-x 4 root root 4096 Mar 31 18:28 . drwxr-xr-x 23 root root 4096 Mar 15 13:35 .. drwx------ 1 osmc osmc 8192 Mar 30 21:54 ELEMENTS -rw-r--r-- 1 root root 232 Mar 6 13:34 README drwx------ 1 osmc osmc 16384 Mar 30 15:22 TOURO
ELEMENTS and TOURO, two ntfs hard drives that work just fine.
I tried sharing the first one through nfs with the following config (i copied the parameters from a tutorial):
Code:
osmc@osmc:~$ cat /etc/exports # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: # /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) # /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /media/ELEMENTS/Pelis/ 192.168.1.0/24(rw,subtree_check,insecure,no_root_squash) /media/TOURO/Series/ 192.168.1.0/24(rw,subtree_check,insecure,no_root_squash)
and from the pi running raspbian I have confirmed that I can see the drives being shared:
Code:
/media $ showmount -e 192.168.1.24 Export list for 192.168.1.24: /media/TOURO/Series/ 192.168.1.0/24 /media/ELEMENTS/Pelis/ 192.168.1.0/24
Now, when I try to mount them, all works fine, but when I ls the folders nothing cames back. This is my fstab:
Code:
1cat /etc/fstab proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1 # a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that UUID=fdff96e6-816c-d001-e05f-96e6816cd001 /media/hdd/ auto defaults,user 0 0 #external hdd 192.168.1.24:/media/ELEMENTS/Pelis /media/pelis nfs rsize=8192,wsize=8192,timeo=14,intr 192.168.1.24:/media/TOURO/Series /media/series nfs rsize=8192,wsize=8192,timeo=14,intr
Code:
apoc@raspbian ~ $ ls /media/pelis/ apoc@raspbian ~ $
The superweird thing is that they are mounted, as they show up if I run "df -h"
Code:
df -h S.ficheros Tamaņo Usados Disp Uso% Montado en rootfs 7,2G 2,6G 4,4G 37% / /dev/root 7,2G 2,6G 4,4G 37% / devtmpfs 484M 0 484M 0% /dev tmpfs 98M 380K 98M 1% /run tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm /dev/mmcblk0p1 56M 15M 42M 26% /boot /dev/sda1 219G 4,7G 202G 3% /media/hdd 192.168.1.24:/media/ELEMENTS/Pelis 932G 742G 191G 80% /media/pelis 192.168.1.24:/media/TOURO/Series 932G 813G 120G 88% /media/series
Code:
ls /media/ -la total 808 drwxr-xr-x 5 root root 4096 abr 2 18:36 . drwxr-xr-x 22 root root 4096 mar 25 16:14 .. drwxr-xr-x 5 apoc apoc 4096 abr 2 13:12 hdd drwx------ 1 apoc pi 786432 mar 30 22:03 pelis drwx------ 1 apoc pi 28672 mar 29 16:09 series
Note that the group for the two folders is "pi", but if I umount the drives it becomes "apoc" (my nick and my personal group).
Code:
ls /media/ -la total 20 drwxr-xr-x 5 root root 4096 abr 2 18:36 . drwxr-xr-x 22 root root 4096 mar 25 16:14 .. drwxr-xr-x 5 apoc apoc 4096 abr 2 13:12 hdd drwxr-xr-x 2 apoc apoc 4096 abr 2 18:36 pelis drwxr-xr-x 2 apoc apoc 4096 abr 2 18:36 series
Both users ("osmc" in the osmc pi and "apoc" in the raspbian one) have the same uid: 1000.
What am i doing wrong?