You are not logged in.

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

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

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: 45

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: 45

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

Board footer

Powered by FluxBB