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
- Open Storage > File Systems. If the data filesystem is already mounted there, go to the next section.
- 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.
- 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.
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
| Field | Example | What to choose |
|---|---|---|
| Name | media | A name for the shared folder. |
| File system | Your mounted data filesystem | The volume that holds the folder. |
| Relative path | media/ | Keep the path filled from the name or browse to an existing directory. / points to the entire filesystem. |
| Permissions | 775 | The filesystem mode for a new folder. See the table below. |
| Tags | Leave blank | Optional 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
| Administrator | Users | Others | Mode |
|---|---|---|---|
| Read/write | No access | No access | 700 |
| Read/write | Read-only | No access | 750 |
| Read/write | Read/write | No access | 770 |
| Read/write | Read-only | Read-only | 755 |
| Read/write | Read/write | Read-only | 775 (default) |
| Read/write | Read/write | Read/write | 777 |
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
- Open Services > SMB/CIFS > Settings. Check Enabled, click Save, then apply the pending change.
- Open Services > SMB/CIFS > Shares and click Create. Set Shared folder to
mediaand make sure the share is Enabled. - 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.
- On Windows, open Map network drive, enter
\\192.168.1.50\mediaand provide the OMV user’s credentials. OpenMediaVault Samba documentation, Windows network path syntax - On macOS, open Finder, choose Go > Connect to Server and enter
smb://192.168.1.50/media. Samba client documentation - On Linux, install
cifs-utilsand mount the share at an existing local directory such as/mnt/media. Replacemediauserwith your OMV username. Debian mount.cifs manual
sudo mount -t cifs //192.168.1.50/media /mnt/media -o username=mediauser
Export the same folder over NFS
- Open Services > NFS > Settings, check Enabled, save and apply the change. Open Services > NFS > Shares > Create. Service navigation, NFS settings, Pending-changes banner
- 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
- If Windows gives error 1219, disconnect your existing connections to that NAS before reconnecting with the intended username.
net use * /deletedisconnects all network connections, including shares on other servers. Close any open files first. Microsoft error 1219, Microsoft net use reference - 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
- 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.
Related across the network
- Which Share Type to Use in TrueNAS: SMB, NFS or iSCSI — truenasguide.com
- How to Set Up TrueNAS SCALE: From Bare Metal to First Share — truenasguide.com