Using an old MAC Pro as a NAS and I need HELP!

I have an old MAC Pro with OSX 10.11.6 and extra hard drives to keep my movies on.

The path seems to be correct but the folder doesn’t show up on the Vero 4K+

I’m SURE I’m missing something simple.

sudo nano /etc/fstab contains just:
192.168.40.164:/nfs/4TBshare1/Movies /mnt/Server_Movies nfs noauto,x-systemd.automount 0 0

MAC /etc/exports contains just:
/4TBshare1/Movies -network 192.168.40.164 -mask 255.255.255.0

osmc@osmc: $ showmount -e 192.168.40.164 on the VERO and on the MAC give nothing:
Export list for 192.168.40.164:

osmc@osmc: cd /mnt
osmc@osmc: /mnt$ ls
Server_Movies
osmc@osmc: /mnt$ cd /mnt/Server_Movies
-bash: cd: /mnt/Server_Movies: No such device
osmc@osmc: /mnt$

Hi,

On the Mac Pro what’s the output of:

sudo nfsd status

&

sudo nfsd checkexports

Thanks Tom.

Tom,

Thanks for the quick reply!! I think you’ve found the problem (or at least the symptom).

4TBshare1 is the name of the HD volume OWNED by the user logged into SSH.
Movies is the folder therein.

I tried logging in a SSH session on another MAC and got THIS:
johnmerantza@JohnsMacStudio-598 ~ % ssh nas@192.168.40.164
ssh: connect to host 192.168.40.164 port 22: Connection refused
johnmerantza@JohnsMacStudio-598 ~ % ssh johnmerantza@192.168.40.164
ssh: connect to host 192.168.40.164 port 22: Connection refused

Sharing:~ nas$ sudo nfsd status
Password:
nfsd service is enabled
nfsd is running (pid 228, 8 threads)

Sharing:~ nas$ Sudo nfsd checkexports
exports:2: path contains non-directory or non-existent components: /4TBshare1/Movies
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
Sharing:~ nas$

I must need to pay more SYNTAX!

I didn’t mean to indicate that I know HOW to change the syntax of the the exports.

Any guidance you can provide will be HUGELY appreciated.

Hi,

Does 192.168.40.164 have ssh enabled?

I’ve just doubled check your export file, If I’m understanding your set-up correctly 192.168.40.164 is the Mac pro nas. If that is the case, the export should look more like this:

/4TBshare1/Movies -network 192.168.40.0/24 -mask 255.255.255.0

exports:2: path contains non-directory or non-existent components: /4TBshare1/Movies

Please provide the output of:

diskutil list

Thanks Tom.

Sharing:~ nas$ sudo nano /etc/exports
Password:
Sharing:~ nas$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *750.2 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 749.3 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *4.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_HFS 4TBshare3 4.0 TB disk1s2
/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *4.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS 4TBshare2 4.0 TB disk2s2
/dev/disk3 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *4.0 TB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS 4TBshare1 4.0 TB disk3s2
Sharing:~ nas$ pkill -HUP mountd
Sharing:~ nas$ Sudo nfsd checkexports
Password:
Bad net: 192.168.40.0/24
exports:4: error processing options: -network 192.168.40.0/24 -mask 255.255.255.0
Sharing:~ nas$

I think @Tom_Doyle made a typo, try
/4TBshare1/Movies -network 192.168.40.0 -mask 255.255.255.0

1 Like

Both give:

Sharing:~ nas$ Sudo nfsd checkexports

exports:2: path contains non-directory or non-existent components: /4TBshare1/Movies

exports:2: no usable directories in export entry

exports:2: using fallback (marked offline): /

Hi,

Apologies for the typo

I was expecting a different output diskutil (did a quick google), please provide the output of mount

Thanks Tom.

Sharing:~ nas$ mount

/dev/disk0s2 on / (hfs, local, journaled)

devfs on /dev (devfs, local, nobrowse)

