SMT(1)
π NAME π
okay bestie, meet smt(1) β magnetic tape control from Schilyβs USER COMMANDS. Thatβs the whole name, and she is literally out here sending commands to a local or a remote magnetic tape drive. Tape girlies, rise. π¦
πΈ SYNOPSIS πΈ
smt [ -f tapename ] command [ count ]
β¨ DESCRIPTION β¨
The smt program sends commands to a local or a remote magnetic tape drive. Main character energy, but for tapes. π
The count operand specifies the number of times the requested command is to be performed. If count is omitted, the value of count defaults to one. No cap. π
π OPTIONS π
-helpβ Prints a summary of the options forsmt(1)and exits.-versionβ Prints thesmtversion number string and exists. (Yes, βexistsβ β thatβs what the page says, bestie π)-debugβ print additional debug messages.-ftapename,-ttapename β Set the raw tape device to use, otherwisesmtuses a system specific default for thertapedevice. Ifsmtis installed suid root or if it has been called by root, tapename may be in remote syntax:user@host:filenameas inrcp(1)even if invoked by non root users. SeeSUID NOTESfor more information.- To make a file local although it includes a colon (
:), the filename must start with:'/','./'or'../'. - Note that if
smttalks to an oldrmtremote tape server that does not support symbolic open modes, it does not open a remote tape with theO_CREATopen flag because this would be extremely dangerous. If thermtserver on the other side is thermtserver that comes withstaror the GNUrmtserver,smtmay use the symbolic mode for the open flags. Only the symbolic open modes allow sending all possible open modes in a portable way to remote tape servers. - It is recommended to use the
rmtserver that comes withstar. It is the onlyrmtserver that gives platform independent compatibility with BSD, Sun and GNUrmtclients and it includes security features that may be set up in/etc/default/rmt. - See ENVIRONMENT section for information on how to use
ssh(1)to create a remote tape server connection.
- To make a file local although it includes a colon (
-wreadyβ Wait for the tape drive to become ready before executing the command.
π COMMANDS π
The following commands are supported:
eofβ no separate description in the original page; she appears right beforeweof.weofβ WritecountEOF (FILE) marks at the current position on the tape.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
fsfβ Forward skip overcountFILE marks. The tape is positioned on the first block of the file.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
bsfβ Backward skipcountFILE marks. The tape is positioned on side of the FILE mark that is closer to the beginning of the tape.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
asfβ Absolute FILE mark positioning to file numbercount. This is equivalent to a rewind followed by afsf count.- A RMT version 1 server is needed to run this command on a remote tape drive.
fsrβ Forward skipcounttape records.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
bsrβ Backward skipcounttape records.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
rewindβ Rewind the tape.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
offlineβ no separate description in the original page; she appears right beforerewoffl.rewofflβ Rewind the tape. If the specified tape drive allows one to take the drive off-line or to unload the tape, a off-line or unload operation is performed in addition.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
statusβ Retrieve and print status information for the tape drive.- A RMT version 1 server is needed to get correct status information on a remote tape drive.
nopβ No operation. If you only like to wait for the tape drive to become ready, callsmt -wready nop.- This command may be run remotely with any BSD compliant old
rmtserver.
- This command may be run remotely with any BSD compliant old
retensionβ Retension the tape. This only makes sense with cartridge tape drives.- A RMT version 1 server is needed to run this command on a remote tape drive.
eraseβ Erase the entire tape. This may take a long time (up to several hours) depending on the tape drive and the medium.- A RMT version 1 server is needed to run this command on a remote tape drive.
eomβ Position the tape to the end of the recorded media. This allows one to append data to previously written tapes.- A RMT version 1 server is needed to run this command on a remote tape drive.
nbsfβ Backward skipcountFILE marks. The tape is positioned on side of the FILE mark that is closer to the end of the tape. This is before the first block of the file. Thenbsfcommand is equivalent tocount+1 bsf'sfollowed by onefsf.- A RMT version 1 server is needed to run this command on a remote tape drive.
loadβ If the specified tape drive allows one to take the drive on-line or to load the tape, a on-line or load operation is performed. in addition. For remote tape drives, this command only works if the remote tape server supports symbolic open modes as the command needs theO_NDELAYflag to succeed.- A RMT version 1 server is needed to run this command on a remote tape drive.
π ENVIRONMENT π
RSHβ If theRSHenvironment is present, the remote connection will not be created viarcmd(3)but by calling the program pointed to byRSH. Use e.g.RSH=/usr/bin/sshto create a secure shell connection.RMTβ If theRMTenvironment is present, the remote tape server will not be the program/etc/rmtbut the program pointed to byRMT. Note that the remote tape server program name will be ignored if you log in using an account that has been created with a remote tape server program as login shell.TAPEβ In case no-foption pas been specified (thatβs the original spelling, bestie π), the default tape name is taken from theTAPEenvironment.
π¦ SEE ALSO π¦
spax(1), suntar(1), scpio(1), tar(1), cpio(1), pax(1), rcp(1), mt(1), rmt(1), match(1), dd(1), sdd(1), rsh(1), ssh(1), star(1), star(4/5), rcmd(3), β and yes, that trailing comma is in the original π
β οΈ NOTES β οΈ
If the remote tape server is running Linux and the remote tape server on such a system is not thermtserver that comes withstar(1), then completely unexpected results (including unexpectedly erased tapes) may occur. This is because Linux ignores the numbering values for the magnetic tape op codes and only thermtserver fromstar(1)maps to standard values. The standardrmtserver on Linux for this reason may not be called BSD compliant.
Bestie, read that again. Unexpectedly erased tapes are not a vibe. π«Ά
π BUGS π
None currently known.
Mail bugs and suggestions to schilytools@mlists.in-berlin.de or open a ticket at https://codeberg.org/schilytools/schilytools/issues.
The mailing list archive may be found at:
https://mlists.in-berlin.de/mailman/listinfo/schilytools-mlists.in-berlin.de
π§ AUTHOR π§
Joerg Schilling and the schilytools project authors.
π SOURCE DOWNLOAD π
The source code for smt is included in the schilytools project and may be retrieved from the schilytools project at Codeberg at
https://codeberg.org/schilytools/schilytools
The download directory is
https://codeberg.org/schilytools/schilytools/releases
π okay thatβs the whole smt(1) page, bestie. Cute little footer sign-off: Joerg Schilling, 2022/09/09, SMT(1), under Schilyβs USER COMMANDS. Periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: schily-mt 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: schily-mt 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: schily-mt 2022.10.16-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: schily-mt 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 2004-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms