TerraMaster has software for Windows, but almost everyone wanting to use it uses Linux. Here is how to get it working with Linux. I’m going to use Ubuntu because I have a YABU on most machines. You will need to tweak for non-Debian distros. The F4-210 is a pretty robust NAS gaining popularity because you can stack four big drives in it and enable RAID-10. I started out with four 4TB drives.
Sadly, you need to initially install the software on a Windows machine to configure the TerraMaster so it is more secure and “Linux friendly.” The first thing you want to do is turn off FTP.
Hello Ransomware if you don’t turn that off!
The next thing you need to do is enable SMB/CIFS file service.
Ubuntu and many other YABU aren’t polite enough to preinstall all of samba. It does preinstall the parts you don’t care about.
sudo apt-get install samba smbclient cifs-utils nmap samba-common
sudo nano /etc/samba/smb.conf
You will need to verify the package names and installation instructions if you are not running a Debian based distro. In particular the smbclient and cifs-utils are crucial. You should really install all of the above or just accept things probably won’t work reliably when accessing your TerraMaster. We went through similar issues getting my old Buffalo NAS to work with Manjaro.
In the “Global” section of smb.conf you need to append these lines.
client min protocol = SMB2
client max protocol = SMB3
For Ubuntu put them just below “bind interfaces only = yes.” Other distros don’t have that but they do tend to comment the “Global Section.”
Exit and save.
sudo systemctl restart smbd.service
mkdir ~/tnas
mkdir ~/bin
nano ~/bin/mount-tnas
Ubuntu and many other distros will automatically add ~/bin to the user’s PATH variable at login if it exists. I always create one and put my handy-dandy things there. You will definitely want this there.
Add the following line to mount-tnas then exit and save.
sudo mount -t cifs -o uid=$UID,gid=$(id -g),vers=3.0,username=<your-tnas-username> '//192.168.1.80/<your-tnas-directory>' /home/"$(id -u -n)"/tnas
When you created your user with the Windows software, you also created a directory for that user. Replace <your-tnas-username> with the username you created on the TerraMaster. Replace <your-tnas-directory> with the directory you assigned to the user.
chmod +x ~/bin/mount-trans
Now log out and back in, or simply reboot. Once back in open a terminal window and type
mount-tnas
If you get an error about an unknown or not found command you need to research how to reliably add the ~/bin directory to your PATH. What you should see is a prompt for your Sudo password. Once you enter that correctly you should see a prompt from the TerraMaster to provide the password for <your-tnas-username>.
Happy NASsing!