I would like to change the number of logical blocks on a drive and the block size by modifying the write buffer.

The output of read capacity on that drive shows me number of logical blocks as 27344764928. How can I change that value to some lower value?

Do I need to modify a write buffer/mode page of that drive? If yes, how can it be done?

# sg_readcap /dev/sdap
READ CAPACITY (10) indicates device capacity too large
  now trying 16 byte cdb variant
Read Capacity results:
   Protection: prot_en=0, p_type=0, p_i_exponent=0
   Logical block provisioning: lbpme=0, lbprz=0
   Last logical block address=27344764927 (0x65ddfffff), Number of logical blocks=27344764928
   Logical block length=512 bytes
   Logical blocks per physical block exponent=3 [so physical block length=4096 bytes]
   Lowest aligned logical block address=0
   Device size: 14000519643136 bytes, 13351936.0 MiB, 14000.52 GB

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.