/dev/disk1s2 on /Volumes/4TBshare3 (hfs, local, journaled)

/dev/disk3s2 on /Volumes/4TBshare1 (hfs, local, journaled)

/dev/disk2s2 on /Volumes/4TBshare2 (hfs, local, journaled)

map -hosts on /net (autofs, nosuid, automounted, nobrowse)

map auto_home on /home (autofs, automounted, nobrowse)

/dev/disk4s1 on /Volumes/Transmission (hfs, local, nodev, nosuid, read-only, noowners, quarantine, mounted by nas)

Sharing:~ nas$

Hi,

I believe this should do it:

/Volumes/4TBshare1/Movies -network 192.168.40.0 -mask 255.255.255.0

If that doesn’t work it may be that nfs on OSX doesn’t supporting subfolders, so please try this instead:

/Volumes/4TBshare1-network 192.168.40.0 -mask 255.255.255.0

Thanks Tom.

PROGRESS!!

osmc@osmc:$ cd /mnt
osmc@osmc: /mnt$ ls
Server_Movies Server_TV

osmc@osmc: /mnt$ showmount -e 192.168.40.164
Export list for 192.168.40.164:
/Volumes/4TBshare1/Movies 192.168.40.0

---------Still not there but I see the Movies folder on the osmc Vero

AND Server_Movies is in the Mnt folder but cd gives:

osmc@osmc /mnt $ ls
Server Server_Movies Server_TV
osmc@osmc:/mnt $ cd /mnt/Server_TV

-bash: cd: /mnt/Server_TV: No such device

The Server Server_Movies and Server_TV folders appear in osmc, but empty!

HI,

On the vero please provide the output of mount

Thanks

osmc@osmc:~$ mount

devtmpfs on /dev type devtmpfs (rw,relatime,size=1014148k,nr_inodes=253537,mode=755)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

tmpfs on /run type tmpfs (rw,relatime)

/dev/mapper/vero–nand-root on / type ext4 (rw,relatime,stripe=1024,data=ordered)

securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)

tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)

tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)

tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,size=4096k,nr_inodes=1024,mode=755)

cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)

cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)

pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)

bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime)

cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)

cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)

cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)

cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)

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/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)

cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)

cgroup on /sys/fs/cgroup/schedtune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)

cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)

cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)

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=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=13225)

hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)

mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)

sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)

debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)

tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)

fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)

configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)

tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=203588k,nr_inodes=50897,mode=700,uid=1000,gid=1000)

osmc@osmc:~$

Hi,

What’s the output of:

mount -v /mnt/Server_Movies

Thanks Tom.

HMMMM!!!

mount -v /mnt/Server_Movies gives:

mount.cifs: permission denied

Hi,

Sorry should have been:

sudo mount -v /mnt/Server_Movies gives

That’s odd it should be trying to mount cifs, can you please provide the full contents of /etc/fstab

Thanks Tom.

rootfs is not mounted in fstab as we do it via initramfs. Uncomment for remount (slower boot)

#/dev/vero-nand/root / ext4 defaults,noatime 0 0

############ JOHN

############OLD:
###//192.168.40.164/4TB-share1 /mnt/Server1 cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,ui>

//192.168.40.164/4TB-share1/Movies /mnt/Server_Movies cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.cred>

##//192.168.87.25/Movies /mnt/Server_Movies cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,ui>

//192.168.40.164/4TB-share1/TV /mnt/Server_TV cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,>

###########NEW:
###192.168.40.164:/nfs/4TBshare1/TV /mnt/Server_TV nfs noauto,x-systemd.automount 0 0

###192.168.40.164:/nfs/4TBshare1/Movies /mnt/Server_Movies nfs noauto,x-systemd.automount 0 0

Hi,

You need to remove this one or mount the nfs one with a different mountpoint e.g. /mnt/Server_Movies_nfs

Also the nfs ones won’t work, with hashes in front of the ip addresses.

Thanks Tom.