I am having some issues using this command for some reason it appears to stop as soon as it trys to format.
root@PlexServer:~# sg_format --format --size=512 -v /dev/sg9
inquiry cdb: 12 00 00 00 24 00
HGST HUS724040ALS640 A152 peripheral_type: disk [0x0]
PROTECT=1
<< supports protection information>>
mode sense (10) cdb: 5a 00 01 00 00 00 00 00 fc 00
mode sense (10): pass-through requested 252 bytes but got 28 bytes
Mode Sense (block descriptor) data, prior to changes:
Mode sense number of blocks maxed out, set longlba
mode sense (10) cdb: 5a 10 01 00 00 00 00 00 fc 00
mode sense (10): pass-through requested 252 bytes but got 36 bytes
Mode Sense (block descriptor) data, prior to changes:
<<< longlba flag set (64 bit lba) >>>
Number of blocks=7814037168 [0x1d1c0beb0]
Block size=512 [0x200]
A FORMAT will commence in 10 seconds
ALL data on /dev/sg9 will be DESTROYED
Press control-C to abort
A FORMAT will commence in 5 seconds
ALL data on /dev/sg9 will be DESTROYED
Press control-C to abort
format cdb: 04 18 00 00 00 00
format unit: Descriptor format, current; Sense key: Not Ready
Additional sense: Logical unit not ready, initializing command required
Descriptor type: Information
>> descriptor too short
00 00 00 00 00 00 00 00 00 00
Descriptor type: Command specific
0x0000000000000000
Descriptor type: Sense key specific: Progress indication: 0.00%
Descriptor type: Field replaceable unit
code=0x0
Descriptor type: Block commands
Incorrect Length Indicator (ILI) clear
Descriptor type: VendoFormat command, device not ready