You are not logged in.

#1 2020-05-09 07:17:41

stevechn75
Member
Registered: 2020-05-09
Posts: 1

A new NVME m2 disk can not be partitioned

My computer is a HP Z420 with the most updated bios. The NVME (Through a PCIe adaptor) could be recognized by the system

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0     7:0    0  91.4M  1 loop /var/lib/snapd/snap/core/8689
sda       8:0    0 465.8G  0 disk
├─sda1    8:1    0   512M  0 part
└─sda2    8:2    0 465.3G  0 part /
sdb       8:16   0 298.1G  0 disk
└─sdb1    8:17   0 298.1G  0 part /mnt/Acer
sdc       8:32   0 931.5G  0 disk
├─sdc1    8:33   0   512M  0 part
└─sdc2    8:34   0   931G  0 part /mnt/sys_backup
sr0      11:0    1  1024M  0 rom
nvme0n1 259:0    0 465.8G  0 disk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`

However, when use the fdisk to do the partition, it failed.

$sudo fdisk /dev/nvme0n1
Welcome to fdisk (util-linux 2.35.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xbe3a83da.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-976773167, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-976773167, default 976773167):

Created a new partition 1 of type 'Linux' and of size 465.8 GiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
/dev/nvme0n1: fsync device failed: Input/output error

Then, the dmesg output:

$ dmesg|grep nvme
[    1.131266] nvme nvme0: pci function 0000:07:00.0
[    1.250819] nvme nvme0: allocated 32 MiB host memory buffer.
[    1.253432] nvme nvme0: 12/0/0 default/read/poll queues
[  389.777574] blk_update_request: I/O error, dev nvme0n1, sector 0 op 0x1:(WRITE) flags 0x0 phys_seg 1 prio class 0
[  389.777582] Buffer I/O error on dev nvme0n1, logical block 0, lost async page write

# The smart check output is:

$ sudo smartctl -c /dev/nvme0n1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.6.10-arch1-1] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, [url=http://www.smartmontools.org]www.smartmontools.org[/url]

=== START OF INFORMATION SECTION ===
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Maximum Data Transfer Size:         128 Pages
Warning  Comp. Temp. Threshold:     80 Celsius
Critical Comp. Temp. Threshold:     85 Celsius
Namespace 1 Features (0x02):        NA_Fields

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     3.50W    2.10W       -    0  0  0  0        0       0
 1 +     2.40W    1.60W       -    0  0  0  0        0       0
 2 +     1.90W    1.50W       -    0  0  0  0        0       0
 3 -   0.0200W       -        -    3  3  3  3     3900   11000
 4 -   0.0050W       -        -    4  4  4  4     5000   39000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         2
 1 -    4096       0         1

# the short test passed

$ smartctl -t short /dev/nvme0n1

..
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
...

Thank you very much for your time and help.

Last edited by stevechn75 (2020-05-09 14:59:58)

Offline

#2 2020-05-09 07:19:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: A new NVME m2 disk can not be partitioned

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Co … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2020-08-30 18:44:15

marker5a
Member
Registered: 2010-03-19
Posts: 9

Re: A new NVME m2 disk can not be partitioned

I have almost the same exact issue on a similar machine (z820 also with latest FW).  I'm using a PCIe adapter with a WDC SN520.

I can see the disk, smartctl data looks good, but no luck formatting.  Have you had any luck since originally posting?

Offline

Board footer

Powered by FluxBB