Setting Up Data Sharing

After setting up storage on your TrueNAS, it is time to begin sharing data! There are several sharing solutions available on SCALE, but in this article we discuss the most common.

As of SCALE 22.12 (Bluefin), MS-DOS SMB1 clients cannot connect to TrueNAS SCALE Bluefin. TrueNAS SCALE SMB does not support End-of-Life (EoL) Windows clients, including MS-DOS.

The Samba project, which TrueNAS SCALE uses to provide SMB sharing features, has deprecated the SMB1 protocol for security concerns. The Samba 4.16 release notes announced that they deprecated and disabled the whole SMB1 protocol as of 4.11. If needed, for security purposes or code maintenance, Samba continues to remove older protocol commands and unused dialects or those that are replaced in more modern SMB1 versions.

TrueNAS now uses Samba 4.17. TrueNAS still has SMB1 protocol support but:

  • MS-DOS-based SMB clients cannot connect to TrueNAS SCALE Bluefin.
  • MS-DOS-based SMB clients are no longer able to connect to any TrueNAS servers.
  • SMB clients determined to be end-of-life (EOL) by their vendor are not supported.

Administrators should work to phase out any clients using the SMB1 protocol from their environments.

Client systems that can only use the SMB1 protocol for SMB shares are no longer capable of connecting to SMB shares created in TrueNAS SCALE 22.12 or later.

Refer to Samba release notes for more information.

Sharing Data Methods

TrueNAS SCALE provides four types of sharing methods, but this article only discusses three:

  • SMB for Windows shares
  • NFS for Unix-like shares
  • ISCSi block shares

For more information on TrueNAS SCALE shares, see the Shares tutorials.

Regardless of what type of share you create, the first step is to create a dataset to use for the share.

Creating a Share Dataset

The share creation process starts with creating a dataset to use for the share.

Creating a Basic Dataset for Shares

To create a dataset using the default settings, go to Datasets. Default settings include the settings datasets inherit from the parent dataset.

Select a dataset (root, parent, or child), then click Add Dataset.

Enter a value in Name.

For the Sync option, we recommend production systems with critical data use the default Standard choice or increase to Always. Choosing Disabled is only suitable in situations where data loss from system crash or power loss is acceptable.

Select either Sensitive or Insensitive from the Case Sensitivity dropdown.

Select the Share Type, then click Save. Options are Generic, Multiprotocol, SMB, or Apps.

You can create datasets optimized for SMB shares or with customized settings for your dataset use cases.

If you plan to deploy container applications, the system automatically creates the ix-applications dataset, but it is not used for application data storage. If you want to store data by application, create the dataset first, then deploy your application. When creating a dataset for an application, select App as the Share Type setting. This optimizes the dataset for use by an application.

Review the Share Type and Case Sensitivity options on the configuration screen before clicking Save. You cannot change these or the Name setting after clicking Save.

Setting up SMB Shares for Windows

For more information on adding SMB shares, see Adding SMB Shares.

Creating a Basic SMB Share

To set up a basic SMB share:

  1. Create a dataset with Share Type set to SMB.

  2. Create the TrueNAS user accounts with Samba Authentication set.

    a. Go to Credentials > Local Users and click Add to create a user.



    b. Enter the values in each required field, and then verify Samba Authentication is selected. For more information on the fields and adding users, see Creating User Accounts.


    c. Click Save.

  3. Edit the SMB share dataset permissions to set the Select an ACL Preset to Open.

    a. Go to Datasets. Select the name of the dataset for the SMB share you created. Scroll down to the Permissions widget on the right side of the screen.


    Click Edit to open the ACL Editor screen and edit the permissions.


    b. Select Use Preset. The Select a preset ACL dialog displays. Select NFS4_OPEN from the dropdown list.


    c. Click Continue.

    d. Click Save Access Control List.

    For more information on Access Control Lists and editing permissions, see Setting Up Permissions.

  4. Create the new SMB share.

    a. Click Shares on the main navigation panel, then click Add on the Windows (SMB) Shares widget to open the Add SMB configuration screen.

    b. Select the dataset you created for the share in the Path field. You can click on the to the left of mnt, and then at the pool to expand the options, and then click on the dataset to populate the field with the full path.


    c. Enter a name for the share.

    d. Click Save.

  5. Turn the SMB service on. If the dialog to enable the service does not open, click the for the share and select Turn On Service.


  6. Connect to the share. On a Windows 10 system, open the File Browsers and then:

    a. In the navigation bar, enter \\ and the TrueNAS system name or IP address. A login credentials dialog displays.

    b. Enter the TrueNAS user account credentials you created on the TrueNAS system.


    c. Begin browsing the dataset.

Setting up NFS for Unix-Like Shares

For more information on creating NFS shares, see Adding NFS Shares.

Adding a Basic NFS Share

To set up NFS sharing:

  1. Create a dataset with Share Type set to Generic.

  2. Add additional packages like nfs-common to any client systems that require them.

  3. Create the NFS share.

    a. Select Shares on the main navigation panel, then click Add on the UNIX (NFS) Share Targets to open the Add NFS configuration screen.

    b. Select the dataset you created for the share in the Path field. You can click on the to the left of mnt, and then at the pool to expand the options, and then click on the dataset to populate the field with the full path.


    c. Click Save.

  4. Access the dataset. On a Unix-like system, open a command line and enter command showmount -e {IPADDRESS} where {IPADDRESS} is your TrueNAS system IP address.

    tmoore@ChimaeraPrime:~$ showmount -e
    Export list for
    /mnt/pool1/testds (everyone)
  5. Make a local directory for the NFS mount. Enter command sudo mkdir nfstemp/

    tmoore@ChimaeraPrime:~$ sudo mkdir nfstemp/
  6. Mount the shared directory. Enter command sudo mount -t nfs {IPADDRESS:dataset path} where {IPADDRESS} is your system IP address and {:dataset path} is the full path displayed in step 3.b. above.

    tmoore@ChimaeraPrime:~$ sudo mount -t nfs nfstemp/
  7. From here, cd into the local directory and view or modify the files as needed.

Setting up an iSCSI Block Share

Setting up block sharing is a complicated scenario that requires detailed configuration steps and knowledge of your network environment. A simple configuration is beyond the scope of this getting started guide, but detailed articles are available in the SCALE Tutorials section.

With simple sharing now set up, you can back up your configuration and set up data backup.