OpenMediaVaultLab
Isometric NAS server with three drive bays cabled to a blue shared folder with a padlock and two monitors showing folder icons on a dark navy background
getting-started

How to Create a Shared Folder in OpenMediaVault 8

Create a shared folder in OpenMediaVault 8, choose permissions, and share it over SMB or NFS. Fix missing disks, login errors, and blocked writes.

By OpenMediaVaultLab Editorial · ·Updated · 7 min read

In OpenMediaVault 8, go to Storage > Shared Folders and click Create. Name the folder, select a mounted data filesystem, choose the relative path and permissions, then save and confirm. To make the folder available over the network, add it as an SMB or NFS share. OMV 8 new user guide

Mount the data filesystem

Use a separate data drive for a standard installation. OpenMediaVault reserves the system drive for its own files. See the site’s hardware requirements guide or disk and filesystem planning guide if you are still choosing a layout. OpenMediaVault prerequisites

  1. Open Storage > File Systems. If the data filesystem is already mounted there, go to the next section.
  2. If the disk already has a filesystem, click the right-arrow mount button. Select the filesystem, click Save, confirm, and use the check mark in the pending-changes banner to apply the change.
  3. On an empty disk that needs a filesystem, use Create, select the disk and filesystem type, then follow the format and mount dialogs. Formatting can erase data. Use the mount button for a disk whose files you want to keep.

OMV 8 new user guide

If your disk is missing from the shared folder form, check that it was mounted through the web interface. A filesystem mounted only through an existing /etc/fstab entry lacks the OMV database entry needed by shared folders. OpenMediaVault filesystem documentation

Create the shared folder

Go to Storage > Shared Folders > Create. Click Save and confirm after filling in the form. OMV 8 new user guide

FieldExampleWhat to choose
NamemediaA name for the shared folder.
File systemYour mounted data filesystemThe volume that holds the folder.
Relative pathmedia/Keep the path filled from the name or browse to an existing directory. / points to the entire filesystem.
Permissions775The filesystem mode for a new folder. See the table below.
TagsLeave blankOptional labels for the shared folder.

OpenMediaVault shared folder form

The default mode creates a folder owned by root:users. Choose 770 if the whole users group should have write access and other accounts should have no filesystem access. For access limited to particular SMB users, also set their service permissions. OpenMediaVault shared folders documentation

AdministratorUsersOthersMode
Read/writeNo accessNo access700
Read/writeRead-onlyNo access750
Read/writeRead/writeNo access770
Read/writeRead-onlyRead-only755
Read/writeRead/writeRead-only775 (default)
Read/writeRead/writeRead/write777

Set user and group permissions

For a private SMB share, create a regular account by choosing Users > Create in the user management section if you do not already have one. Accounts created in the web interface join the users group by default. User navigation, OpenMediaVault users documentation

Select the folder in Shared Folders and open Permissions. For a private media share in this example, give the intended user Read/Write and avoid granting the entire users group access. Use Read-only for users who should only browse, or No access for users you want to exclude. OpenMediaVault shared folders documentation

SMB access depends on both the service permissions and the filesystem mode or ACL. For individual filesystem permissions, select the folder and open its access control list. The ACL control is disabled on filesystems such as NTFS, FAT and HFS+. OpenMediaVault shared folders documentation

Publish the folder over SMB

  1. Open Services > SMB/CIFS > Settings. Check Enabled, click Save, then apply the pending change.
  2. Open Services > SMB/CIFS > Shares and click Create. Set Shared folder to media and make sure the share is Enabled.
  3. Set Public to No to require credentials. Leave Read-only off if the intended user needs to write. Click Save and apply the change.

Service navigation, SMB/CIFS settings, SMB/CIFS share form, OMV 8 new user guide

Guests allowed uses the guest account when no login is supplied. Guests only always uses the guest account. The guest account maps to nobody, which has read access under the default directory mode. OpenMediaVault Samba documentation

Replace 192.168.1.50 with your NAS address and media with your share name.

sudo mount -t cifs //192.168.1.50/media /mnt/media -o username=mediauser

Export the same folder over NFS

  1. Open Services > NFS > Settings, check Enabled, save and apply the change. Open Services > NFS > Shares > Create. Service navigation, NFS settings, Pending-changes banner
  2. Set Shared folder to media, enter the permitted IP address or subnet in Client, and choose Read/Write or Read-only under Permission. Leave Extra options at their defaults for this example. Save and apply the change. NFS share form, OpenMediaVault NFS documentation, Pending-changes banner

For this setup, use NFS only on a trusted local network. Access relies on matching user and group IDs between the client and the server. Keep the NFS server off the public internet. OpenMediaVault NFS documentation

