Help ibm 528 byte convert to 512

@asha093 / @Tsagadai (any anyone else with locked drives)

I assume when you execute sudo sedutil-cli --query /dev/sdX, it’s saying “Locked = Y”, correct? I just want to be sure this is an SED lock & not a vendor-lock from custom firmware.

It does not say locked but it does say it is enabled. Quite strange output:

```
$ sudo sedutil-cli --query /dev/sda

/dev/sda SAS IBM-SSGSSH51P9 E1A8 IBM-SSG
TPer function (0x0001)
ACKNAK = N, ASYNC = N. BufferManagement = N, comIDManagement = N, Streaming = Y, SYNC = Y
Locking function (0x0002)
Locked = N, LockingEnabled = Y, LockingSupported = Y, MBRDone = N, MBREnabled = N, MBRAbsent = N, MediaEncrypt = Y
Geometry function (0x0003)
Align = Y, Alignment Granularity = 8 (4224), Logical Block size = 528, Lowest Aligned LBA = 0
Secure Messaging function (0x0004)
Activated = Y, Number of SPs = 2
Enterprise function (0x0100)
Range crossing = N, Base comID = 0x07fe, comIDs = 2

TPer Properties:
MaxMethods = 1 MaxSubpackets = 1
MaxPacketSize = 2028 MaxPackets = 1 MaxComPacketSize = 2048
MaxResponseComPacketSize = 2048 MaxSessions = 1 MaxIndTokenSize = 1992
MaxAuthentications = 20 MaxTransactionLimit = 1 DefSessionTimeout = 0
MaxSessionTimeout = 0 MinSessionTimeout = 0 DefTransTimeout = 0
MaxTransTimeout = 0 MinTransTimeout = 0 MaxComIDTime = 0
MaxComIDCMD = 0 RealTimeClock = 0
Host Properties:
MaxComPacketSize = 2048 MaxPacketSize = 2028
MaxIndTokenSize = 1992 MaxPackets = 1 MaxSubpackets = 1
```

We’re all on the same page there.

I’m happy to keep testing things or to provide a VM with passthrough to the drives if that’ll be easier than mailing them around the world too.

Hi @r3nnsport,

I ran sudo sedutil-cli --query on three different IBM OEM SAS SSDs. All three report Locked = N, even though SED locking is enabled.

1. Samsung PM1643 — IBM-SSGPSKT3P8, firmware 2011

Locked = N
LockingEnabled = Y
LockingSupported = Y
MediaEncrypt = Y
Enterprise function (0x0100)
Range crossing = N
Base comID = 0x07fe
MaxAuthentications = 5
MaxComPacketSize = 1536

The Geometry function is not listed in the sedutil output, although SCSI READ CAPACITY confirms 528-byte logical sectors.

2. Seagate — IBM-SSGSSJT3P8, firmware E3D2

Locked = N
LockingEnabled = Y
LockingSupported = Y
MediaEncrypt = Y
Geometry function (0x0003)
Alignment Granularity = 8 (4224)
Logical Block size = 528
Enterprise function (0x0100)
Range crossing = N
Base comID = 0x07fe
MaxAuthentications = 20
MaxComPacketSize = 2048
**** 1 **** Unknown function codes IGNORED

3. Seagate Nytro 1200.2 — IBM-SSGSSVT3P8, firmware 6214 (DLV)

Locked = N
LockingEnabled = Y
LockingSupported = Y
MediaEncrypt = Y
Geometry function (0x0003)
Alignment Granularity = 8 (4224)
Logical Block size = 528
Enterprise function (0x0100)
Range crossing = Y
Base comID = 0x07fe
MaxAuthentications = 20
MaxComPacketSize = 2048

@asha093 @Tsagadai Thanks for those findings. I see now, I believe LockingEnabled = Y does indeed indicate SED functionality is active & Locked = Y is specifically if the controller manually set a password requiring it to authorize during the boot sequence instead of using what the drive generates during its initial setup process.