SDD(1E)
πΎ SDD(1E) β the sdd page, bestie edition β¨
okay so welcome to sdd from Schily's USER COMMANDS, section 1E β the disk dump/restore icon we all deserve π
πΈ NAME
sdd β disk dump and restore to and from tape or file; copy and/or reblock π
β¨ SYNOPSIS
sdd [ option=value ] [ -flag ]
π¦ DESCRIPTION
So sdd copies the input file you asked for to the output file you asked for, doing whatever conversions you requested along the way. By default it uses standard input and standard output. And you can set the input and output block size to flex on raw physical I/O β it's giving optimization.
When it's done, sdd reports the number of whole records, the sum of bytes from partial input and output blocks, and the total amount in kilo bytes, on both input and output. Receipts, always π§Ύ
And here's the tea: if ibs and obs differ, sdd is faster than dd because it uses an intelligent algorithm. no cap. π₯
π OPTIONS
-helpβ Print a summary of the available options.if=name β Input is taken from file name; default is stdin. Ifsddis installed suid root, name may be in remote syntax:user@host:filenameas inrcp(1)even if invoked by non root users. See **SUID NOTES for more information. To make a file local although it includes a colon (:), the filename must start with:'/','./'or'../'of=name β Output is taken from file name; default is stdout. Note thatsddcreates and truncates the output file by default; therefore theoseek=#option is useless without the-notruncoption except in special cases such as using magnetic tape or disk special files. Ifsddis installed suid root, name may be in remote syntax:user@host:filenameas inrcp(1)even if invoked by non root users. Note that ifsddtalks to an old rmt remote tape server, it does not open a remote file with theO_CREATopen flag because this would be **extremely dangerous π. If the rmt server on the other side is the rmt server that comes withstaror the GNU rmt server,sddmay 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 rmt server that comes withstar. It is the only rmt server that gives platform independent compatibility with BSD, Sun and GNU rmt clients and it includes security features that may be set up in/etc/default/rmt.-inullβ Do not read input from file. This is similar toif=/dev/zerobut much faster.sdduses a prepared cleared buffer to satisfy writes. β¨-onullβ Do not produce any output. This is similar toof=/dev/nullbut actually does not write to any file.ibs=#,obs=#,bs=#β Set input block size, output block size or both to#(default 512 Bytes).cbs=#β Set Conversion buffer size to#.ivsize=#,ovsize=#β Set input volume size or output volume size to#. You can make copies from devices of different size by using this option. If you want to make a copy to a tape having a size of 60 MBytes you should use the optionovsize=60M. If the capacity of the tape is exceeded,sddwill ask for a second volume. In caseivsizeis exceeded, if N<cr> is typed, it is treated as an EOF condition andsddwrites any buffered data to output and exits. In caseovsizeis exceeded, if N<cr> is typed,sddstops and the statistics it prints show that more data were read than written. πcount=#β Transfer#of input records or until EOF.iseek=#,iskip=#β Seek/skip the first#Bytes from input before beginning transfer.oseek=#,oskip=#β Seek/skip the first#Bytes from output before beginning transfer.seek=#,skip=#β Seek/skip the first#Bytes from input and output before beginning transfer.ivseek=#,ovseek=#β Seek#Bytes from input/output at the beginning of each input/output volume before beginning transfer. (You can skip labels of disks and floppies with this option.) Note that theiseek/oseekoptions still work, but only apply to the first volume. Their values are added to the values ofivseekandovseek.-notruncβ Do not truncate an already existing output file before beginning transfer. This enables it to copy one file into another. π«Ά-pgβ Print a dot to stderr each time a record is written to indicate progress.secsize=#β Set the basic buffersize for error recovery via-noerrorto#. The default is512to match the most usual physical sector size. Since error recovery is done at the level of the basic buffer size, you need to use this option in error recovery mode in case you are accessing a drive with a different physical sector size than 512 bytes.-time,-tβ Report the total time and the transfer rate. β±οΈ-noerrorβ Do not stop transfer on I/O errors. Error messages will appear on the screen. If this option is used and-noseekhas not been specified as well,ibsandobsneed to be multiples of the error recovery blocksize specified viasecsize=#.-noerrwriteβ Do not write blocks that are not read correctly. Seek on the output to skip the bad block. The output file must be seekable or-noerrwritewill not work correctly.-noseekβ Do not seek after I/O errors. This impliestry=1.try=#β Set retry count to#. Only if-noerrorwas specified. (default2)-debugβ Turn on debugging messages. You can get knowledge about record sizes on tapes with variable record size with this option. π-fillβ Pad every output record with zeros up toobs. Ifibsequalsobs, or onlybswas specified, every record will be padded with zeros, otherwise this only applies to the last record.-swabβ Swaps bytes (except for the last byte in odd block sizes and odd transfers due to EOF).-block,-unblockβ Convert fixed length records to variable records and vice versa.-lcase,-ucaseβ Map alphabetics to lower/upper case.-ascii,-ebcdic,-ibmβ Convert EBCDIC to ASCII resp. ASCII to EBCDIC resp. ASCII to the IBM variant of EBCDIC.-helpβ Prints a short summary of thesddoptions and exists.-md5β Compute the md5 sum for the data. If the option-onullwas used,sddcomputes the md5 sum on the input data, otherwise the output data is used. π- *
rsh=path* β Specify a remote login program instead of defaulting tossh(1). This can be overridden by theRSHenvironment variable. -versionβ Prints thesddversion number string and exists.
π EXAMPLES
sdd if=/dev/rsd0a of=/dev/nrst8 bs=2x7x17b
Copies the disk /dev/rsd0a to the tape /dev/nrst8 using a record size of 2*7*17 blocks. (this is 2 Cylinders.) π
sdd if=/dev/rsd0c of=/dev/rsd1c seek=1b bs=63k
Copy the whole disk sd0 to sd1 preserving the old label on disk sd1. iconic, honestly.
sdd if=user@remotehost:/dev/da0 of=/dev/ada1 bs=512 -pg
Copy the entire disk da0 on host remotehost as user user to the disk ada1 on the local host using a block size of 512 while printing a progress with dots. This command defaults to using ssh(1). If you want to use a different remote shell, either give sdd the rsh=prog option or set RSH to the desired shell program. π
π SEE ALSO
dd(1), star(1), rmt(1), tr(1), cp(1), copy(1)
π DIAGNOSTICS
sdd: Read f records + p bytes (total of x bytes = d.nnk).
sdd: Wrote f records + p bytes (total of x bytes = d.nnk).
The number of full records, the number of bytes in partial records and the total amount of data in KBytes. cute little report card π
With the QUIT signal ( usually ^</kbd> ) the actual state is displayed.
πΈ NOTES
Opposed to dd, sdd is able to handle -iseek -oseek -seek as well as -iskip -oskip -skip regardless to the buffer size. You can make a whole physical copy of a disk without copying the label in one pass of sdd. slay π«Ά
When numbers are unspecified the are taken to be bytes.
You can make them `words' (2 bytes) if they are followed by a `w' or `W'.
You can make them blocks (512 bytes) if they are followed by a `b' or `B'.
You can make them Kbytes (1024 bytes) if they are followed by a `k' or `K'.
You can make them Mbytes (1024 * 1024 bytes) if they are followed by a `m' or `M'.
You can make them Gbytes (1024 * 1024 *1024 bytes) if they are followed by a `g' or `G'.
A pair of numbers may be separated by '*' or 'x' to indicate a product.
π SUID NOTES
If sdd is installed suid root, sdd is able to make connections to remote files for non root users. This is done by using the rcmd(3) interface to get a connection to a rmt(1) server. It defaults to using ssh(1) to establish the remote connection.
sdd resets its effective uid back to the real user id immediately after setting up the remote connection to the rmt server and before opening any other file. safety queen behavior π
π BUGS
The option iskip=# and oskip=# and skip=# as well as -block and -unblock are not implemented. π
It is confusing to allow the use of all additions together with the record counter -count as they are possible with obs=#.
Mail other 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.
π§ AUTHORS
Joerg Schilling and the schilytools project authors. π
β SOURCE DOWNLOAD
The source code for sdd 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.
and that's the whole page, bestie β written by Joerg Schilling, dated 2022/10/12, and yeah it's still SDD(1E) at the bottom too π go copy a disk, ily, bye πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: readcd 3.02~a10-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: readcd 3.02~a10-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: readcd 3.02~a10-160000.2.2 Β· CDDL-1.0
- opensuse-leap 16.0: readcd 3.02~a10-160000.2.2 Β· CDDL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms