Sign in

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.

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 withTopicWhat differs
Linuxsame program as the Solnix alternativeThe 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
FreeBSDL (lseek) argument orderSolnix, 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, NetBSDread size limitOn 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
OpenBSDoptions -r, -w, -dOpenBSD 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
OpenBSDregular files and remote file accessOpenBSD'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 fourrelated programsThe 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 fourhow rmt is startedSolnix 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

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.