Skip to content

How to mount NAS on Image Manager server ?

Examples are valid for:
TMflow Software version: 2.14 or above
TM Robot Hardware version: All versions.
Image Manager Software version 2.14 or above
Note that older or newer software versions may have different results.

Scenario #

Users want to use the NAS as the storage path for Image Manager sever :


>Attention : Using a NAS simply is changing the storage location from the local hard drive to a location set on the NAS.


>Explanation: Assuming the Image Manager server has a 2TB hard drive and an additional 8TB NAS, the user can only use the 8TB capacity of the NAS for storage. The total storage capacity is not cumulative (8TB + 2TB), but rather the user is limited to the 8TB provided by the NAS.After changing the storage path, users can only view images stored in the NAS device through the Image Manager web interface.

Procedure #
Step1: Obtain NAS Connection Address and Credentials #

For example, if you have created the following paths and credentials on your NAS server, the following instructions will be explained using this sample data. Please replace the parameters in the commands as needed to match your actual setup.

Ps. Red text indicates that the user should replace it with the actual information according to their specific situation.

NAS Path: //

username: nas-rd

password: 123456


Step2:  Test if NAS can be mounted correctly #

Before adding the NAS to the file system table (fstab), we can download a mounting tool and test if the mounting point can be successfully mounted using the following commands.

  • Assuming you want to mount // to /mnt/images, you can use the following commands for testing:
    (“/mnt/images” is a directory that will be created as a result of executing the following commands.)
  • Open the Terminal on the Image Manager server and execute the following commands
sudo apt update

sudo apt install cifs-utils

sudo mkdir /mnt/images

sudo mount -t cifs -o username=nas-rd,password=123456,dir_mode=0777,file_mode=0777 // /mnt/images


  • Execute the following commands to view the mounted path and disk space to confirm if the mounting was successful
df -H /mnt/images


  • Execute the following command to test if you can write to a file. If you can see “test.txt,” it means you have write permissions.
touch /mnt/images/test.txt

ls -al /mnt/images


Step3: Add the mounted path to the startup script #

Next, we will add the mount to the file system table (fstab). This will automatically mount the NAS location each time you restart your system.


  • Run the following command to open the credentials file. Input your username and password, save the file, and then close it (refer to the image below)
    sudo gedit /etc/credentials


  • Run the following command to open the fstab file
sudo gedit /etc/fstab



  • Add the following command to the last line of the fstab file, then click Save and close the file (refer to the image below)
// /mnt/images cifs credentials=/etc/credentials,file_mode=0777,dir_mode=0777 0 0


  • Reboot
sudo reboot


Step4: After rebooting, validate whether NAS is mounted correctly or not #


  • Run the following commands
ls /mnt/images


  • If you can access the NAS folder without any issues, it means that it remains mounted after a reboot.

Powered by BetterDocs