2022-12-05 17:58:23 +00:00
|
|
|
|
!! ------ THIS FILE IS AUTO_GENERATED! DO NOT MANUALLY UPDATE!!!
|
2023-10-30 10:34:07 +00:00
|
|
|
|
!! ------ The native file is scsidump.1. Re-run 'make docs' after updating\n\n
|
|
|
|
|
scsidump(1) General Commands Manual scsidump(1)
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
NAME
|
|
|
|
|
scsidump - SCSI disk dumping tool for PiSCSI
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
2023-10-30 10:34:07 +00:00
|
|
|
|
scsidump -t ID[:LUN] [-i BID] -f FILE [-s BUFFER_SIZE] [-r] [-v] [-p]
|
|
|
|
|
[-I] ID[:LUN] [-S]
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
2023-10-30 10:34:07 +00:00
|
|
|
|
scsidump has two modes of operation: dump and restore. These can be
|
|
|
|
|
used with physical storage media, including hard drives and magneto op‐
|
|
|
|
|
tical drives. Dump mode can be used with read-only media such as CD/DVD
|
|
|
|
|
drives.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
When operating in dump mode, scsidump will copy all data from a remote
|
|
|
|
|
SCSI drive to an image on the local filesystem. If enabled, it will
|
|
|
|
|
also generate a .properties file that can be used to more closely emu‐
|
|
|
|
|
late the source drive.
|
2022-12-09 15:50:45 +00:00
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
If you are operating in restore mode, scsidump will copy the data from
|
|
|
|
|
a local binary image to a remote physical SCSI drive. The remote SCSI
|
|
|
|
|
drive MUST be writable.
|
2022-12-09 15:50:45 +00:00
|
|
|
|
|
|
|
|
|
NOTES
|
2023-10-30 10:34:07 +00:00
|
|
|
|
scsidump requires either a direct connection (one without transceivers)
|
|
|
|
|
or a FULLSPEC PiSCSI/RaSCSI board.
|
2022-12-09 15:50:45 +00:00
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
If the generated drive image is intended to be used with PiSCSI, the
|
|
|
|
|
drive image should be moved by the user to ~/images (or the location
|
|
|
|
|
specified to the piscsi service).
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
|
-t ID[:LUN]
|
2023-10-30 10:34:07 +00:00
|
|
|
|
SCSI ID and optional LUN of the remote SCSI device. The remote
|
|
|
|
|
SCSI device will be functioning as the "Target" device.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
-i BID SCSI ID of the PiSCSI device. If not specified, the PiSCSI de‐
|
|
|
|
|
vice will use ID 7. The PiSCSI host will be functioning as the
|
|
|
|
|
"Initiator" device.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-f FILE
|
|
|
|
|
Path to the dump file.
|
|
|
|
|
|
|
|
|
|
-s BUFFER_SIZE
|
2023-10-30 10:34:07 +00:00
|
|
|
|
The transfer buffer size, specified in bytes. Default is 1 MiB.
|
|
|
|
|
This is specified in bytes with a minimum value of 65536 (64
|
|
|
|
|
KiB).
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
2022-12-09 15:50:45 +00:00
|
|
|
|
-r Run in restore mode. Defaults to dump mode if not specified.
|
2022-12-05 17:58:23 +00:00
|
|
|
|
|
|
|
|
|
-v Enable verbose logging.
|
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
-p Generate a .properties file that is compatible with the PiSCSI
|
|
|
|
|
web interface. The output filename will match the image filename
|
|
|
|
|
with ".properties" appended. The generated file should be moved
|
|
|
|
|
to ~/.config/piscsi.
|
|
|
|
|
|
|
|
|
|
-I ID[:LUN]
|
|
|
|
|
Display INQUIRY data of ID[:LUN].
|
|
|
|
|
|
|
|
|
|
-S Scan SCSI bus for devices.
|
2022-12-09 15:50:45 +00:00
|
|
|
|
|
|
|
|
|
EXAMPLES
|
2023-10-30 10:34:07 +00:00
|
|
|
|
Dump Mode: [SCSI Drive] ---> [PiSCSI host] Launch scsidump to dump an
|
|
|
|
|
all data from SCSI ID 3 with block size 64 KiB, store it to the local
|
|
|
|
|
filesystem as a drive image named outimage.hda, and generate the outim‐
|
|
|
|
|
age.hda.properties file with the drive's INQUIRY information:
|
2022-12-09 15:50:45 +00:00
|
|
|
|
scsidump -t 3 -f ./outimage.hda -s 65536 -p
|
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
Restore Mode: [PiSCSI host] ---> [SCSI Drive] Launch scsidump to re‐
|
|
|
|
|
store/upload a drive image from the local file system to SCSI ID 0 with
|
|
|
|
|
block size 1MiB:
|
2022-12-09 15:50:45 +00:00
|
|
|
|
scsidump -r -t 0 -f ./outimage.hda -s 1048576
|
|
|
|
|
|
2022-12-05 17:58:23 +00:00
|
|
|
|
SEE ALSO
|
|
|
|
|
scsictl(1), piscsi(1), scsimon(1)
|
|
|
|
|
|
|
|
|
|
Full documentation is available at: <https://www.piscsi.com>
|
|
|
|
|
|
2023-10-30 10:34:07 +00:00
|
|
|
|
scsidump(1)
|