You are not logged in.

#1 2023-09-29 15:40:19

samuel4711
Member
Registered: 2023-09-29
Posts: 2

[SOLVED] Problem partitioning NVMe / Realtec PCI Express Card Reader

Booting live environment from USB-stick, "fdisk /dev/nvme0n1" fails with:
fdisk: cannot open /dev/nvme0n1: No such file or directory

Dell Inc. XPS 15 9560/05FFDN, BIOS 1.31.0 11/10/2022
Samsung SSD 990 PRO 2TB 1B2QJXD7
SATA Operation is set to "AHCI" in BIOS
00:17.0 SATA controller: Intel Corporation HM170/QM170 Chipset SATA Controller [AHCI Mode] (rev 31)
04:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller S4LV008[Pascal]

before fdisk:
- "nvme list": shows nothing
- "fdisk -l": does not list the nvme disk
- "smartctl -a /dev/nvme0n1":
    Read NVMe Identify Controller failed: NVME_IOCTL_ADMIN_CMD: Input/output error
- "lsblk":

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
[...]
nvme0n1     259:0    0     0B  0 disk 
├─nvme0n1p1 259:1    0  1000M  0 part 
├─nvme0n1p2 259:2    0   1.8T  0 part 
└─nvme0n1p3 259:3    0   8.8G  0 part
crw------- 1 root root 238, 0 Sep 29 12:05 /dev/nvme0
brw-rw---- 1 root disk 259, 0 Sep 29 12:05 /dev/nvme0n1
brw-rw---- 1 root disk 259, 1 Sep 29 12:05 /dev/nvme0n1p1
brw-rw---- 1 root disk 259, 2 Sep 29 12:05 /dev/nvme0n1p2
brw-rw---- 1 root disk 259, 3 Sep 29 12:05 /dev/nvme0n1p3

after fdisk failed:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
[...]
nvme0n1     259:0    0     0B  0 disk 
crw------- 1 root root 238, 0 Sep 29 12:05 /dev/nvme0
brw-rw---- 1 root disk 259, 0 Sep 29 13:35 /dev/nvme0n1

Extract from journalctl:

...
Sep 29 07:22:36 archiso kernel: usb: port power management may be unreliable
Sep 29 07:22:36 archiso kernel: MXM: GUID detected in BIOS
Sep 29 07:22:36 archiso kernel: ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20230331/nsarguments-61)
Sep 29 07:22:36 archiso kernel: nouveau 0000:01:00.0: [drm] No compatible format found
Sep 29 07:22:36 archiso kernel: nvme nvme0: controller is down; will reset: CSTS=0xffffffff, PCI_STATUS=0xffff
Sep 29 07:22:36 archiso kernel: nvme nvme0: Does your device have a faulty power saving mode enabled?
Sep 29 07:22:36 archiso kernel: nvme nvme0: Try "nvme_core.default_ps_max_latency_us=0 pcie_aspm=off" and report a bug
Sep 29 07:22:36 archiso kernel: nvme0n1: Read(0x2) @ LBA 3888569127, 8 blocks, Host Aborted Command (sct 0x3 / sc 0x71) 
Sep 29 07:22:36 archiso kernel: I/O error, dev nvme0n1, sector 3888569127 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 2
Sep 29 07:22:36 archiso kernel: nvme 0000:04:00.0: Unable to change power state from D3cold to D0, device inaccessible
Sep 29 07:22:36 archiso kernel: nvme nvme0: Disabling device after reset failure: -19
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p3, logical block 0, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p3, logical block 1, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p3, logical block 2, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p3, logical block 3, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p1, logical block 0, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p2, logical block 0, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p2, logical block 1, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p2, logical block 2, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p2, logical block 3, async page read
Sep 29 07:22:36 archiso kernel: Buffer I/O error on dev nvme0n1p2, logical block 4, async page read
Sep 29 07:22:38 archiso kernel: ACPI Warning: \_SB.IETM._TRT: Return Package has no elements (empty) (20230331/nsprepkg-94)
Sep 29 07:22:39 archiso kernel: dell_smm_hwmon: SMM call took 431403 usecs!
...

see also: Journal (journalctl -b --priority=4)

Tried setting kernel parameters in GRUB before starting live environment:
Wiki: Controller failure due to broken APST support
          (..."This kernel parameter may no longer be necessary with recent versions of Linux Kernel"...)
"nvme_core.default_ps_max_latency_us=0 pcie_aspm=off" (as suggested above) did not work for me
and
this post: SOLVED Lenovo Thinkpad X1 Yoga: NVMe not recognised
"nvme_core.default_ps_max_latency_us=500" did not work for me.

Also tried Wiki: Controller failure due to broken suspend support in GRUB before starting live environment.
"iommu=soft" Did not work for me.

As a "cross check" I installed EndeavourOS with no problems.

Has anyone an idea what I could do next?

Last edited by samuel4711 (2023-09-30 12:06:36)

Offline

#2 2023-09-29 22:38:16

jonno2002
Member
Registered: 2016-11-21
Posts: 684

Re: [SOLVED] Problem partitioning NVMe / Realtec PCI Express Card Reader

your laptop aparently has a realtek card reader so this might help: https://bbs.archlinux.org/viewtopic.php?id=288095

Offline

#3 2023-09-30 12:00:25

samuel4711
Member
Registered: 2023-09-29
Posts: 2

Re: [SOLVED] Problem partitioning NVMe / Realtec PCI Express Card Reader

jonno2002 wrote:

your laptop aparently has a realtek card reader so this might help: https://bbs.archlinux.org/viewtopic.php?id=288095

Thank you very much, that helped me!

03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)

I disabled the card reader in BIOS settings.
Now partitioning the disk works.

Offline

#4 2023-10-13 20:47:14

dividebyzero
Member
Registered: 2023-10-13
Posts: 2

Re: [SOLVED] Problem partitioning NVMe / Realtec PCI Express Card Reader

jonno2002 wrote:

your laptop aparently has a realtek card reader so this might help: https://bbs.archlinux.org/viewtopic.php?id=288095

Thank you so much. This bug actually bricked my installation of Pop OS on another machine (Dell XPS 15 9560 as well) and would not let me decrypt the drive. However, I could decrypt the drive in the recovery partition with luksOpen no problem, so I was thankfully able to get my files off. I even completely wiped the drive and was installing arch, only to see my nvme was not showing up in fdisk. Searching for that issue led me to this post, and what do you know. Problem solved. I guess its a sign to switch to arch!

Offline

Board footer

Powered by FluxBB