You are not logged in.

#1 2020-07-26 17:52:05

potuz
Member
Registered: 2009-10-23
Posts: 112

nvme invalid lba format specified

Hi, this is a new WD Black ssd, trying to use 4K blocks

$ sudo nvme id-ns /dev/nvme0n1 
...
nlbaf   : 1
...
lbaf  0 : ms:0   lbads:9  rp:0x2 (in use)
lbaf  1 : ms:0   lbads:12 rp:0x1

So this should be supported, however

$ sudo nvme format /dev/nvme0n1 --lbaf=1 
You are about to format nvme0n1, namespace 0x1.
Namespace nvme0n1 has parent controller(s):nvme0

WARNING: Format may irrevocably delete this device's data.
You have 10 seconds to press Ctrl-C to cancel this operation.

Use the force [--force|-f] option to suppress this warning.
Sending format operation ... 
NVMe status: INVALID_FORMAT: The LBA Format specified is not supported. This may be due to various conditions(0x410a)

I'll appreciate any help.

Offline

#2 2020-07-26 19:15:13

potuz
Member
Registered: 2009-10-23
Posts: 112

Re: nvme invalid lba format specified

Udate: in fact the same error happens without any format being specified:

sudo nvme format -f /dev/nvme0n1
NVMe status: INVALID_FORMAT: The LBA Format specified is not supported. This may be due to various conditions(0x410a)

What's going on?

Offline

#3 2020-07-26 19:46:13

potuz
Member
Registered: 2009-10-23
Posts: 112

Re: nvme invalid lba format specified

Last update, I decided to partition anyway as it was and it seems that the system anyway takes the 4K block size:

$ blkid /dev/nvme0n1p2 
/dev/nvme0n1p2: UUID="6964f66a-be49-46df-9a02-82b4cb01ef21" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="f734f601-d48d-d044-a56e-11328d8a42de"

Offline

#4 2021-05-07 16:22:32

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: nvme invalid lba format specified

See if the suspend trick can help you out, if you want to reconfigure the drive someday:
https://superuser.com/questions/1574424 … -supported

And yeah filesystem block size usually depends on other things instead of the logical block size of the drive. IIRC many filesystems will use the block size of 4KiB because it's the usual page size of memory Linux uses on an x86 PC.

Offline

#5 2023-10-08 13:13:09

sickill
Member
Registered: 2010-01-12
Posts: 10

Re: nvme invalid lba format specified

Had "LBA Format specified is not supported" error with WD SN700, the suspend tricked worked.

Offline

#6 2023-10-08 15:00:56

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,739

Re: nvme invalid lba format specified

Closing this old thread


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB