I can't solve the problem 528 to 512

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

sick1655

New Member
Mar 16, 2021
15
2
3
Hi everyone i hope u all fine. I purchased the 2 discs you see in the images. I hope image is clear.
I have a IBM m4 x3250 and hp 603937=002 LSI 9260-8i sas raid controller.
WhatsApp Image 2024-04-09 at 04.46.36.jpeg

Lines of code I tried;

Home · ahouston/setblocksize Wiki (I tried, it didn't work)
sg_format --format --size=512 /dev/sg2 ( I tried, it didn't work)
GitHub - Drive-Trust-Alliance/sedutil: DTA sedutil Self encrypting drive software (I tried, it didn't work)
sudo sg_format --format -v --size=4096 (I tried, it didn't work)
sg_format -F -F -F (I tried, it didn't work)

THE ERROR I GET IS THE SAME IN EVERYONE;
illegal request, type sense key apart from invalid opcode.
WhatsApp Image 2024-04-09 at 04.57.28(1).jpeg

disk info;
WhatsApp Image 2024-04-09 at 04.50.25.jpeg

There are probably some points I missed. I have been trying to find a solution for 10 hours, but the result is disappointing.

maybe this documentation can help you;
 

Attachments

sko

Active Member
Jun 11, 2021
249
131
43
don't post pictures of text, especially if half of it is missing...
just copy&paste with [code][/code] tags or use e.g. termbin.com (<command> | nc termbin.com 9999) and post the link so everyone trying to help can read the output properly...

There are some firmware variants out there on such OEM-drives that don't allow reformatting with other blocksizes.
Also RAID controllers might interfere with raw SAS commands - can you attach the drive to a plain SAS HBA and try to reformat?
 

sick1655

New Member
Mar 16, 2021
15
2
3
don't post pictures of text, especially if half of it is missing...
just copy&paste with [code][/code] tags or use e.g. termbin.com (<command> | nc termbin.com 9999) and post the link so everyone trying to help can read the output properly...

There are some firmware variants out there on such OEM-drives that don't allow reformatting with other blocksizes.
Also RAID controllers might interfere with raw SAS commands - can you attach the drive to a plain SAS HBA and try to reformat?
So sorry,
I have them

IBM ServeRAID 8-Port L3-25422-27E SAS/SATA PCIe Controller
intel raid rs2pı008 controller
HPE 726909-001 H240ar
HP Qlogic QLE2562-HP
HP Smart Array P420 6Gb SAS RAID Controller
P440AR Raid card
LSI 9260-8i

one of these support SAS HBA? Im a beginner, sorry for simple questions
 

USER189364

Member
Jul 17, 2020
42
22
8
There was also a case in another post where the OP had to zero the drive / use the drives' erase command before it would accept the change in blocksize, else it you get the same illegal operation error. Could be something to look into.
 

CyklonDX

Well-Known Member
Nov 8, 2022
857
282
63
Use seachest tools with this one, its a rebranded seagate nytro 3131 based on model number. There's likely a ?security / type2 protection?

You would likely need to add "--fmtpinfo=0 " to sg_fromat to make it work (maybe more like pfu, and some magic bits) - but again its better to use seagate's tooling before you brick it.
 
  • Like
Reactions: sick1655

sick1655

New Member
Mar 16, 2021
15
2
3
Use seachest tools with this one, its a rebranded seagate nytro 3131 based on model number. There's likely a ?security / type2 protection?

You would likely need to add "--fmtpinfo=0 " to sg_fromat to make it work (maybe more like pfu, and some magic bits) - but again its better to use seagate's tooling before you brick it.
Hello cyklondx, What other ways can I try? i used seachest tools. If there is something I did wrong, I would be very happy if you let me know.
Code:
sudo sg_format --format --size=512 --fmtpinfo=0 /dev/sda
    IBM-SSG   IBM-SSGSSHT3P8    E1A8   peripheral_type: disk [0x0]
      Unit serial number: HLN034DC0000822150Z3
      LU name: 5000c5003e817a18
Mode Sense (block descriptor) data, prior to changes:
  <<< longlba flag set (64 bit lba) >>>
  Number of blocks=7274159057 [0x1b192dbd1]
  Block size=528 [0x210]
Try MODE SELECT again with SP=0 this time
MODE SELECT command: Illegal request
    try '-v' for more information
sg_format failed: Illegal request
 

CyklonDX

Well-Known Member
Nov 8, 2022
857
282
63
You need to add pfu for fmtpinfo to work;
Try this - though not sure what seagate is using --six may be incorrect.
sg_format -v --format --fmtpinfo=0 --pfu=0 --size=512 --six /dev/sda

(again i would advise using seachest tools, and using them to do the format.)
 
  • Like
Reactions: sick1655

sick1655

New Member
Mar 16, 2021
15
2
3
You need to add pfu for fmtpinfo to work;
Try this - though not sure what seagate is using --six may be incorrect.
sg_format -v --format --fmtpinfo=0 --pfu=0 --size=512 --six /dev/sda

(again i would advise using seachest tools, and using them to do the format.)
didnt work, I opened seachest tools and im waiting for you to tell me what to do. I apologize for my inexperience.

Code:
sudo  sg_format -v --format --fmtpinfo=0 --pfu=0 --size=512 --six /dev/sda

    IBM-SSG   IBM-SSGSSHT3P8    E1A8   peripheral_type: disk [0x0]

      PROTECT=0

      Unit serial number: HLN034DC0000822150Z3

      LU name: 5000c5003e817a18

    mode sense(6) cdb: [1a 00 01 00 fc 00]

Mode Sense (block descriptor) data, prior to changes:

block count maxed out, set <<longlba>>

    mode sense(10) cdb: [5a 10 01 00 00 00 00 00 fc 00]

  <<< longlba flag set (64 bit lba) >>>

  Number of blocks=7274159057 [0x1b192dbd1]

  Block size=528 [0x210]

    mode select(10) cdb: [55 11 00 00 00 00 00 00 24 00]

mode select(10):

Descriptor format, current; Sense key: Illegal Request

Additional sense: Invalid field in parameter list

  Descriptor type: Sense key specific: Field pointer:

        Error in Data parameters: byte 21 bit 7

  Descriptor type: Field replaceable unit code: 0x11

  Descriptor type: Vendor specific [0x80]

    00 00 05 26 00 11 ff ff ff ff ff ff 00 00

Try MODE SELECT again with SP=0 this time

    mode select(10) cdb: [55 10 00 00 00 00 00 00 24 00]

mode select(10):

Descriptor format, current; Sense key: Illegal Request

Additional sense: Invalid field in parameter list

  Descriptor type: Sense key specific: Field pointer:

        Error in Data parameters: byte 21 bit 7

  Descriptor type: Field replaceable unit code: 0x11

  Descriptor type: Vendor specific [0x80]

    00 00 05 26 00 11 ff ff ff ff ff ff 00 00

MODE SELECT command: Illegal request, type: sense key, apart from Invalid opcode
 

CyklonDX

Well-Known Member
Nov 8, 2022
857
282
63
1) First run a scan to get id of the disk
2) Run another command to get supported formats on the disk.
3) Post details
4) Run formatUnit with 512 or whatever that is supported... potentially disable certifications, and protection types







// note on the prior --six may be wrong... you can try without --six
 
  • Like
Reactions: itronin