NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

bradjj's avatar
bradjj
Aspirant
Oct 16, 2017

Mimic Dropbox Service on RN102 and Linux

I have been using Dropbox to sync files across multiple Linux machines at home.

While this works well I would like to keep my own data on my ReadyNAS rather than someone else's cloud.

 

I can mount the shared folder on the NAS via my file manager and open files from there. I can currently use one click from 'Cairo Dock Stack' or a desktop shortcut  to open and edit the files in the /home/Dropbox folder without the additional steps of mounting and browsing. I can then go to another machine and do the same.

 

Am I able to use my ReadyNAS in a similar way but just stay on my own network and not go out onto the web and come back in and without installing apps?

 

I suspect that my real question could be how to auto mount the shared NAS folder at login but after trying this:

mount [-t smb -o username=<user name>,password=<password>] //<ReadyNAS IP address>/<shared folder name> <mount point>

from here:

https://kb.netgear.com/23181/How-do-I-access-a-shared-folder-on-my-ReadyNAS-OS-6-storage-system-by-using-a-network-attached-Linux-or-Unix-device

 

I got no joy so thought it prudent to express my actual desired end result.

Firmware is 6.8.1

Thanks in advance.

3 Replies

Replies have been turned off for this discussion
  • Sandshark's avatar
    Sandshark
    Sensei - Experienced User

    What error message, if any, are you getting?  Have you verified SMB access is on for the system and share?  Does the mount point directory exist?  Make sure your mount point in the command has the full path starting from /.

     

    I have done this with two ReadyNASes, but used NFS instead of SMB for better retention of ownership and privileges.  Once I had it working with a manual mount command, I added a line to /etc/fstab to have it auto-mounted at boot.

    • bradjj's avatar
      bradjj
      Aspirant

      Error message: For more details see mount(8).

      SMB is green when I go to the admin page for the NAS at, system>settings NFS is also green.

      Below is the output and command:

      bradley@WR250:~$ sudo mount [-t smb -o username=bradley,password=xxxxxxxx] //http://192.168.1.2/2TB /home/bradley
      [sudo] password for bradley: 
      
      Usage:
       mount [-lhV]
       mount -a [options]
       mount [options] [--source] <source> | [--target] <directory>
       mount [options] <source> <directory>
       mount <operation> <mountpoint> [<target>]
      
      Mount a filesystem.
      
      Options:
       -a, --all               mount all filesystems mentioned in fstab
       -c, --no-canonicalize   don't canonicalise paths
       -f, --fake              dry run; skip the mount(2) syscall
       -F, --fork              fork off for each device (use with -a)
       -T, --fstab <path>      alternative file to /etc/fstab
       -i, --internal-only     don't call the mount.<type> helpers
       -l, --show-labels       show also filesystem labels
       -n, --no-mtab           don't write to /etc/mtab
       -o, --options <list>    comma-separated list of mount options
       -O, --test-opts <list>  limit the set of filesystems (use with -a)
       -r, --read-only         mount the filesystem read-only (same as -o ro)
       -t, --types <list>      limit the set of filesystem types
           --source <src>      explicitly specifies source (path, label, uuid)
           --target <target>   explicitly specifies mountpoint
       -v, --verbose           say what is being done
       -w, --rw, --read-write  mount the filesystem read-write (default)
      
       -h, --help     display this help and exit
       -V, --version  output version information and exit
      
      Source:
       -L, --label <label>     synonym for LABEL=<label>
       -U, --uuid <uuid>       synonym for UUID=<uuid>
       LABEL=<label>           specifies device by filesystem label
       UUID=<uuid>             specifies device by filesystem UUID
       PARTLABEL=<label>       specifies device by partition label
       PARTUUID=<uuid>         specifies device by partition UUID
       <device>                specifies device by path
       <directory>             mountpoint for bind mounts (see --bind/rbind)
       <file>                  regular file for loopdev setup
      
      Operations:
       -B, --bind              mount a subtree somewhere else (same as -o bind)
       -M, --move              move a subtree to some other place
       -R, --rbind             mount a subtree and all submounts somewhere else
       --make-shared           mark a subtree as shared
       --make-slave            mark a subtree as slave
       --make-private          mark a subtree as private
       --make-unbindable       mark a subtree as unbindable
       --make-rshared          recursively mark a whole subtree as shared
       --make-rslave           recursively mark a whole subtree as slave
       --make-rprivate         recursively mark a whole subtree as private
       --make-runbindable      recursively mark a whole subtree as unbindable
      
      For more details see mount(8).
      bradley@WR250:~$ 

       

      • Sandshark's avatar
        Sandshark
        Sensei - Experienced User

        OK, it's just listing the options for mount because you have not used proper syntax.

         

        The brackets you see in the example are just to indicate those parameters are optional.  You don't actually use them when you type the command.

         

        You also don't need sudo.  You are already logged in as root, and sudo just elevates the command to root.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More