Date: Sat, 16 Feb 2019 10:39:14 +0100 From: Ireneusz Pluta <ipluta@wp.pl> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Sector size change with camcontrol Message-ID: <b34979ac-d41c-413a-9ce8-c66b40d41512@wp.pl>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b34979ac-d41c-413a-9ce8-c66b40d41512>