Storage
CLI reference:/disk/file/sync
This section covers RouterOS storage features: disk-level options (encryption, RAID, filesystems such as Btrfs), network storage protocols (iSCSI, NFS, SMB, NVMe over TCP), media sharing (DLNA), and file synchronization (rsync).
index
3 items
DLNA Media Server
The DLNA media server shares video, music and picture files from a disk folder with TVs, phones and players on one interface. It covers limiting a server to one device, the servers that disk sharing creates, and how players find the server.
Encrypted storage (dm-crypt)
Encrypted storage (dm-crypt) enables transparent disk encryption for block devices in RouterOS, configured with type=crypted and an encryption key. Examples show creating encrypted file systems on USB drives or on top of RAID1 arrays.
iSCSI
iSCSI enables IP-based storage access with RouterOS supporting both target and initiator modes, featuring properties like iscsi-address, IQN identifiers, and configurable ports for both client and server roles.
NFS
NFS enables network directory sharing in RouterOS using NFS v4, requiring the Storage package. It uses port TCP/2049 and is configured via the nfs-sharing, nfs-address and nfs-share arguments of /disk.
NVMe over TCP
NVMe over TCP enables network-attached NVMe storage access for both initiators and targets, with configurable IP addresses, ports, and host-based access control. Examples show mounting a disk from a RouterOS client to a server, including Linux client setup steps.
RAID
2 items
Ramdisk
A ramdisk is a block device in RAM. Format it before use, or use it as a RAID member. It needs the rose-storage package and is empty after every reboot.
Rsync
Rsync in RouterOS allows efficient file synchronization between systems, with configurable local/remote paths and modes for upload/download. Dynamic IPsec entries are created when a password is set, ensuring secure transfers over TCP/873 and UDP/500.
Self-encrypting drives (SED)
RouterOS supports Self-Encrypting Drives (SED) using the TCG-Opal standard, requiring the Storage package. Supported drives show o (inactive) / O (active) flags in /disk/print, and encryption can be enabled with self-encryption-password.
SMB
RouterOS includes a built-in SMB server for file sharing over SMB/CIFS protocols, supporting SMB2.1, 3.0, and 3.1.1. Users can configure server settings, shares, and user permissions through /ip/smb, /ip/smb/shares, and /ip/smb/users. The Storage package also adds an SMB client for mounting remote shares as disks.
SSHFS
SSHFS allows mounting a folder from a remote SSH server as a local disk in RouterOS, using the sshfs type of /disk. The mount is configured with the remote address, user credentials, and path, and appears in /file like other network filesystems.
Tmpfs
A tmpfs is a folder in RAM for temporary files such as packet captures and downloads. Its size is capped, and its contents are lost on reboot.
While regular drives are supported, for reliability purposes we recommend using drives that have Power Loss Protection (PLP).
The Storage package (shown as rose-storage under /system/package/print) adds data-center functionality to RouterOS - disk monitoring with S.M.A.R.T., the Btrfs and XFS file systems, RAID, rsync, iSCSI, NVMe over TCP, NFS, and an SMB client. It is currently supported on arm, arm64, x86 and tile platforms.
The built-in SMB server and DLNA media server are part of the base system and do not require the Storage package - see the SMB and DLNA Media Server pages.