==Command description== This operation will create a media dump from real media using a physical device. It will retry errors and when finished create an XML metadata sidecar. The dumping operation can be interrupted and continued later, even with a different device. ==Command usage== Aaru -d [true/false] -v [true/false] media dump -h [true/false] -e -f [true/false] -k --first-pregap [true/false] --fix-offset [true/false] -m [true/false] --metadata [true/false] --trim [true/false] -O --persistent [true/false] -p -s [true/false] -t -x --subchannel --speed -d, --debug [true/false] shows debug output ''(default false)''
-v, --verbose [true/false] shows verbose output ''(default false)''
-h, --help [true/false] shows help screen for the command instead of running it, ignores all other switches ''(default false)''
-e, --encoding specifies character encoding to use when creating dump sidecar
-f, --force [true/false] continues dumping whatever happens ''(default false)''
-k, --skip skips this many sectors when an unreadable sector is found ''(default 512)''
--first-pregap [true/false] tries to dump first track pregap. Only applicable to CD, DDCD or GD media ''(default false)''
--fix-offset [true/false] fixes audio tracks offset. Only applicable to CD or GD media. ''(default false)''
-m, --resume [true/false] creates and/or use resume mapfile ''(default true)''
--metadata [true/false] enables creating CICM XML sidecar ''(default true)''
--trim [true/false] enables trimming errores from skipped sectors ''(default true)''
-O, --options specifies comma separated name=value pairs of options to pass to output image plugin
--persistent [true/false] tries to recover partial or incorrect data ''(default false)''
-p, --retry-passes specifies how many times to retry reading a sector ''(default 5)''
-s, --stop-on-error [true/false] stops dumping on first error ''(default false)''
-t, --format specifies format for the output image, as plugin name or plugin id. If not present, will try to detect it from output image extension
-x, --cicm-xml takes metadata from existing CICM XML sidecar
--subchannel specifies which subchannel to dump. Only applicable to CD/GD. Values: any, rw, rw-or-pq, pq, none ''(default any)''
--speed specifies at what speed to dump. Only applicable to optical drives, 0 for maximum ''(default 0)''
connects to an Aaru Remote Host with aaru:///
==Example== FreeBSD: Aaru media dump -f --persistent true --separate-subchannel /dev/cd0 mydisc.cue
Linux: Aaru media dump -r -f -p 15 /dev/sdb myusbfloppy.img
Windows: Aaru media dump -f -p 0 --resume false \\.\PhysicalDrive3 mydisk.dicf
==Operating system support== {| ! Device type ! FreeBSD ! macOS ! Linux ! Windows |- | SCSI Block device | Yes | No macOS only allows talking with MultiMedia devices | Yes | Yes |- | SCSI MultiMedia device | Yes | Not yet Support for MultiMedia devices in macOS will be added if users require it | Yes | Yes |- | SCSI Streaming device | Yes | No | Yes | Yes |- | Parallel ATA | No Not supported due to upstream bug | No | Yes | Yes |- | Serial ATA | Yes | No | Yes | Yes |- | USB | Partial USB descriptors are not retrieved | Partial Only MultiMedia devices can be supported and descriptors will not be retrieved | Yes | Yes |- | FireWire | Partial FireWire descriptors are not retrieved | Partial | Yes | Partial FireWire descriptors are not retrieved |- | PCMCIA | Partial PCMCIA CIS is not retrieved | Partial | Yes | Partial PCMCIA CIS is not retrieved |- | SecureDigital / MultiMediaCard | Not yet Support will come with FreeBSD 12-RELEASE | No | Yes | Untested Should work, untested due to not available hardware |}