fstrim error - AORUS NVMe Gen4 SSD

davidc502
2019-07-21T02:41:27Z

Hello,

I've assembled a X570 board with a 1TB AORUS NVMe Gen4 SSD.

When attempting to fstrim the NVMe, I receive the following error.
davidc502@Ryzen-3900x:~$ sudo fstrim -a -v
fstrim: /boot/efi: FITRIM ioctl failed: Input/output error
fstrim: /: FITRIM ioctl failed: Input/output error

Anyhow, I have put some details below which might be helpful. Note
that this NVMe is supposed to be TRIM and SMART compliant. The SMART
outputs are available using the utility “nvme-cli”.
I am willing to provide whatever command outputs that are needed to
help solve this issue.

OS= Ubuntu 18.4.2 LTS
Different Kernels I’ve tried = 5.1.16, 5.2 rc7, and 4.18
fstrim version =  fstrim from util-linux 2.31.1
Firmware version for Aorus NVMe = EGFM11.0

mount output
/dev/nvme0n1p2 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/nvme0n1p1 on /boot/efi type vfat
(rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

NVMe firmware version using utility ‘nvme’

$ sudo nvme list /dev/nvme0n1

Node             SN Model                                    Namespace
Usage                      Format           FW Rev
---------------- --------------------
---------------------------------------- ---------
-------------------------- ---------------- --------
/dev/nvme0n1     SNX       GIGABYTE GP-ASM2NE6100TTTD
1           1.00  TB /   1.00 TB    512   B +  0 B   EGFM11.0

If there is any other additional information I can provide please let
me know.

Best Regards,

David