I have the same problem but with a Kioxia kxg6aznv256g.
The drive showed up fine to start with, but after copying some data it error:ed out and disappeared! Rebooting doesn’t bring it back, neither does unplugging the power. I’m using an official rpi5 power supply.
I’m running firmware
root@rpi5:~# rpi-eeprom-update
BOOTLOADER: up to date
CURRENT: fre 5 jan 2024 15:57:40 UTC (1704470260)
LATEST: fre 5 jan 2024 15:57:40 UTC (1704470260)
RELEASE: default (/lib/firmware/raspberrypi/bootloader-2712/default)
Use raspi-config to change the release.
Below is parts of the terminal session where the drives disappears.
@guru I’m up for some soldering if you think it would help.
root@rpi5:~# dmesg
...
[ 1.882783] nvme nvme0: pci function 0000:01:00.0
[ 1.887705] brcm-pcie 1000110000.pcie: clkreq control enabled
[ 1.887713] nvme 0000:01:00.0: enabling device (0000 -> 0002)
[ 1.888036] brcm-pcie 1000120000.pcie: host bridge /axi/pcie@120000 ranges:
[ 1.906780] brcm-pcie 1000120000.pcie: No bus range found for /axi/pcie@120000, using [bus 00-ff]
[ 1.916242] brcm-pcie 1000120000.pcie: MEM 0x1f00000000..0x1ffffffffb -> 0x0000000000
[ 1.924899] brcm-pcie 1000120000.pcie: MEM 0x1c00000000..0x1effffffff -> 0x0400000000
[ 1.933571] brcm-pcie 1000120000.pcie: IB MEM 0x1f00000000..0x1f003fffff -> 0x0000000000
[ 1.942231] brcm-pcie 1000120000.pcie: IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000
[ 1.951803] nvme nvme0: 4/0/0 default/read/poll queues
[ 1.951969] brcm-pcie 1000120000.pcie: setting SCB_ACCESS_EN, READ_UR_MODE, MAX_BURST_SIZE
[ 1.957920] nvme0n1: p1 p2 p3 p4
...
root@rpi5:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29,8G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 29,3G 0 part /
nvme0n1 259:0 0 238,5G 0 disk
├─nvme0n1p1 259:1 0 260M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 237,2G 0 part
└─nvme0n1p4 259:4 0 1000M 0 part
# Trying to copy the existing sd-card to the nvme
$ time dd bs=4M if=/dev/mmcblk0 of=/dev/nvme0n1 conv=fdatasync status=progress
1480589312 bytes (1,5 GB, 1,4 GiB) copied, 163 s, 9,1 MB/s
dd: error writing '/dev/nvme0n1': No space left on device
dd: fdatasync failed for '/dev/nvme0n1': Input/output error
dd: fsync failed for '/dev/nvme0n1': Input/output error
354+0 records in
353+0 records out
1480589312 bytes (1,5 GB, 1,4 GiB) copied, 162,805 s, 9,1 MB/s
real 2m42,810s
user 0m0,000s
sys 0m3,131s
# The nvme disappeared!
root@rpi5:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
mmcblk0 179:0 0 29,8G 0 disk
├─mmcblk0p1 179:1 0 512M 0 part /boot/firmware
└─mmcblk0p2 179:2 0 29,3G 0 part /
root@rpi5:~# dmesg
...
[ 812.330528] nvme nvme0: I/O 0 (I/O Cmd) QID 1 timeout, aborting
[ 812.330547] nvme nvme0: I/O 1 (I/O Cmd) QID 1 timeout, aborting
[ 812.330556] nvme nvme0: I/O 2 (I/O Cmd) QID 1 timeout, aborting
[ 812.330564] nvme nvme0: I/O 3 (I/O Cmd) QID 1 timeout, aborting
[ 843.050590] nvme nvme0: I/O 0 QID 1 timeout, reset controller
[ 873.770660] nvme nvme0: I/O 24 QID 0 timeout, reset controller
[ 934.979005] nvme nvme0: Device not ready; aborting reset, CSTS=0x1
[ 935.002180] nvme nvme0: Abort status: 0x371
[ 935.002188] nvme nvme0: Abort status: 0x371
[ 935.002191] nvme nvme0: Abort status: 0x371
[ 935.002195] nvme nvme0: Abort status: 0x371
[ 938.519945] nvme nvme0: Removing after probe failure status: -19l
[ 938.535362] nvme0n1: detected capacity change from 500118192 to 0
[ 938.535366] Buffer I/O error on dev nvme0n1, logical block 129722, lost async page write
[ 938.535377] Buffer I/O error on dev nvme0n1, logical block 129723, lost async page write
[ 938.535381] Buffer I/O error on dev nvme0n1, logical block 129724, lost async page write
[ 938.535385] Buffer I/O error on dev nvme0n1, logical block 129725, lost async page write
[ 938.535388] Buffer I/O error on dev nvme0n1, logical block 129726, lost async page write
[ 938.535392] Buffer I/O error on dev nvme0n1, logical block 129727, lost async page write
[ 938.535396] Buffer I/O error on dev nvme0n1, logical block 129728, lost async page write
[ 938.535399] Buffer I/O error on dev nvme0n1, logical block 129729, lost async page write
[ 938.535403] Buffer I/O error on dev nvme0n1, logical block 129730, lost async page write
[ 938.535407] Buffer I/O error on dev nvme0n1, logical block 129731, lost async page write