Move Nested Share up One Level

  • Hi,

    I just built an Odroid HC-4 to replace my old Odroid HC-2.


    Everything is set up and files have already been moved from my old NAS to this one, but I somehow nested my share folder and don't know how I did it, or how to easily fix it.


    This completely perplexed me because it mounts as intended on my computer and I don't see the nested folder at all. The contents are all there and I don't see another MEDIA2 folder to open up.

    Code
    192.168.1.107:/export/MEDIA2 on /mnt/NAS type nfs4 (rw,relatime,vers=4.2,rsize=8192,wsize=8192,namlen=255,hard,proto=tcp,timeo=14,retrans=2,sec=sys,clientaddr=192.168.1.100,local_lock=none,addr=192.168.1.107,_netdev)

    but I realized when accessing it from my nvidia shield that I had to browse another level to `/export/MEDIA2/MEDIA2` to find my files.

    I ssh'd in and I can certainly see that it got nested somehow. but not sure how to fix it.


    This is what the folder share looks like.

    2wDj1BX.png


    and here's the NFS Share

    Q16kwzu.png


    IS there an easy way to move my files up one level and get my folder shared properly?


    Thanks for any help/

  • So I've moved my files up a level and now my shield can access the files, but I can no longer mount to my Linux machine.


    I also noticed I can not delete my folder share. The option to delete is greyed out as you can see in the first image above.


    Some more info distilled from comments end such.


    New HC4 fsatb

    Code
    # >>> [openmediavault]
    /dev/disk/by-uuid/ee38bc4a-56d0-49a7-89e4-dd3c3bc51da5 /srv/dev-disk-by-uuid-ee38bc4a-56d0-49a7-89e4-dd3c3bc51da5 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    /srv/dev-disk-by-uuid-ee38bc4a-56d0-49a7-89e4-dd3c3bc51da5/ /export/MEDIA2 none bind,nofail 0 0
    # <<< [openmediavault]

    Old HC-2 fstab

    Code
    # >>> [openmediavault]
    /dev/disk/by-label/KODINAS /srv/dev-disk-by-label-KODINAS ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    /srv/dev-disk-by-label-KODINAS/Media /export/Media none bind,nofail 0 0
    # <<< [openmediavault]



    New HC4 exports

    Code
    /export/MEDIA2 192.168.1.0/24(fsid=1,rw,subtree_check,insecure)
    /export 192.168.1.0/24(ro,fsid=0,root_squash,no_subtree_check,hide)

    old HC-2 exports

    Code
    /export/Media 192.168.1.0/24(fsid=1,rw,subtree_check,insecure)
    /export 192.168.1.0/24(rw,all_squash,insecure,anonuid=1001,anongid=100,no_subtree_check,fsid=1)


    Thanks for looking.

  • Seems I spoke too soon and that didn't survive a reboot.


    I have mirrored my old HC-2 system and everything appears to be identical. I can access my share fine from my media devices, but I can't get it to mount on my Linux box.


    Code
    $ showmount -e 192.168.1.107
    Export list for 192.168.1.107:
    /export 192.168.1.0/24
    /export/MEDIA2 192.168.1.0/24




    Here is the fstab on my client machine:

    Code
    # LABEL=odroid (NAS DRIVE)
    192.168.1.110:/export/ /mnt/odroid nfs4 noauto,x-systemd.automount,x-systemd.mount-timeout=10,rsize=8192,wsize=8192,timeo=14,_netdev 0 0
    # LABEL=ODROID-HC4 (NAS DRIVE)
    192.168.1.107:/export/ /mnt/NAS nfs4 noauto,x-systemd.automount,x-systemd.mount-timeout=10,rsize=8192,wsize=8192,timeo=14,_netdev 0 0


    I still can't delete the shared folder from the OMV5 gui as it's still greyed out.


    Here are side by side of my nfs shares, and shared folders.




    The directory structures are exact other than the names. Media on my old NAS, and MEDIA2 on the new one, but somehow when I choose "Select a directory" from the folder share screens, I'm not at the same level.



    I am able to mount the root directory, but not the MEDIA2 directory as intended.

    Code
    $ sudo mount -t nfs4 192.168.1.107:/export /mnt/NAS/
    mount.nfs4: mounting 192.168.1.107:/export failed, reason given by server: No such file or directory
    $ sudo mount -t nfs4 192.168.1.107:/export/MEDIA2 /mnt/NAS/
    mount.nfs4: mounting 192.168.1.107:/export/MEDIA2 failed, reason given by server: No such file or directory
    $ sudo mount -t nfs4 192.168.1.107:/ /mnt/NAS/
    $


    So my old NAS mounts to my /mnt/Media folder on boot every time.



    I could really use some help.


    Thanks



    EDIT: I was finally able to delete the Access Rights > Shared Folder by deleting the NFS share first.

    So with no shares now, I still can't select my MEDIA2 folder as the folder to share. It wants to share a folder from within that folder.



Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!