Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
XORRISO-DD-TARGET(1) | General Commands Manual | XORRISO-DD-TARGET(1) |
NAME
xorriso-dd-target - Device evaluator and disk image copier for GNU/LinuxSYNOPSIS
xorriso-dd-target [ options ] [ device_names ]DESCRIPTION
xorriso-dd-target evaluates block devices of the Linux kernel whether they are suitable targets for a disk image file and optionally copies the image file to one of them.List plain device names:
The most simple and most boring use case is a program run without device names and without options -list_all, -plug_test, -DO_WRITE, -dummy_force. It prints on standard output (stdout) only the names of advisable devices without "/dev/" prefix. One name per line and without any reasoning text.List all devices with reasoning:
For the more curious user, there is option -list_all which prints the evaluation of each disk-like device that is listed by program lsblk. Optical drives, floppy disks, RAM block devices, loop devices are excluded, though.name : advice : reasoning : info
...
Evaluate particular given devices:
If device names are given instead of option -list_all, then only these devices are inspected. Their result gets listed without the ": info" part, unless option -with_vendor_model is given....
...
Detect intended device by plugging:
Option -plug_test triggers an interactive method to unambiguously determine the intended target device candidate. It consists of 2 or 3 steps....
Write image to an advised device:
Only if option -DO_WRITE is given and -list_all is not, and if exactly one advisable device is listed, it really gets overwritten by the file content of the given -image_file. In this case the exit value is zero if writing succeeded, non-zero else.-image_file debian-live-10.0.0-amd64-xfce.iso
... sudo messages and above plug test steps 1 and 2 ...
/dev/sde1 on /mnt/iso type iso9660 (ro,relatime)
/dev/sde2 on /mnt/fat type vfat (rw,...,errors=remount-ro)
sudo /bin/dd if=/dev/zero of=/dev/'sde' bs=512 seek='245759999'
count=1 status=none
sudo /bin/dd if='debian-live-10.0.0-amd64-xfce.iso' of=/dev/'sde'
bs=1M status=progress oflag=dsync ; sync
... dd messages ...
Show commands for writing to a not advised device:
There should be no way to convince xorriso-dd-target of writing to a target device which it does not deem advisable. Please report any set of arguments that can be misused for that.-image_file debian-live-10.0.0-amd64-xfce.iso
...
/dev/sdd1 on /mnt/iso type iso9660 (ro,relatime)
/dev/sdd2 on /mnt/fat type vfat (rw,...,errors=remount-ro)
/dev/sdd3 on /mnt/ext type ext2 (rw,relatime)
sudo /bin/umount /dev/sdd1
sudo /bin/umount /dev/sdd2
sudo /bin/umount /dev/sdd3
sudo /bin/dd if=/dev/zero of=/dev/'sdd' bs=512 seek='7864318'
count=1 status=none
sudo /bin/dd if='debian-live-10.0.0-amd64-xfce.iso' of=/dev/sdd
bs=1M status=progress oflag=dsync ; sync
Alphabetical List of positive and negative reasons:
As stated with use case "List all devices", reasons are words with either suffix '+' for an inviting device property or '-' for a prohibitive property.OPTIONS
- -plug_test
-
Find the target device by asking the user to press the Enter key when the desired target is _not_ plugged in, to then plug it in, and to press Enter again.
- -list_all
- Print list of all found devices with advice, vendor and model. One per line. Ignore any device names. Ignore -DO_WRITE.
- -list_long
- After each result line, which shows reasons, add an additional listing of the information provided by lsblk which led to the reasons and add an empty line.
- -with_vendor_model
- Print vendor and model with each submitted device name.
- -max_size n[M|G|T]
-
Set the upper byte size limit for advisable devices. Plain numbers get rounded down to full millions. As suffix are recognized: M = million, G = billion, T = trillion.
- -min_size n[M|G|T]
- Set the lower byte size limit for advisable devices. After processing like with -max_size, one million gets added to the size limit.
- -look_for_iso
-
Demand presence of an ISO 9660 filesystem. If so, then any further filesystem type is acceptable on that device.
- -with_sudo
-
Run 'lsblk -o FSTYPE' by sudo. If no filesystems are detected on a device while the program has no superuser power, then the device is not advised. Option -with_sudo avoids this refusal without the need to run the whole program as superuser.
- -trust_lsblk_udev
-
Suppress the reason no_fs_while_not_su- if lsblk is linked with libudev.so. In this case it is likely that lsblk can retrieve FSTYPE even if run by a non-priviledged user.
- -image_file PATH
- Set the path of the image file which shall be written to a device. Its size will be set as -min_size.
- -DO_WRITE
-
Write the given -image_file to the one advisable device that is found. If more than one such device is found, then they get listed but no writing happens.
- -no_pacifier
- Do not use dd options to print progress messages and to perform synchronized output. These options are used by default if program dd offers progress messages.
- -dummy
- Report the -DO_WRITE actions but do not perform them.
- -dummy_force
- If a single device name is given, do a run of -dummy -DO_WRITE even against the advice of this program. This probably shows you ways to shoot your own foot.
- -version
- Print the program name, version text, and timestamp to stdout and then end the program.
- -help
- Print the help text to stdout and then end the program.
EXAMPLES
Examples are given in the above description of use cases.FILES
For now, no files are defined for configuration.SEE ALSO
lsblk(8), umount(8), dd(1), xorrecord(1)BUGS
To report bugs, request help, or suggest enhancements for xorriso-dd-target, please send electronic mail to the public list <bug-xorriso@gnu.org>. If more privacy is desired, mail to <scdbackup@gmx.net>.AUTHOR
Thomas Schmitt <scdbackup@gmx.net>COPYRIGHT
Copyright (c) 2019 - 2023 Thomas SchmittCREDITS
xorriso-dd-target is developed in cooperation with Nio Wiklund alias sudodus.Version 1.5.6, Jun 07, 2023 |