Sector size change with camcontrol

Ireneusz Pluta ipluta at wp.pl
Sat Feb 16 10:06:05 UTC 2019


Hello,

In my new SEAGATE ST900MP0146 drives I want to change sector size from factory default 512E to 4kN. 
The drive manual (i.e. 
https://www.seagate.com/www-content/product-content/enterprise-performance-savvio-fam/enterprise-performance-15k-hdd/ent-perf-15k-6/en-us/docs/100827313b.pdf) 
says how to do it:

Mode Select - Parameter list header
• Set Write buffer: // Set Block Descriptor Length = 0x08, Number of LBA's = 0xFFFFFFFF
• 00 00 00 00 00 00 00 08 FF FF FF FF 00 00 02 00 // Set block size to 0512 (0x0200)
• 10 00 // Set block size to 4096 (0x1000)
• Then Send Mode Select Command
• cdb: 55 01 00 00 00 00 00 00 10 00 // (SP bit = 1, Parameter list = 0x10)
Format Unit - Parameter list header
• Set Write buffer: // Set IMMED = 1
• 00 02 00 00
• Then Send Format Unit Command
• cdb: 04 14 00 00 01 00 // (FMTDAT = 1, DEFECT LIST FORMAT = 010b, FFMT = 01b)

Does the above convert to the following two camcontrol cmds?

$ camcontrol cmd /dev/da0 -v \
      -c '55 01 00 00 00 00 00 00 10 00' \
      -o 16 '00 00 00 00 00 00 00 08 FF FF FF FF 00 00 10 00'
$ camcontrol cmd /dev/da0 -v \
      -c '04 14 00 00 01 00' \
      -o 4 '00 02 00 00'

Thanks,
Irek.


More information about the freebsd-questions mailing list