OPENSEACHEST_RAW(1)
π NAME π
hey bestie π meet openSeaChest_Raw(1) β literally the manual page for openSeaChest_Raw, living in the User Commands corner of the manual. She's the raw-command girlie of the openSeaChest crew and she's that girl. π
β¨ DESCRIPTION β¨
okay so every single time you run her, you get this little banner moment first:
openSeaChest_Raw - openSeaChest drive utilities - NVMe Enabled
Copyright (c) 2014-2026 Seagate Technology LLC and/or its
Affiliates, All Rights Reserved openSeaChest_Raw Version: 26.03.2
X86_64 Build Date: May 18 2026 Today: 20260605T144117 User:
current user
that's the name, the copyright, the version number, the build, today's timestamp and who you are. main character intro energy fr fr. π
πΈ Usage πΈ
openSeaChest_Raw [-d <sg_device>] {arguments} {options}
π¦ Examples π¦
openSeaChest_Raw --scan
openSeaChest_Raw -d /dev/sg<#> -i
Identify device:
-d /dev/sg<#> --dataDir in --dataLen 512 --outputFile ID_dev.bin --tfrByteBlock 512 --tfrProtocol pio --tfrSize 28 --command ECh --tfrXferLengthReg sectorCount --sectorCount 1
π Return codes π
the generic/common exit codes, aka the vibe check results:
0= No Error Found1= Error in command line options2= Invalid Device Handle or Missing Device Handle3= Operation Failure4= Operation not supported5= Operation Aborted6= File Path Not Found7= Cannot Open File8= File Already Exists9= Need Elevated Privileges10= Not enough resources11= Error Writing File12= Device not found when opening handle.13= Device not opened. Handle is busy.14= Insecure Directory to read or write file- Anything else = unknown error
π UTILITY OPTIONS π
--csmiIgnorePort(Obsolete) β bestie this one is obsolete and will be removed in future versions. β--csmiUsePort(Obsolete) β also obsolete, also getting removed in future versions.--csmiVerbose(Obsolete) β yep, obsolete, and will be removed in future versions too.--echoCommandLineβ echoes the command line you entered into the utility right onto the screen. π£οΈ--enableLegacyUSBPassthroughβ ONLY use this on old USB or IEEE1394 (Firewire) products that just won't work with the tool otherwise. It turns on a trial-and-error method that attempts sending various ATA Identify commands through vendor specific means. Because of that, certain products may respond in unintended ways since they may interpret these commands differently than the bridge chip the command was designed for. π¬--forceATAβ forces the current drive to be treated as an ATA drive. Only ATA commands will be used to talk to the drive.--forceATADMA(SATA Only) β forces the tool to issue SAT commands to an ATA device using the protocol set to DMA whenever possible (on DMA commands). Can be combined with--forceATA.--forceATAPIO(SATA Only) β forces the tool to issue PIO commands to an ATA device when possible. Can be combined with--forceATA.--forceATAUDMA(SATA Only) β forces the tool to issue SAT commands to an ATA device using the protocol set to UDMA whenever possible (on DMA commands). Can be combined with--forceATA.--forceSCSIβ forces the current drive to be treated as a SCSI drive. Only SCSI commands will be used to talk to the drive.-h,--helpβ shows utility options and example usage (aka literally this output you're reading right now). π«Ά Please report bugs/suggestions toseaboard@seagate.com. Include the output of--versioninformation in the email.--licenseβ displays the Seagate End User License Agreement (EULA).--modelMatch [model Number]β run on all drives matching the provided model number. It gives you a closest match, though an exact match is preferred. Ex:ST500will matchST500LM0001. π―--noBannerβ suppresses the text banner that shows up every time openSeaChest is run.--onlyFW [firmware revision]β run on all drives matching the provided firmware revision. This one only does an exact match, no fuzzy business.--onlySeagateβ match only Seagate drives for the options provided.-q,--quietβ runopenSeaChest_Rawin quiet mode. Same as-v 0or--verbose 0. π€«-v [0-4],--verbose [0 | 1 | 2 | 3 | 4]β show verbose information. The verbosity levels are:0- quiet,1- default,2- command descriptions,3- command descriptions and values,4- command descriptions, values, and data buffers. Example:-v 3or--verbose 3.-V,--versionβ showopenSeaChest_Rawversion and copyright information & exit.
π UTILITY ARGUMENTS π
-d,--device [deviceHandle | all]β use this with most commands to pick which device handle to run an operation on. Example:/dev/sg<#>. CSMI device handles can be specified as<error<#><#><#>>. To run across all devices detected in the system, use the"all"argument instead of a device handle. Example:-d all.
NOTE: the "all" argument is handled by running the specified options on each drive detected in the OS sequentially. For parallel operations, please use a script opening a separate instance for each device handle. πββοΈπ¨
-F,--scanFlags [option list]β controls the output from scan with the options listed below. Multiple options can be combined.ata- show only ATA (SATA) devicesusb- show only USB devicesscsi- show only SCSI (SAS) devicesnvme- show only NVMe devicesinterfaceATA- show devices on an ATA interfaceinterfaceUSB- show devices on a USB interfaceinterfaceSCSI- show devices on a SCSI or SAS interfaceinterfaceNVME= show devices on an NVMe interfacesd- show sd device handlessgtosd- show the sd and sg device handle mappingignoreCSMI- do not scan for any CSMI devicesallowDuplicates- allow drives with both CSMI and PD handles to show up multiple times in the list
-i,--deviceInfoβ show information and features for the storage device.-s,--scanβ scan the system and list all storage devices with logical/dev/sg<#>assignments. Shows model, serial and firmware numbers. If your device is not listed on a scan immediately after booting, then wait 10 seconds and run it again. β³-S,--Scanβ same as--scanor-s, however it will also perform a low level rescan to pick up other devices. This low level rescan may wake devices from low power states and may cause the OS to re-enumerate them. Use this when a device is plugged in and not discovered in a normal scan.
NOTE: a low-level rescan may not be available on all interfaces or all OSs. The low-level rescan is not guaranteed to find additional devices in the system when the device is unable to come to a ready state. π
--SATInfoβ displays SATA device information on any interface using both SCSI Inquiry / VPD / Log reported data (translated according to SAT) and the ATA Identify / Log reported data.--testUnitReadyβ issues a SCSI Test Unit Ready command and displays the status. If the drive is not ready, the sense key, asc, ascq, and fru will be displayed, and a human readable translation from the SPC spec will be displayed if one is available.--fastDiscoveryβ use this option to issue a fast scan on the specified drive. β‘--dataDir [in | out | none]β specify the data direction of the entered raw command.in- transfer data from the device to hostout- transfer data from the host to devicenone- no data is transferred
--dataLen [length in bytes]β specify the data transfer length for a data-in or data-out transfer. The following post fixes are allowed for specifying a transfer length:BLOCKS- used to specify a transfer length in device logical blocks.B- length in bytes (val * 1) (default if no unit given)KB- length in kilobytes (val * 1000)KiB- length in kibibytes (val * 1024)MB- length in megabytes (val * 1000000)MiB- length in mebibytes (val * 1048576)
You must enter a size that is greater than or equal to any length in the entered raw command data. If a lesser value is entered, then the utility may experience errors or crash. π do not do this to her.
--inputFile [path/filename]β specify an input file to send to a device. Must be a binary file.--inputOffset [offset in bytes]β specify the offset within the raw input file to start sending data from. The following post fixes are allowed for specifying a transfer length:BLOCKS- used to specify an offset length in device logical blocks.B- length in bytes (val * 1) (Default if no unit given)KB- length in kilobytes (val * 1000)KiB- length in kibibytes (val * 1024)MB- length in megabytes (val * 1000000)MiB- length in mebibytes (val * 1048576)
--outputFile [path/filename]β specify an output file to save data returned from a command, or, in the case of an error, the returned error buffer. This option will always append data to already created files. If an error occurs on a datain raw command, the returned error data will not be saved to a file, to prevent adding unexpected data to the created file.--timeout [time in seconds]β specify a timeout in seconds for a raw command being sent to a device. β±οΈ
π₯ SATA Only π₯
--aux1 [hex or decimal](SATA Only) β specify the Aux (7:0) register for sending a raw SATA command. The value should be specified in hex as??hor0x??or as a decimale value.
NOTE: Not all interfaces support setting this register. 32B SAT CDB required. π
--aux2 [hex or decimal](SATA Only) β
Use this option to set the Aux 15:8 register when you're firing off a raw SATA command. Value goes in as hex, like ??h or 0x??, or as a plain decimal number. Heads up though bestie: not every interface lets you set this register π and you also need a 32B SAT CDB for it.
--aux3[hex or decimal] (SATA Only) β this one's for the Aux23:16register on your raw SATA command. Hex as??hor0x??, or decimal, your call. β οΈ Not all interfaces support setting this register, and it needs a 32B SAT CDB.--aux4[hex or decimal] (SATA Only) β the Aux31:24register for raw SATA commands. Same deal:??h,0x??, or decimal. β οΈ Not all interfaces support setting this register, and 32B SAT CDB required.--auxFull[hex or decimal] (SATA Only) β sets the whole Aux31:0register set in one go for a raw SATA command. This gets interpreted as a 32bit value. Format it as hex??hor0x??, or as a decimal number. β οΈ Not all interfaces support setting these registers, and yep, 32B SAT CDB required.--command[hex or decimal] (SATA Only) β this is how you tell it the command operation code for your raw SATA command. Give it hex as??hor0x??, or a decimal value. β¨--command's bestie:--deviceHead[hex or decimal] (SATA Only) β sets the Device/Head register for your raw SATA command. If you just... don't pass it, it defaults toA0h, which is there for backwards compatibility with the older ATA command specs. β οΈ NOTE: this option is supposed to be specified BEFORE the--lbaModeoption. And β οΈ NOTE: on 28bit read/write commands, the high 4 bits of the LBA register need to be placed in the low 4 bits of this register β that's the little handshake going on here. Value format: hex??hor0x??, or decimal.--feature[hex or decimal] (SATA Only) β sets the feature register for your raw SATA command. On 48 bit commands this is the lower 8 bits. Value as hex??h/0x??, or decimal.--featureExt[hex or decimal] (SATA Only) β sets the feature ext register for a raw SATA command. This is the upper 8 bits on 48 bit commands. Hex??hor0x??, or decimal, same as always.--featFull[hex or decimal] (SATA Only) β sets both the feature and feature ext registers for a raw SATA command. Interpreted as a 16bit value. Give it??h,0x??, or decimal.--icc[hex or decimal] (SATA Only) β sets the ICC register for a raw SATA command. Hex as??hor0x??, or a decimal value. β οΈ Not all interfaces support setting this register, and 32B SAT CDB required.--fullLBA[hex or decimal] (SATA Only) β this is the big one for LBA registers: it takes your value and interprets it as a 48 bit value, then drops it into the appropriate LBA registers for you. Super handy when you're specifying an LBA for something like a read or a write. Hex??h/0x??/ decimal, per usual.--lbaHigh[hex or decimal] (SATA Only) β sets the LBA high (Cylinder High) register for your raw SATA command. Value in hex as??hor0x??, or as a decimal.--lbaHighExt[hex or decimal] (SATA Only) β sets the LBA high ext (Cylinder High) ext register for a raw SATA command. This one's for 48 bit commands.??h,0x??, or decimal. π--lbaLow[hex or decimal] (SATA Only) β sets the LBA low (sector number) register for a raw SATA command. Value as hex??hor0x??, or decimal.--lbaLowExt[hex or decimal] (SATA Only) β sets the LBA low ext (sector number ext) register for a raw SATA command. 48 bit commands only, bestie.??h/0x??/ decimal.--lbaMode(SATA Only) β flips on the LBA Mode bit of the Device/Head register for your raw SATA command. This bit is literally required to do read/write commands on modern drives, no cap. β οΈ NOTE: this bit is NOT set by default, because it only applies to read/write commands and not to all the other commands in the ATA specs.--lbaMid[hex or decimal] (SATA Only) β sets the LBA mid (Cylinder Low) register for a raw SATA command. Hex??hor0x??, or decimal.--lbaMidExt[hex or decimal] (SATA Only) β sets the LBA mid ext (Cylinder Low ext) register for a raw SATA command. 48 bit commands, you know the drill.??h,0x??, or decimal.--sectorCount[hex or decimal] (SATA Only) β sets the sector count register for a raw SATA command. On 48 bit commands this is the lower 8 bits. Value as hex??hor0x??, or decimal.--sectorCountExt[hex or decimal] (SATA Only) β sets the sector count ext register for a raw SATA command. That's the upper 8 bits on 48 bit commands.??h/0x??/ decimal.--sectFull[hex or decimal] (SATA Only) β sets the sector count and sector count ext register in one shot for a raw SATA command. Interpreted as a 16bit value. Hex as??hor0x??, or decimal.--tfrByteBlock[512 | logical | bytes | nodata] (SATA Only) π¦ β tells it the data transfer length being sent or received when you issue a raw SATA command. This option has to match the definition of the command in the ATA/ACS specification, and it must be provided before a command will actually be sent. Arguments:512β the data transfer is a number of 512B blocks (this is most commands)logicalβ data transfer is a number of logical block sizes transfers (read commands)bytesβ the data transfer is a specific number of bytes (some legacy commands, or when tpsiu is used)nodataβ no data transfer. Used on non-data protocol commands
β οΈ NOTE: all read/write commands should use "logical", and every other data transfer should use 512.
--tfrProtocol[pio | dma | udma | fpdma | ncq | nodata | reset | dmaque | diag] (SATA Only) π β specifies the protocol for sending a raw SATA command. Like its sibling above, this has to match the definition of the command in the ATA/ACS specification, and it's required before a command gets sent. Arguments:pioβ send as programmed IO protocol.dmaβ send as direct memory access protocoludmaβ send as ultra direct memory access protocolfpdma/ncqβ send as first party direct memory access protocol (NCQ)nodataβ send as non-data protocolresetβ send as reset protocol (ATAPI only)dmaqueβ send as direct memory access queued protocol (TCQ)diagβ send as devie diagnostic protocol
β οΈ NOTE: if a command with dma doesn't work, try udma. Some SATLs just like it better. π
β οΈ NOTE: most SATLs don't allow sending queued commands as pass-through. Some OSs also will not allow queued pass-through commands.
--tfrSetChkCond(SATA Only) β sets the check condition bit in the SAT CDB that may get sent to a translator, telling it to generate a check condition and hand back all task file results. β οΈ NOTE: this option may not work on all SATLs. π¬--tfrSize[28 | 48 | complete] (SATA Only) π β tells it the command type: 28bit or 48bit, when issuing a raw SATA command. Again: must match the definition of the command in the ATA/ACS specification, and it must be provided before a command will be sent. Arguments:28β the command is a 28 bit command (ex: identify, SMART)48β the command is a 48 bit command (ex: read DMA ext, read log ext)completeβ 48 bit command that also sets ICC or AUX registers. use this to force a 32B CDB. If you specify48and AUX or ICC are set, a 32B CDB will automatically be generated without needing this option explicitly set.
β οΈ NOTE: complete TFR requires SAT 32B cdb, which many devices or interfaces may not support. These commands may not be available. π
--tfrXferLengthReg[sectorCount | feature | tpsiu | nodata] (SATA Only) β specifies which registers are used to specify the length of data being sent or received when issuing a raw SATA command. Has to match the definition of the command in the ATA/ACS specification, and must be provided before a command will be sent. Arguments:sectorCountβ the sector count registers specify the number of blocks (most commands)featureβ the feature registers specify the number of blocks (queued commands)tpsiuβ a transport specific location will specify the length of the data transfernodataβ no data transfer. Used on non-data protocol commands
β οΈ NOTE: tpsiu is generally only seen supported on USB adapters, but not all USB SATL's will recognize this option.
β οΈ NOTE: for commands, such as identify (ECh), that transfer data but do not specify a value of 1 in the sector count, it is recommended that this is added to the sector count register and and "sectorCount" is used for better compatibility with various SATLs. (Yes bestie, that's exactly how it's written, and and and all β iconic honestly π
)
SAS Only: =========
--cdb [csv CDB]--cdbβ bestie, this one lets you hand-pick the exact CDB you wanna yeet at a device π― The value you type has to be in comma separated value (csv) format, no cap. And if you wanna write a value as hex, it's gotta be either pre-pended with0xor post-pended withhorH. Obsessed with options, honestly. Examples:
1) inquiry: --cdb 12h,0,0,0,60h,0
2) inquiry: --cdb 0x12,0,0,0,0x60,0
3) inquiry: --cdb 18,0,0,0,96,0
All 3 examples send the same command to a drive β¨ three different fits, same slay.
--cdbLen [length in bytes]β use this to set the length of the CDB you're sending to the device. Max length is 255. Heads up though: some OS's may not support CDBs larger than 16 bytes π so don't come crying to me if your 200-byte banger gets ignored.
Not me dropping the whole vibe-check receipt mid-page, but here's the banner the tool shows off:
openSeaChest_Raw - openSeaChest drive utilities - NVMe Enabled
Copyright (c) 2014-2026 Seagate Technology LLC and/or its Affiliates, All Rights Reserved
openSeaChest_Raw Version: 26.03.2
X86_64
Build Date: May 18 2026
Today: 20260605T144117
User: current user
π Version Info for openSeaChest_Raw π
Okay so this is the receipts section, the full lore drop, the β¨identity cardβ¨ of your build:
- Utility Version:
26.03.2 - opensea-common Version:
6.1.0 - opensea-transport Version:
10.3.0 - opensea-operations Version:
9.4.0 - Build Date:
May 18 2026 - Compiled Architecture:
X86_64 - Detected Endianness:
Little Endian - Compiler Used:
GCC - Compiler Version:
14.2.0 - Operating System Type:
Linux - Operating System Version:
6.6.114-1 - Operating System Name:
Ubuntu 24.04.4 LTS
Likeβ¦ the amount of detail? It's giving thorough. It's giving transparent. We love a utility that knows itself π
π¦ SEE ALSO π¦
The full documentation for openSeaChest_Raw is maintained as a Texinfo manual. So if the info and openSeaChest_Raw programs are properly installed at your site, then this:
info openSeaChest_Raw
should give you access to the complete manual πβ¨ go read it, bestie, it's the director's cut.
And that's the whole page, gorgeous π This was openSeaChest_Raw, from the openSeaChest drive utilities, and the footer stamps it as OPENSEACHEST_RAW(1) dated June 2026, signed off by the whole openSeaChest_Raw ==============... squad. Go forth and talk to your drives, main character π«Άπ
π¦ where this page comes from
- nixpkgs unstable: openseachest 26.03.2
- ubuntu stonking: openseachest 26.03.2+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms