rmt(8) on Solnix vs Linux and the BSDs
On Solnix, rmt is the illumos remote magtape protocol module at /usr/sbin/rmt, used by the remote dump and restore programs and started over rexec or rcmd; it takes no options. The Linux rmt is the GNU one (from cpio), and OpenBSD's rmt adds -r, -w and -d.
The manual pages
- Solnix: rmt(8) from
pkgs.solnix.illumos-world-man; the default on Solnix · illumos.org - Solnix: rmt(8) from
pkgs.solnix.cpio; add the package to get it - Solnix: rmt(8) from
pkgs.solnix.gnutar; add the package to get it - Solnix: rmt(8) from
pkgs.solnix.gtar; add the package to get it - Linux: rmt(8) cpio-2.15
- FreeBSD: rmt(8) 15.1-RELEASE
- OpenBSD: rmt(8) 8.0
- NetBSD: rmt(8) 11.0
What Solnix runs
A default Solnix system runs the illumos rmt at /usr/sbin/rmt; no other illumos variants are shipped. pkgs.solnix.cpio, pkgs.solnix.gnutar and pkgs.solnix.gtar also publish an rmt(8) page; they are not on PATH by default. The pkgs.solnix.cpio page is the GNU rmt.
Differences
| Compared with | Topic | What differs |
|---|---|---|
| Linux | same program as the Solnix alternative | The Linux rmt(8) (cpio-2.15) and the pkgs.solnix.cpio rmt(8) have the same text: the GNU rmt, written from scratch from the BSD specification. The default /usr/sbin/rmt is the illumos program.Source: Linux rmt(8) NAME, HISTORY; Solnix rmt(8) from pkgs.solnix.cpio NAME, HISTORY; illumos rmt(8) NAME |
| FreeBSD | L (lseek) argument order | Solnix, OpenBSD and NetBSD take the lseek request as Loffset\nwhence\n; FreeBSD documents Lwhence\noffset\n, the two arguments swapped. A client written for one order sends the wrong values to a server using the other. Source: illumos rmt(8) L command; OpenBSD rmt(8) L command; NetBSD rmt(8) L command; FreeBSD rmt(8) L command |
| FreeBSD, OpenBSD, NetBSD | read size limit | On FreeBSD, OpenBSD and NetBSD, an R request larger than the 10 kilobyte data buffer is truncated to that size. The Solnix page documents no such limit, so do not assume the same behaviour. Source: FreeBSD rmt(8) R command; OpenBSD rmt(8) R command; NetBSD rmt(8) R command; illumos rmt(8) R command |
| OpenBSD | options -r, -w, -d | OpenBSD rmt takes -r (read-only), -w (write mode for dumping to regular files, which refuses to open existing files) and -d directory (confine file access). The Solnix rmt synopsis is only /usr/sbin/rmt, with no options.Source: OpenBSD rmt(8) SYNOPSIS, -d, -r, -w; illumos rmt(8) SYNOPSIS |
| OpenBSD | regular files and remote file access | OpenBSD's DESCRIPTION says rmt may be used for regular file access as well as tape, though its BUGS section discourages using it as a remote file access protocol. The Solnix BUGS section says only not to use it that way. Source: OpenBSD rmt(8) DESCRIPTION, BUGS; illumos rmt(8) BUGS |
| all four | related programs | The Solnix page refers to the remote dump and restore programs and lists ufsdump(8) and ufsrestore(8) in SEE ALSO; the BSD pages list rdump(8) and rrestore(8). The Linux page says rmt serves tar(1), cpio(1) and similar backup utilities. Source: illumos rmt(8) DESCRIPTION, SEE ALSO; FreeBSD, OpenBSD and NetBSD rmt(8) SEE ALSO; Linux rmt(8) DESCRIPTION |
| all four | how rmt is started | Solnix says rmt is normally started by rexec(3SOCKET) or rcmd(3SOCKET). Linux says by running rsh(1) or ssh(1) to the remote machine. FreeBSD says rcmd(3). OpenBSD says rcmd(3) or rcmdsh(3). NetBSD says rexec(3) or rcmd(3). Source: illumos rmt(8) DESCRIPTION; Linux rmt(8) DESCRIPTION; FreeBSD rmt(8) DESCRIPTION; OpenBSD rmt(8) DESCRIPTION; NetBSD rmt(8) DESCRIPTION |
Standards
- POSIX: rmt is not a POSIX.1-2024 utility.
Writing portable scripts
- Do not rely on the L (lseek) command across systems: FreeBSD documents offset and whence in the opposite order from Solnix, OpenBSD and NetBSD.
- Do not rely on a single large R read returning the full count. FreeBSD, OpenBSD and NetBSD cap it at the 10 kilobyte buffer, and the Solnix page does not say.
Every difference here is taken from the manual pages linked above: Solnix's published page, Linux (man-pages and the GNU and util-linux manuals), FreeBSD, OpenBSD and NetBSD. Each row names its source. Where a manual is silent, this page is too. Compiled 2026-10-26. Found a mistake? Mail hackers@lists.solnix.io.