Lines Matching +full:w3c +full:- +full:web +full:- +full:usb
1 Content-type: text/html; charset=UTF-8
3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
13 sg3_utils - a package of utilities for sending SCSI commands
19 [<I>--dry-run</I>] [<I>--enumerate</I>] [<I>--help</I>] [<I>--hex</I>]
20 [<I>--in=FN</I>] [<I>--inhex=FN</I>] [<I>--maxlen=LEN</I>] [<I>--raw</I>]
21 [<I>--timeout=SECS</I>] [<I>--verbose</I>] [<I>--version</I>]
44 line or in a file. sg_raw -vvv will output the T10 name of a given SCSI
51 <A HREF="https://www.t10.org/scsi-3.htm">https://www.t10.org/scsi-3.htm</A> with the SCSI command s…
53 Architecture Model (SAM) with SAM-5 being the most recent standard (ANSI
54 INCITS 515-2016) with the most recent draft being SAM-6 revision 4 . SCSI
56 Commands (SPC) of which SPC-4 is the most recent standard (ANSI INCITS
57 513-2015). The most recent SPC draft is SPC-5 revision 21. Block device
66 standard is called SCSI to ATA Translation (SAT, SAT-2 and SAT-3) are
67 now standards at INCITS(ANSI) and ISO while SAT-4 is at the draft stage.
81 a short form (e.g. '-v') and a longer form (e.g. '--verbose'). If an
83 and a "=" in the longer form (e.g. in the sg_verify utility '-l 2a6h'
84 and '--lba=2a6h' are equivalent). Note that with getopt_long(), short form
85 options can be elided, for example: '-all' is equivalent to '-a -l -l'.
91 command line processing code typically based on a single "-" followed by one
93 e.g. '-p=1f' in sg_modes with its older interface). Various options can be
94 elided as long as it is not ambiguous (e.g. '-vv' to increase the verbosity).
104 by defining the SG3_UTILS_OLD_OPTS environment variable or using '-O'
105 or '--old' as the first command line option. The man pages of the older
128 variable is non-zero then then the returned SCSI sense will be in 'descriptor'
140 Command durations are typically only shown if --verbose is used 3 or more
151 disks and USB storage devices) to be named like that. Partitions within a
166 at zero. The "lsscsi -g" command may be useful in finding these and which
194 sub-addressing in the form of a "bus" number, a "target" identifier and
202 least two transports ("bus types" in Windows jargon): USB and IEEE 1394 do
236 corresponding pass-through device name of the form /dev/pass<num>
239 available and the correspondence between class and pass-through names.
279 If it doesn't work then add a '-vvv' option for more debug information.
298 devices. [It does prompt again before doing any damage.] 'devfsadm -Cv'
300 is "live". The "cfgadm -v" command looks promising.
315 the NVME-MI (Management Interface) designers decide to use the SCSI
316 Enclosure Services (SES-3) standard "as is" with the addition of two
317 tunnelling NVME-MI commands: SES Send and SES Receive. This means after the
320 version of NVME-MI.
323 The NVME-MI SES Send and SES Receive commands correspond to the SCSI
332 the --page= option) on a NVMe <I>DEVICE</I> then the actual NVMe
334 output. However if 'sg_inq --page=sinq <device>' is given for the
365 <BR> sg_decode_sense --err=<exit_status>
445 permission problems. Adding the '-v' option may give more information.
461 and non-zero information in its additional sense codes. Some polling
480 they range from 0 to n-1 where n is the number of blocks on the <I>DEVICE</I>,
494 the PRE-FETCH command (see SBC-4) yields this status.
498 the <I>DEVICE</I> reports a SCSI status of "busy". SAM-6 defines this status
500 recommended to re-issue the command.
513 the <I>DEVICE</I> reports a SCSI status of "task aborted". SAM-5 says:
574 actually received by HBA is 'requested_bytes - residual_count') that is
599 include/uapi/asm-generic/errno-base.h
620 <DT><B>100-125</B>
654 the '-v' option (or several) to obtain more information.
672 <DT><B>-d</B>, <B>--dry-run</B><DD>
674 sometimes have a <I>--dry-run</I> option. Device modifying actions are
677 action required (e.g. format a disk) is performed. The <I>--dry-run</I>
683 with an underscore rather than a hyphen (e.g. <I>--dry_run</I>).
684 <DT><B>-e</B>, <B>--enumerate</B><DD>
690 <DT><B>-h</B>, <B>-?</B>, <B>--help</B><DD>
691 output the usage message then exit. In a few older utilities the '-h'
692 option requests hexadecimal output. In these cases the '-?' option will
694 <DT><B>-H</B>, <B>--hex</B><DD>
695 for SCSI commands that yield a non-trivial response, print out that
699 <DT><B>-i</B>, <B>--in</B>=<I>FN</I><DD>
701 data-in buffer) which several of these utilities decode (e.g. sg_vpd and
704 the data) can be done using the <I>--hex</I> or <I>--raw</I> option and
706 based operating systems). The difference between <I>--hex</I> and
707 <I>--raw</I> is that the former produces output in ASCII hexadecimal
708 while <I>--raw</I> produces its output in "raw" binary.
712 can be done using this <I>--in=FN</I> option where the file name is
713 <I>FN</I>. If "-" is used for <I>FN</I> then stdin is assumed, again this
715 is assumed to contain ASCII hexadecimal unless the <I>--raw</I> option is
717 of the <I>--raw</I> option is "flipped" when used with <I>--in=FN</I> to
723 used should be checked. In some cases <I>--hex</I> may need to be used
724 multiple times (and is more conveniently given as '-HH' or '-HHH).
725 <DT><B>-i</B>, <B>--inhex</B>=<I>FN</I><DD>
726 This option has the same or similar functionality as <I>--in=FN</I>. And
729 option may be <I>-I</I> or <I>-X</I>. See the "FORMAT OF FILES CONTAINING
731 <DT><B>-m</B>, <B>--maxlen</B>=<I>LEN</I><DD>
740 cause problems (e.g. some USB mass storage devices freeze if they receive
749 <DT><B>-r</B>, <B>--raw</B><DD>
750 for SCSI commands that yield a non-trivial response, output that response
757 SCSI command, use this option. Alternatively the <I>--in=FN</I> option causes
761 <DT><B>-t</B>, <B>--timeout</B>=<I>SECS</I><DD>
762 utilities that issue potentially long-running SCSI commands often have a
763 <I>--timeout=SECS</I> option. This typically instructs the operating system
767 long-running re-initialization command to be sent. The argument, <I>SECS</I>,
769 other than <I>-t</I> since the timeout option was typically added later as
780 Utilities that send such SCSI command either have an <I>--immed</I> option
781 or a <I>--wait</I> option which is the logical inverse of the "immediate"
783 <DT><B>-v</B>, <B>--verbose</B><DD>
787 <DT><B>-V</B>, <B>--version</B><DD>
849 2002) which claims compliance with SI and with IEC 60027-2.
909 may be a simpler example of how to use a SCSI pass-through in Linux
918 <H2>WEB SITE</H2>
920 There is a web page discussing this package at
943 Copyright © 1999-2021 Douglas Gilbert
977 <DT><A HREF="#lbAQ">WEB SITE</A><DD>
985 <A HREF="/cgi-bin/man/man2html">man2html</A>,