TerraMaster F4-210 and Linux

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.

Who can believe FTP was enabled by default?

Hello Ransomware if you don’t turn that off!

The next thing you need to do is enable SMB/CIFS file service.

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> '//<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


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!

Roland Hughes started his IT career in the early 1980s. He quickly became a consultant and president of Logikal Solutions, a software consulting firm specializing in OpenVMS application and C++/Qt touchscreen/embedded Linux development. Early in his career he became involved in what is now called cross platform development. Given the dearth of useful books on the subject he ventured into the world of professional author in 1995 writing the first of the "Zinc It!" book series for John Gordon Burke Publisher, Inc. A decade later he released a massive (nearly 800 pages) tome "The Minimum You Need to Know to Be an OpenVMS Application Developer" which tried to encapsulate the essential skills gained over what was nearly a 20 year career at that point. From there "The Minimum You Need to Know" book series was born. Three years later he wrote his first novel "Infinite Exposure" which got much notice from people involved in the banking and financial security worlds. Some of the attacks predicted in that book have since come to pass. While it was not originally intended to be a trilogy, it became the first book of "The Earth That Was" trilogy: Infinite Exposure Lesedi - The Greatest Lie Ever Told John Smith - Last Known Survivor of the Microsoft Wars When he is not consulting Roland Hughes posts about technology and sometimes politics on his blog. He also has regularly scheduled Sunday posts appearing on the Interesting Authors blog.

Leave a Reply