Mount :/media for NFSv4 or :/export/media for NFSv3. The /export pseudo-root is read-only by default. On Linux, pick the line for your NFS version and replace the example address and use an existing local mount directory. OpenMediaVault NFS documentation, Debian NFS mount options

sudo mount -t nfs -o nfsvers=4 192.168.1.50:/media /mnt/media
sudo mount -t nfs -o nfsvers=3 192.168.1.50:/export/media /mnt/media

On macOS, the OMV guide documents using resvport at the client. With an existing local mount point at /private/nfs, the example becomes the following. OpenMediaVault NFS documentation

sudo mount -t nfs -o resvport,rw 192.168.1.50:/export/media /private/nfs

Fix SMB login or write errors

  1. If Windows gives error 1219, disconnect your existing connections to that NAS before reconnecting with the intended username. net use * /delete disconnects all network connections, including shares on other servers. Close any open files first. Microsoft error 1219, Microsoft net use reference
  2. In the SMB share, check that Read-only is off and that Public allows the login you intend to use. In the shared folder’s Permissions, give the account Read/Write. SMB/CIFS share form, OpenMediaVault Samba documentation
  3. Check the filesystem permissions or ACL if the service settings allow writes. For a folder where multiple users edit new files, consider Inherit permissions in the SMB share. Existing files may need their permissions corrected separately. SMB/CIFS share form, OpenMediaVault Samba documentation

If transfers work but run slowly, follow the SMB speed checklist.

Change or remove a shared folder

Remove any SMB or NFS shares or plugin references before removing the shared folder entry. A filesystem can be unmounted after the shared folder entries that reference it are removed. OpenMediaVault shared folders documentation

Changing a folder’s parent filesystem leaves its data on the original drive. Move the files separately. For NFS, also edit the NFS share so its bind mount can be updated. OpenMediaVault shared folders documentation

For a layout that separates shared media, backups and container data, see the disk and share planning guide and the OMV Docker Compose setup guide.

FAQ

Where are shared folders stored in OpenMediaVault?

A shared folder lives at the selected filesystem’s mount point under its relative path. For example, a filesystem mounted at /srv/dev-disk-by-label-DATA and a path of media/ give /srv/dev-disk-by-label-DATA/media/. OMV stores the folder definition in config.xml. OpenMediaVault shared folders documentation

New shared folders are Btrfs subvolumes on Btrfs and ordinary directories on other supported filesystems. Btrfs shared folders can have snapshots. See the OpenMediaVault filesystem types guide for help choosing a filesystem. OpenMediaVault shared folders documentation

Can I create a shared folder on the OpenMediaVault system disk?

The standard setup uses a separate data drive. The official ShareRootFs plugin can provide shared folders on the root filesystem if you have a single-disk setup. OpenMediaVault prerequisites, OpenMediaVault plugin list

Can OpenMediaVault share an NTFS drive?

Yes. Mount the existing NTFS filesystem through the web interface, then select it when creating the shared folder. The web interface supports mounting NTFS, and its list of formats for creating new filesystems excludes NTFS. The ACL editor is disabled for NTFS. OpenMediaVault filesystem documentation, OpenMediaVault shared folders documentation

Evidence and limits

The guide is based on the OpenMediaVault 8.x documentation, the OMV-Extras guide for version 8 and OpenMediaVault’s web interface definitions. The steps were not run on hardware for this article.

Sources

  1. OMV-Extras: New User Guide for OpenMediaVault 8
  2. OpenMediaVault 8 documentation: Prerequisites
  3. OpenMediaVault 8 documentation: Filesystems
  4. OpenMediaVault 8 documentation: Shared Folders
  5. OpenMediaVault web interface: Shared folder form
  6. OpenMediaVault web interface: User navigation
  7. OpenMediaVault 8 documentation: Users
  8. OpenMediaVault web interface: Service navigation
  9. OpenMediaVault web interface: SMB/CIFS settings
  10. OpenMediaVault web interface: SMB/CIFS share form
  11. OpenMediaVault 8 documentation: Samba
  12. Microsoft Learn: Net use
  13. Microsoft Learn: Windows system error codes 1000–1299
  14. Samba documentation: Accessing an SMB share from macOS
  15. Debian Manpages: mount.cifs(8)
  16. OpenMediaVault web interface: NFS settings
  17. OpenMediaVault web interface: NFS share form
  18. OpenMediaVault 8 documentation: NFS
  19. Debian Manpages: nfs(5)
  20. OpenMediaVault 8 documentation: Available Plugins

Related