Btrfs subvolumes and snapshots
This page guides users through creating Btrfs subvolumes and snapshots in RouterOS, explaining how to organize data, format disks, set up subvolumes like Documents and Photos, and create snapshots for efficient backups without duplicating data.
Disks
How RouterOS detects, formats and manages disks and partitions: slot names, automatic mounting, mount points, partitions, swap space, RAM-backed folders, file system checks and performance tests.
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.
Files
The File menu manages user files on the router: creating, editing, copying and deleting files and directories, reading file contents, and viewing details of uploaded RouterOS packages.
index
Btrfs is a stable copy-on-write file system with features like bitrot protection, subvolumes, and snapshots. It is available with the Storage package and supports RAID configurations, subvolume management, and snapshot transfers.
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.
Partitions
RouterOS allows repartitioning NAND flash on compatible devices to enable multiple OS installations with automatic fallback, ensuring system reliability during upgrades. The feature supports up to 8 partitions, requires minimum storage sizes, and includes commands for managing active partitions, cloning configurations, and restoring backups.
raid
This page provides step-by-step instructions for setting up a Btrfs RAID1 array using two disks in RouterOS, covering disk preparation, formatting, adding devices, balancing data, and ensuring consistent RAID profiles.
RAID
RAID technology in RouterOS enables data storage across multiple drives with improved performance and protection, supporting RAID levels 0,1,4,5,6, linear, and nested configurations. Includes configuration examples for RAID6 and nested RAID10, plus a health-check script.
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.
S.M.A.R.T. info
S.M.A.R.T. drive health monitoring in RouterOS: read drive health, temperature, use and error counters with the `/disk smart-info` command, and what the reported attributes mean.
Setting a hot spare disk
This page explains how to configure a hot spare disk for a RAID array in RouterOS, enabling automatic rebuild on disk failure by assigning a spare disk to the RAID setup.
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.
Storage
This page documents RouterOS storage features including disk encryption, RAID configurations, Btrfs/XFS filesystems, network protocols like iSCSI and NFS, media sharing via DLNA, file synchronization with rsync, and the Storage package that adds enterprise-level storage management.
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.