I’ve bought 2 SN750, one is 250GB and the other is 500GB. When I checked if they support 4096 bytes sectors, I was happy to see that they were (even if they are 512B formated by default). But when I tried to format the namespace, I’ve got an error, each time the same :
# nvme format --lbaf=1 -s 1 -f /dev/nvme0n1
NVMe status: INVALID_FORMAT: The LBA Format specified is not supported. This may be due to various conditions(0x410a)
It happens with both the ssd, with different OS and computers.
Secure Erase Settings: This field specifies whether a secure erase should be performed as part of the format and the type of the secure erase operation. The erase applies to all user data, regardless of location (e.g., within an exposed LBA, within a cache, within deallocated LBAs, etc). Defaults to 0.
1 = User Data Erase: All user data shall be erased, contents of the user data after the erase is indeterminate (e.g., the user data may be zero filled, one filled, etc). The controller may perform a cryptographic erase when a User Data Erase is requested if all user data is encrypted.
Do you have an encrypted disk? If not then try removing the -s 1 option.
One more thing, before you try to low-level format it, unmount the filesystem on the NMVe drive first.
$ sudo unmount /dev/nvme0n1
$ sudo nvme format /dev/nvme0n1 --lbaf= 1 --reset
(See this posting for determining the correct device/namespace and LBA Format index number.)
I happen to have the same issue with both ssd, which are not the same (250GB and 500GB versions). I don’t think it’s an issue with the disks. I also tested from my Debian unstable, but also from a live usb with Fedora 32. That’s always the same error. I tried with and without secure boot, just in case, same thing.
Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 2
1 - 4096 0 1
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 46 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 0%
Data Units Read: 182 [93,1 MB]
Data Units Written: 0
Host Read Commands: 3 477
Host Write Commands: 0
Controller Busy Time: 0
Power Cycles: 11
Power On Hours: 39
Unsafe Shutdowns: 1
Media and Data Integrity Errors: 0
Error Information Log Entries: 1
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Error Information (NVMe Log 0x01, max 256 entries)
No Errors Logged
The drive is currently low-level formatted to 512 B physical sector size (lbaf index 0).
4096 B LBA size indeed has lbaf index 1, so your format command was correct (I’d lose the -f (force) option, before you know what you’re dealing with).
The SMART self test passed okay and there are no error log entries in the drive. It’s running a bit hot for an idle drive, although that’s nothing to worry about yet.
I do see:
Are you sure that there’s nothing on the drive? All space is reported as allocated, whereas I observed with my own drive (SN550) that all space was unallocated, when it was brand new.
Maybe look through your BIOS / UEFI pages to look for weird protection options?
It looks like your system has a security feature that’s locked the drive. Security implementation is vendor specific (not defined by NVMe). nvme-cli doesn’t have device specific unlocking capabilities.
Look for a secure erase ability in the UEFI/bios itself. Have a close look under advanced.
Furthermore you could search if WD has special utility software for your drive, that can perform a secure erase.
And you were right !
I finally found what was the issue. The drives were locked by both the computers. For one of them, I put the computer to sleep and then, after resume, the lock was released and the format command was ok. For the second one, the suspend trick did not work. I used a pci-e to m.2 adapter and format it with the other computer.
Does anyone had success with formating 4k? i have a sn750 and nothing works so far. i tried also with suspend system and format etc. im on it since couple day and no success. On a other nvme from Toshiba i had no problem, it worked for the first time perfectly.