Usage: sg_format [--cappid] [--cmplst=0|1] [--count=COUNT] [--dcrt] [--dry-run] [--early] [--ffmt=FFMT] [--fmtmaxlba] [--fmtpinfo=FPI] [--format] [--help] [--ip-def] [--long] [--mode=MP] [--pfu=PFU] [--pie=PIE] [--pinfo] [--poll=PT] [--preset=ID] [--quick] [--resize] [--rto_req] [--security] [--six] [--size=LB_SZ] [--tape=FM] [--timeout=SECS] [--verbose] [--verify] [--version] [--wait] DEVICE where: --cappid|-a set CAPPID bit in Mode Select if count change --cmplst=0|1 -C 0|1 sets CMPLST bit in format cdb (def: 1; if FFMT: 0) --count=COUNT|-c COUNT number of blocks to report after format or resize. Format default is same as current --dcrt|-D disable certification (doesn't verify media) use twice to enable certification and set FOV bit --dry-run|-d bypass device modifying commands (i.e. don't format) --early|-e exit once format started (user can monitor progress) --ffmt=FFMT|-t FFMT fast format (def: 0 -> slow, may visit every block). 1 and 2 are fast formats; 1: after format, unwritten data read without error --fmtmaxlba|-b sets FMTMAXLBA field in FORMAT WITH PRESET --fmtpinfo=FPI|-f FPI FMTPINFO field value (default: 0) --format|-F do FORMAT UNIT (default: report current count and size) use thrice for FORMAT UNIT command only --help|-h prints out this usage message --ip-def|-I use default initialization pattern --long|-l allow for 64 bit lbas (default: assume 32 bit lbas) --mode=MP|-M MP mode page (def: 1 -> RW error recovery mpage) --pie=PIE|-q PIE Protection Information Exponent (default: 0) --pinfo|-p set upper bit of FMTPINFO field (deprecated, use '--fmtpinfo=FPI' instead) --poll=PT|-x PT PT is poll type, 0 for test unit ready 1 for request sense (def: 0 (1 for tape and format with preset)) --preset=ID|-E ID do FORMAT WITH PRESET command with PRESET IDENTIFIER field set to ID --quick|-Q start format without pause for user intervention (i.e. no time to reconsider) --resize|-r resize (rather than format) to COUNT value --rto_req|-R set lower bit of FMTPINFO field (deprecated use '--fmtpinfo=FPI' instead) --security|-S set security initialization (SI) bit --six|-6 use 6 byte MODE SENSE/SELECT to probe disk (def: use 10 byte MODE SENSE/SELECT) --size=LB_SZ|-s LB_SZ bytes per logical block, defaults to DEVICE's current logical block size. Only needed to change current logical block size --tape=FM|-T FM request FORMAT MEDIUM with FORMAT field set to FM (def: 0 --> default format) --timeout=SECS|-m SECS FORMAT UNIT/MEDIUM command timeout in seconds --verbose|-v increase verbosity, can use multiple times --verify|-y sets VERIFY bit in FORMAT MEDIUM (tape) --version|-V print version details and exit --wait|-w format commands wait until format operations complete (default: set IMMED=1 and poll with Test Unit Ready) Example: sg_format --format /dev/sdc This utility formats a SCSI disk [FORMAT UNIT] or resizes it. Alternatively if '--tape=FM' is given formats a tape [FORMAT MEDIUM]. Another alternative is doing the FORMAT WITH PRESET command when '--preset=ID' is given. WARNING: This utility will destroy all the data on the DEVICE when '--format', '--tape=FM' or '--preset=ID' is given. Double check that you have specified the correct DEVICE.