Mount smb share from not attached drive

    • OMV 2.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • I tried,
      only router ip (192.168.0.1)
      but I still get this error:

      Source Code

      1. Error #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'omv-mkconf remoteshare 2>&1': Retrying with upper case share name
      3. mount error(6): No such device or address
      4. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)' in /usr/share/openmediavault/engined/module/remoteshare.inc:101
      5. Stack trace:
      6. #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleRemoteShare->applyConfig()
      7. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      8. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      9. #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      10. #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      11. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      12. #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      13. #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      14. #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      15. #9 {main}
      Display All
    • Your mask seems to lack one option though, and thats the name of the remote share:



      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • The remote share must rely on a "Shared Folder" that require a "Volume" and a "Path".
      I have an Rpi2 with an usb drive (externally powered) attached so in "volume" drop-down I have
      • data (3.72GiB available);
      • ScreenPlayHD (29.4GiB available) <---- this is the usb drive
      ​If I create a new "Shared folder" in "data" volume and a I create a "Remote share" with the proper config I have a folder in /media/fa36508a-b3c4-4499-b30a-711dd5994225/smb_readyshare but with only 3.72GB of free space despite of I have a 1TB disk attached to the router and shared via samba with the network.

      How can I see all this space and see this samba drive as a local folder?
    • @ryecoaaron Am I missing something? His GUI part looks slightly different.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • When guest is enabled, it hides the username and password fields. usb_storage should not be in the server field either.
      omv 4.1.4 arrakis | 64 bit | 4.15 backports kernel | omvextrasorg 4.1.4
      omv-extras.org plugins source code and issue tracker - github.com/OpenMediaVault-Plugin-Developers

      Please read this before posting a question.
      Please don't PM for support... Too many PMs!
    • mcgyver83 wrote:

      The remote share must rely on a "Shared Folder" that require a "Volume" and a "Path".
      I have an Rpi2 with an usb drive (externally powered) attached so in "volume" drop-down I have
      • data (3.72GiB available);
      • ScreenPlayHD (29.4GiB available) <---- this is the usb drive
      If I create a new "Shared folder" in "data" volume and a I create a "Remote share" with the proper config I have a folder in /media/fa36508a-b3c4-4499-b30a-711dd5994225/smb_readyshare but with only 3.72GB of free space despite of I have a 1TB disk attached to the router and shared via samba with the network.

      How can I see all this space and see this samba drive as a local folder?



      Now I'm able to configure a remote share, but now I have the issue related to the shared folder "connected" to the remote share
      Images
      • Screen Shot 2016-03-23 at 14.05.25.png

        32.06 kB, 552×240, viewed 195 times
      • Screen Shot 2016-03-23 at 14.05.42.png

        24.76 kB, 499×275, viewed 219 times
    • This is the scenario:
      1. Remote Share rely on a Shared Folder defined in OMV (first picture, label "Samba share will be mounted as this shared folder");
      2. Shared Folder must be configured to rely on a Volume and the only Volume I have in OMV are
        • data with 3.72GiB of free space that is a sd card partition done by OMV during installation;
        • ScreenPlayHD that has 30GiB of free space and it is an usb drive, attached directly to the rasp;
      3. I have a 1 TB usb drive attached to the router, with 931GB of free space shared via samba by the router;
      4. if I mount the samba share manually via ssh with

        Source Code

        1. sudo mount -t cifs //192.168.0.1/usb_storage /mnt/ready_share -o sec=ntlm
        I can see it in terminal, with 931GB of free space and I can write on it;

        Source Code

        1. df -h /mnt/ready_share/
        2. Filesystem Size Used Avail Use% Mounted on
        3. //192.168.0.1/usb_storage 932G 0G 932G 0% /mnt/ready_share

      The problem is that due point 1 and 2 when I define the new Shared Folder to be used by the Remote Share I must choose a Volume and when I select one of the two available the shared folder free space is tied to the volume free space: despite of my samba share has 931GB of space, when I configure it to use the Volume "data" I'm limited by the "data" free space.
      I cannot write more than 3,72GiB of files
    • @ryecoaaron Seems to be a generic problem of Samba reporting the free space of the reshare point instead of the source which has much more space?

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • @subzero79
      I don't understand, what have I to do?
      Maybe I made confusion, I mounted the remote samba share via terminal with che command

      Source Code

      1. sudo mount -t cifs //192.168.0.1/usb_storage /mnt/ready_share -o sec=ntlm

      and all is fine.

      When I configure the "remote share" in OMV I have to connect it to a "Shared Folder" that is related to a "Volume" that limit the free space of the remote share to its available space.
    • Didn't understand you the first time, but now i think i got it.

      I tested in a VM and i cannot reproduce it, i use a samba share from a real omv server.

      Can you tell me how are you writing files to the mounted remote volume ? which program in omv is reporting that cannot allocate more storage because is full?
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • I have the router that "publish" a samba share.
      To use it in OMV I have to define a "Remote Share", that need e "Shared Folder" that rely on a "Volume"
      I defined all as shown in pictures http://forums.openmediavault.org/index.php/Thread/13133-Mount-smb-share-from-not-attached-drive/?postID=108947#post108947

      The issue is that when I move via terminal to the "shared folder" on the "data volume" and I copy files they fill the 3,72GiB of space instead of filling the remote share that has 931GB of free space.
    • From the picture that you posted you should be copying files into this path

      /media/<uuid>/smb_readyshare2/

      To use the volume from the usb disk in the router.

      If you copy files into this path /media/<uuid>/ you'll be using the sdcard space with only 3.x gb left.

      Please mount the samba share with the remote plugin and post here
      df -h
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server

      The post was edited 1 time, last by davidh2k ().

    • I'm copying files in /media/fa36508a-b3c4-4499-b30a-711dd5994225/smb_readyshare_2 and, despite of it is the shared folder related to the remote share I cannot copy more than 3.71GiB.


      Source Code

      1. pi@raspberrypi /media/fa36508a-b3c4-4499-b30a-711dd5994225/smb_readyshare_2 $ df -h
      2. Filesystem Size Used Avail Use% Mounted on
      3. /dev/root 3.2G 2.8G 310M 90% /
      4. devtmpfs 459M 0 459M 0% /dev
      5. tmpfs 93M 872K 92M 1% /run
      6. tmpfs 5.0M 0 5.0M 0% /run/lock
      7. tmpfs 186M 0 186M 0% /run/shm
      8. /dev/mmcblk0p1 56M 20M 37M 36% /boot
      9. /dev/mmcblk0p3 4.0G 3.1M 3.8G 1% /media/fa36508a-b3c4-4499-b30a-711dd5994225
      10. /dev/sda1 458G 404G 31G 93% /media/d67cade7-889e-47ba-9c68-6667ddd03259
      11. /dev/sda1 458G 404G 31G 93% /export/nfs_screenplayhd
      12. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/log
      13. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/lib/rrdcached
      14. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/lib/openmediavault/rrd
      15. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/lib/php5
      16. folder2ram 463M 18M 446M 4% /var/lib/rrdcached
      17. folder2ram 463M 708K 463M 1% /var/lib/openmediavault/rrd
      18. folder2ram 463M 17M 447M 4% /var/log
      19. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/spool
      20. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/lib/monit
      21. folder2ram 463M 0 463M 0% /var/lib/php5
      22. folder2ram 463M 8.0K 463M 1% /var/lib/monit
      23. folder2ram 463M 696K 463M 1% /var/spool
      24. /dev/root 3.2G 2.8G 310M 90% /var/folder2ram/var/tmp
      25. folder2ram 463M 0 463M 0% /var/tmp
      26. //192.168.0.1/usb_storage 932G 105G 827G 12% /mnt/ready_share
      Display All


      As you can see the last line

      Source Code

      1. ​//192.168.0.1/usb_storage 932G 105G 827G 12% /mnt/ready_share
      is the router samba share mounting point mounted manually via

      Source Code

      1. ​sudo mount -t cifs //192.168.0.1/usb_storage /mnt/ready_share -o sec=ntlm
    • My guess is the remote share is not mounting the share after save and apply. So you're writing to the SD card actually.
      Unmount all the samba shares and add your custom fstab entry in /etc/fstab for cifs share pointing to an empty folder in /media/uuid/, don't use the plugin
      Reboot and check the remote server is mounted. Start moving contents.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server