Trouble using Jetson TX1 Developer Kit SATA with Samsung 850 EVO SSD

Hello,

I am experiencing difficulty trying to use a Samsung 850 EVO - 250GB - 2.5-Inch SATA III Internal SSD (MZ-75E250B/AM) with the Jetson TX1. This is a new Jetson TX1 Developer Kit. I successfully flashed JetPack 2.2 (L4T R24.1, 64bit kernel) on Monday. Since then, I have been trying to install the SSD to expand the available storage, but I keep encountering errors.

The SATA cable that I am using and the drive itself appear to be okay; I have used the cable to connect the SSD to a MacBook Pro via a Diablotek USB 3.0 to SATA adapter. Mac OS X ‘El Capitan’ Version 10.11.5 (15F34) saw the drive, and I was able to format the drive as exFAT with an msdos/MBR partition table using Mac’s Disk Utility.

I swapped out the hard drive of a Toshiba Satellite S855-S5378 with the SSD and booted the laptop using the ubuntu-14.04.4-desktop-amd64 live DVD image. After installing the exfat-fuse and exfat-utils packages, I was able to mount the partition and successfully read a text file that I had placed on the drive. I then used gparted to convert the filesystem from exFAT to ext4. I was able to edit a new text file on the ext4 partition successfully.

Next, I cabled the SSD back onto the Jetson TX1. Powering on the Jetson, there are no error messages from the kernel. The output from dmesg is: http://pastebin.com/MZYwSt0K

The output from hdparm -I /dev/sda is: http://pastebin.com/5Jmgw1yz

I mounted the partition in read-only mode and attempted to cat a text file:

root@tegra-ubuntu:~# mount -t ext4 -o ro,nodiscard,noatime /dev/sda1 /data
root@tegra-ubuntu:~# cat /data/stuff.txt

The new dmesg entries were:

[  315.496379] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: nodiscard
[  401.056876] ata1.00: exception Emask 0x0 SAct 0x4000 SErr 0x540000 action 0x6 frozen
[  401.064714] ata1: SError: { CommWake Dispar Handshk }
[  401.071150] ata1.00: failed command: READ FPDMA QUEUED
[  401.078044] ata1.00: cmd 60/08:70:02:30:04/00:00:00:00:00/40 tag 14 ncq 4096 in
[  401.078044]          res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  401.093095] ata1.00: status: { DRDY }
[  401.096830] ata1: hard resetting link
[  401.647523] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  401.651141] ata1.00: supports DRM functions and may not be fully accessible
[  401.654179] ata1.00: supports DRM functions and may not be fully accessible
[  401.655126] ata1.00: configured for UDMA/133
[  401.667140] ata1.00: device reported invalid CHS sector 0
[  401.667603] ata1: EH complete

I had previously seen an Ubuntu bug report (trim does not work with Samsung 840 EVO after firmware update (EXT0DB6Q)) which made me think that perhaps the SSD does not actually support TRIM, so I tried unmounting the partition, disabling NCQ, remounting, and cat’ing the file:

root@tegra-ubuntu:~# umount /data
root@tegra-ubuntu:~# echo 1 >/sys/block/sda/device/queue_depth
root@tegra-ubuntu:~# mount -t ext4 -o ro,nodiscard,noatime /dev/sda1 /data
root@tegra-ubuntu:~# cat /data/stuff.txt

This worked fine, and the only new dmesg entry was [ 530.641970] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: nodiscard

I next tried mounting the partition in read-write mode. There are a lot of errors reported by dmesg:

[  650.771095] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  650.778695] ata1.00: irq_stat 0x08000000, interface fatal error
[  650.784913] ata1: SError: { Handshk }
[  650.788605] ata1.00: failed command: WRITE DMA
[  650.793269] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 25 dma 4096 out
[  650.793269]          res 50/00:00:09:00:84/00:00:00:00:00/ee Emask 0x10 (ATA bus error)
[  650.808797] ata1.00: status: { DRDY }
[  650.812586] ata1: hard resetting link
[  651.349728] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  651.351367] ata1.00: supports DRM functions and may not be fully accessible
[  651.354833] ata1.00: supports DRM functions and may not be fully accessible
[  651.355793] ata1.00: configured for UDMA/133
[  651.370141] ata1: EH complete
[  651.370900] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  651.380051] ata1.00: irq_stat 0x08000000, interface fatal error
[  651.386134] ata1: SError: { Handshk }
[  651.390529] ata1.00: failed command: WRITE DMA
[  651.395213] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 26 dma 4096 out
[  651.395213]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  651.411776] ata1.00: status: { DRDY }
[  651.415525] ata1: hard resetting link
[  651.960001] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  651.961498] ata1.00: supports DRM functions and may not be fully accessible
[  651.964692] ata1.00: supports DRM functions and may not be fully accessible
[  651.965647] ata1.00: configured for UDMA/133
[  651.980545] ata1: EH complete
[  651.981298] ata1.00: limiting speed to UDMA/100:PIO4
[  651.981436] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  651.990670] ata1.00: irq_stat 0x08000000, interface fatal error
[  651.996747] ata1: SError: { Handshk }
[  652.001283] ata1.00: failed command: WRITE DMA
[  652.005954] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 27 dma 4096 out
[  652.005954]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  652.022758] ata1.00: status: { DRDY }
[  652.026510] ata1: hard resetting link
[  652.569801] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  652.571333] ata1.00: supports DRM functions and may not be fully accessible
[  652.574476] ata1.00: supports DRM functions and may not be fully accessible
[  652.575843] ata1.00: configured for UDMA/100
[  652.590711] ata1: EH complete
[  652.591463] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  652.600050] ata1.00: irq_stat 0x08000000, interface fatal error
[  652.606136] ata1: SError: { Handshk }
[  652.613287] ata1.00: failed command: WRITE DMA
[  652.617755] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 28 dma 4096 out
[  652.617755]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  652.633369] ata1.00: status: { DRDY }
[  652.637185] ata1: hard resetting link
[  653.181213] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  653.182798] ata1.00: supports DRM functions and may not be fully accessible
[  653.185916] ata1.00: supports DRM functions and may not be fully accessible
[  653.186982] ata1.00: configured for UDMA/100
[  653.200972] ata1: EH complete
[  653.201884] ata1.00: limiting speed to UDMA/33:PIO4
[  653.201965] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  653.211576] ata1.00: irq_stat 0x08000000, interface fatal error
[  653.217566] ata1: SError: { Handshk }
[  653.221552] ata1.00: failed command: WRITE DMA
[  653.226082] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 29 dma 4096 out
[  653.226082]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  653.243263] ata1.00: status: { DRDY }
[  653.246981] ata1: hard resetting link
[  653.799953] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  653.801572] ata1.00: supports DRM functions and may not be fully accessible
[  653.804706] ata1.00: supports DRM functions and may not be fully accessible
[  653.805917] ata1.00: configured for UDMA/33
[  653.820281] ata1: EH complete
[  653.821031] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  653.828771] ata1.00: irq_stat 0x08000000, interface fatal error
[  653.835677] ata1: SError: { Handshk }
[  653.843175] ata1.00: failed command: WRITE DMA
[  653.847642] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 30 dma 4096 out
[  653.847642]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  653.863186] ata1.00: status: { DRDY }
[  653.867000] ata1: hard resetting link
[  654.410054] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  654.411222] ata1.00: supports DRM functions and may not be fully accessible
[  654.414421] ata1.00: supports DRM functions and may not be fully accessible
[  654.415368] ata1.00: configured for UDMA/33
[  654.430440] sd 0:0:0:0: [sda]  
[  654.430568] Result: hostbyte=0x00 driverbyte=0x08
[  654.430673] sd 0:0:0:0: [sda]  
[  654.430745] Sense Key : 0xb [current] [descriptor]
[  654.430912] Descriptor sense data with sense descriptors (in hex):
[  654.430992]         72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 
[  654.431555]         00 00 00 00 
[  654.431781] sd 0:0:0:0: [sda]  
[  654.431854] ASC=0x0 ASCQ=0x0
[  654.431963] sd 0:0:0:0: [sda] CDB: 
[  654.432029] cdb[0]=0x2a: 2a 00 00 00 00 02 00 00 08 00
[  654.432479] end_request: I/O error, dev sda, sector 2
[  654.437740] Buffer I/O error on device sda1, logical block 0
[  654.444803] lost page write due to I/O error on sda1
[  654.450998] ata1: EH complete
[  654.462373] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: nodiscard

I then tried creating a new text file on the drive; however, vi reported that an error occurred and the file was not successfully written. There are more errors reported by dmesg: http://pastebin.com/zeFSXZmZ

Now when I try to mount the partition, mount says:

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

… and the dmesg entries are: http://pastebin.com/QZsjxgyj

I think that this means that the ext4 filesystem was corrupted by the failed write.

Has anyone managed to use a Samsung 850 EVO successfully with a Jetson TX1?

Is there anything that I should try that might resolve this problem?

I noticed in the dmesg logs from powering up the Jetson that there was something about tegra-sata:

[    4.017569] tegra-sata tegra-sata.0: AHCI 0001.0301 32 slots 2 ports 3 Gbps 0x1 impl TEGRA-SATA mode
[    4.029537] tegra-sata tegra-sata.0: flags: 64bit ncq sntf pm led pmp pio slum part sadm apst 
[    4.042420] scsi0 : tegra-sata
[    4.047508] scsi1 : tegra-sata

Do I need to configure tegra-sata to not use NCQ?

Daniel

Just wondering, when you converted to ext4, did you do an actual mkfs.ext4? The “missing codepage or helper program, or other error” makes me wonder if non-codepage-437 characters were left over somewhere on the partition…perhaps in meta data, not necessarily in any file.

I used gparted to format as ext4.

Note that I was able to mount as read-only ext4 without error after I had disabled NCQ. Reading data was fine. The “missing codepage or helper program” error started after I had remounted as read-write and attempted to write to a new file.

What I’m wondering is if there is a difference between using gparted and mkfs.ext4 (e.g., perhaps gparted has some ability to read and retain a previous codepage during conversion, which you do not want). One purpose of the question is to be certain anything which was previously there…possibly from a different code page…is gone. It’s worth trying once to see if the tool is the issue instead of the hardware.

Okay. So I attached the SSD to the Toshiba Satellite laptop, booted ubuntu-14.04.4-desktop-amd64, used mkfs.ext4 to format the partition as ext4, and wrote some test files to the newly-formatted partition.

Attaching the SSD back onto the Jetson, once I disabled NCQ, I was able to mount the partition in read-only mode and successfully read the test files, as before.

Errors started appearing when I tried to remount as read-write:

root@tegra-ubuntu:~# umount /data
root@tegra-ubuntu:~# mount -t ext4 -o nodiscard,noatime /dev/sda1 /data

The resulting dmesg log entries were:

[  682.023998] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x440000 action 0x6 frozen
[  682.031830] ata1.00: irq_stat 0x0c000000, interface fatal error
[  682.037788] ata1: SError: { CommWake Handshk }
[  682.042415] ata1.00: failed command: WRITE DMA
[  682.046887] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 7 dma 4096 out
[  682.046887]          res 50/00:00:09:00:84/00:00:00:00:00/ee Emask 0x10 (ATA bus error)
[  682.062325] ata1.00: status: { DRDY }
[  682.066004] ata1: hard resetting link
[  682.609488] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  682.610904] ata1.00: supports DRM functions and may not be fully accessible
[  682.614091] ata1.00: supports DRM functions and may not be fully accessible
[  682.615073] ata1.00: configured for UDMA/133
[  682.629276] ata1: EH complete
[  682.630006] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  682.637753] ata1.00: irq_stat 0x08000000, interface fatal error
[  682.644840] ata1: SError: { Handshk }
[  682.648620] ata1.00: failed command: WRITE DMA
[  682.653453] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 8 dma 4096 out
[  682.653453]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  682.669197] ata1.00: status: { DRDY }
[  682.672928] ata1: hard resetting link
[  683.219635] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  683.220567] ata1.00: supports DRM functions and may not be fully accessible
[  683.223499] ata1.00: supports DRM functions and may not be fully accessible
[  683.224905] ata1.00: configured for UDMA/133
[  683.240067] ata1: EH complete
[  683.240830] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  683.248582] ata1.00: irq_stat 0x08000000, interface fatal error
[  683.255732] ata1: SError: { Handshk }
[  683.260115] ata1.00: failed command: WRITE DMA
[  683.264791] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 9 dma 4096 out
[  683.264791]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  683.280713] ata1.00: status: { DRDY }
[  683.284497] ata1: hard resetting link
[  683.829485] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  683.830754] ata1.00: supports DRM functions and may not be fully accessible
[  683.833652] ata1.00: supports DRM functions and may not be fully accessible
[  683.835045] ata1.00: configured for UDMA/133
[  683.849689] ata1: EH complete
[  683.850341] ata1.00: limiting speed to UDMA/100:PIO4
[  683.850476] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  683.858182] ata1.00: irq_stat 0x08000000, interface fatal error
[  683.865226] ata1: SError: { Handshk }
[  683.869542] ata1.00: failed command: WRITE DMA
[  683.874201] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 10 dma 4096 out
[  683.874201]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  683.890501] ata1.00: status: { DRDY }
[  683.894229] ata1: hard resetting link
[  684.439604] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  684.440988] ata1.00: supports DRM functions and may not be fully accessible
[  684.443936] ata1.00: supports DRM functions and may not be fully accessible
[  684.445332] ata1.00: configured for UDMA/100
[  684.460149] ata1: EH complete
[  684.460902] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  684.469500] ata1.00: irq_stat 0x08000000, interface fatal error
[  684.475583] ata1: SError: { Handshk }
[  684.480175] ata1.00: failed command: WRITE DMA
[  684.484682] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 11 dma 4096 out
[  684.484682]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  684.500126] ata1.00: status: { DRDY }
[  684.503821] ata1: hard resetting link
[  685.049125] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  685.050216] ata1.00: supports DRM functions and may not be fully accessible
[  685.051649] ata1.00: supports DRM functions and may not be fully accessible
[  685.052398] ata1.00: configured for UDMA/100
[  685.069060] ata1: EH complete
[  685.069609] ata1.00: limiting speed to UDMA/33:PIO4
[  685.069670] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  685.077307] ata1.00: irq_stat 0x08000000, interface fatal error
[  685.083817] ata1: SError: { Handshk }
[  685.087528] ata1.00: failed command: WRITE DMA
[  685.092268] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 12 dma 4096 out
[  685.092268]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  685.107861] ata1.00: status: { DRDY }
[  685.111655] ata1: hard resetting link
[  685.659661] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  685.660619] ata1.00: supports DRM functions and may not be fully accessible
[  685.663501] ata1.00: supports DRM functions and may not be fully accessible
[  685.664923] ata1.00: configured for UDMA/33
[  685.679918] sd 0:0:0:0: [sda]  
[  685.680044] Result: hostbyte=0x00 driverbyte=0x08
[  685.680149] sd 0:0:0:0: [sda]  
[  685.680225] Sense Key : 0xb [current] [descriptor]
[  685.680391] Descriptor sense data with sense descriptors (in hex):
[  685.680476]         72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 
[  685.681046]         00 00 00 00 
[  685.681271] sd 0:0:0:0: [sda]  
[  685.681341] ASC=0x0 ASCQ=0x0
[  685.681453] sd 0:0:0:0: [sda] CDB: 
[  685.681522] cdb[0]=0x2a: 2a 00 00 00 00 02 00 00 08 00
[  685.681995] end_request: I/O error, dev sda, sector 2
[  685.687259] Buffer I/O error on device sda1, logical block 0
[  685.696304] lost page write due to I/O error on sda1
[  685.702517] ata1: EH complete
[  685.712675] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: nodiscard

When I then tried unmounting, the new dmesg entries were:

[  701.919418] nf_conntrack: automatic helper assignment is deprecated and it will be removed soon. Use the iptables CT target to attach helpers instead.
[  736.065121] EXT4-fs (sda1): previous I/O error to superblock detected
[  736.074298] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  736.082127] ata1.00: irq_stat 0x0c000000, interface fatal error
[  736.088092] ata1: SError: { Handshk }
[  736.092594] ata1.00: failed command: WRITE DMA
[  736.097106] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 13 dma 4096 out
[  736.097106]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  736.114618] ata1.00: status: { DRDY }
[  736.118320] ata1: hard resetting link
[  736.660060] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  736.663505] ata1.00: supports DRM functions and may not be fully accessible
[  736.666757] ata1.00: supports DRM functions and may not be fully accessible
[  736.667721] ata1.00: configured for UDMA/33
[  736.680520] ata1: EH complete
[  736.681272] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  736.689029] ata1.00: irq_stat 0x0c000000, interface fatal error
[  736.695947] ata1: SError: { Handshk }
[  736.703086] ata1.00: failed command: WRITE DMA
[  736.707552] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 14 dma 4096 out
[  736.707552]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  736.723101] ata1.00: status: { DRDY }
[  736.726915] ata1: hard resetting link
[  737.270238] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  737.282540] ata1.00: supports DRM functions and may not be fully accessible
[  737.285440] ata1.00: supports DRM functions and may not be fully accessible
[  737.286435] ata1.00: configured for UDMA/33
[  737.300566] ata1: EH complete
[  737.301317] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  737.309100] ata1.00: irq_stat 0x08000000, interface fatal error
[  737.316068] ata1: SError: { Handshk }
[  737.323256] ata1.00: failed command: WRITE DMA
[  737.327723] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 15 dma 4096 out
[  737.327723]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  737.343269] ata1.00: status: { DRDY }
[  737.347086] ata1: hard resetting link
[  737.890810] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  737.892896] ata1.00: supports DRM functions and may not be fully accessible
[  737.894276] ata1.00: supports DRM functions and may not be fully accessible
[  737.895026] ata1.00: configured for UDMA/33
[  737.909510] ata1: EH complete
[  737.910034] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  737.917675] ata1.00: irq_stat 0x08000000, interface fatal error
[  737.925392] ata1: SError: { Handshk }
[  737.929098] ata1.00: failed command: WRITE DMA
[  737.933743] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 16 dma 4096 out
[  737.933743]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  737.951075] ata1.00: status: { DRDY }
[  737.954763] ata1: hard resetting link
[  738.500141] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  738.504068] ata1.00: supports DRM functions and may not be fully accessible
[  738.507047] ata1.00: supports DRM functions and may not be fully accessible
[  738.508054] ata1.00: configured for UDMA/33
[  738.520608] ata1: EH complete
[  738.521383] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  738.529954] ata1.00: irq_stat 0x0c000000, interface fatal error
[  738.536025] ata1: SError: { Handshk }
[  738.543158] ata1.00: failed command: WRITE DMA
[  738.547625] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 17 dma 4096 out
[  738.547625]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  738.563174] ata1.00: status: { DRDY }
[  738.567104] ata1: hard resetting link
[  739.110279] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  739.113583] ata1.00: supports DRM functions and may not be fully accessible
[  739.116504] ata1.00: supports DRM functions and may not be fully accessible
[  739.117510] ata1.00: configured for UDMA/33
[  739.130689] ata1: EH complete
[  739.131428] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  739.139904] ata1.00: irq_stat 0x0c000000, interface fatal error
[  739.146022] ata1: SError: { Handshk }
[  739.150005] ata1.00: failed command: WRITE DMA
[  739.154664] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 18 dma 4096 out
[  739.154664]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  739.170552] ata1.00: status: { DRDY }
[  739.174287] ata1: hard resetting link
[  739.720106] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  739.722982] ata1.00: supports DRM functions and may not be fully accessible
[  739.725909] ata1.00: supports DRM functions and may not be fully accessible
[  739.727539] ata1.00: configured for UDMA/33
[  739.740433] sd 0:0:0:0: [sda]  
[  739.740553] Result: hostbyte=0x00 driverbyte=0x08
[  739.740659] sd 0:0:0:0: [sda]  
[  739.740736] Sense Key : 0xb [current] [descriptor]
[  739.740904] Descriptor sense data with sense descriptors (in hex):
[  739.740988]         72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 
[  739.741558]         00 00 00 00 
[  739.741785] sd 0:0:0:0: [sda]  
[  739.741854] ASC=0x0 ASCQ=0x0
[  739.741960] sd 0:0:0:0: [sda] CDB: 
[  739.742028] cdb[0]=0x2a: 2a 00 00 00 00 02 00 00 08 00
[  739.742479] end_request: I/O error, dev sda, sector 2
[  739.747739] Buffer I/O error on device sda1, logical block 0
[  739.754757] lost page write due to I/O error on sda1
[  739.755160] ata1: EH complete

Finally, when I tried re-mounting, the dmesg entries were:

[  795.058941] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  795.066633] ata1.00: irq_stat 0x08000000, interface fatal error
[  795.072612] ata1: SError: { Handshk }
[  795.076282] ata1.00: failed command: WRITE DMA
[  795.080826] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 7 dma 4096 out
[  795.080826]          res 50/00:00:09:00:84/00:00:00:00:00/ee Emask 0x10 (ATA bus error)
[  795.096216] ata1.00: status: { DRDY }
[  795.099986] ata1: hard resetting link
[  795.650542] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  795.653701] ata1.00: supports DRM functions and may not be fully accessible
[  795.656475] ata1.00: supports DRM functions and may not be fully accessible
[  795.657444] ata1.00: configured for UDMA/33
[  795.670893] ata1: EH complete
[  795.671649] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  795.679427] ata1.00: irq_stat 0x08000000, interface fatal error
[  795.686561] ata1: SError: { Handshk }
[  795.690903] ata1.00: failed command: WRITE DMA
[  795.695578] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 8 dma 4096 out
[  795.695578]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  795.711830] ata1.00: status: { DRDY }
[  795.715559] ata1: hard resetting link
[  796.260864] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  796.264908] ata1.00: supports DRM functions and may not be fully accessible
[  796.267435] ata1.00: supports DRM functions and may not be fully accessible
[  796.268428] ata1.00: configured for UDMA/33
[  796.281229] ata1: EH complete
[  796.282560] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x1c00000 action 0x6 frozen
[  796.290651] ata1.00: irq_stat 0x0c000000, interface fatal error
[  796.296740] ata1: SError: { Handshk LinkSeq TrStaTrns }
[  796.302590] ata1.00: failed command: WRITE DMA
[  796.307179] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 9 dma 4096 out
[  796.307179]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  796.322764] ata1.00: status: { DRDY }
[  796.326503] ata1: hard resetting link
[  796.880654] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  796.886873] ata1.00: supports DRM functions and may not be fully accessible
[  796.888700] ata1.00: supports DRM functions and may not be fully accessible
[  796.890715] ata1.00: configured for UDMA/33
[  796.910893] ata1: EH complete
[  796.911681] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  796.919440] ata1.00: irq_stat 0x08000000, interface fatal error
[  796.926544] ata1: SError: { Handshk }
[  796.930882] ata1.00: failed command: WRITE DMA
[  796.935557] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 10 dma 4096 out
[  796.935557]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  796.951934] ata1.00: status: { DRDY }
[  796.955660] ata1: hard resetting link
[  797.500533] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  797.504405] ata1.00: supports DRM functions and may not be fully accessible
[  797.506798] ata1.00: supports DRM functions and may not be fully accessible
[  797.507743] ata1.00: configured for UDMA/33
[  797.520919] ata1: EH complete
[  797.521688] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  797.529443] ata1.00: irq_stat 0x08000000, interface fatal error
[  797.536543] ata1: SError: { Handshk }
[  797.540873] ata1.00: failed command: WRITE DMA
[  797.545545] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 11 dma 4096 out
[  797.545545]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  797.562154] ata1.00: status: { DRDY }
[  797.565889] ata1: hard resetting link
[  798.110540] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  798.114668] ata1.00: supports DRM functions and may not be fully accessible
[  798.117062] ata1.00: supports DRM functions and may not be fully accessible
[  798.118024] ata1.00: configured for UDMA/33
[  798.130905] ata1: EH complete
[  798.131657] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x400000 action 0x6 frozen
[  798.139406] ata1.00: irq_stat 0x08000000, interface fatal error
[  798.146484] ata1: SError: { Handshk }
[  798.150831] ata1.00: failed command: WRITE DMA
[  798.155496] ata1.00: cmd ca/00:08:02:00:00/00:00:00:00:00/e0 tag 12 dma 4096 out
[  798.155496]          res 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[  798.171792] ata1.00: status: { DRDY }
[  798.175517] ata1: hard resetting link
[  798.720811] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  798.725711] ata1.00: supports DRM functions and may not be fully accessible
[  798.728150] ata1.00: supports DRM functions and may not be fully accessible
[  798.729093] ata1.00: configured for UDMA/33
[  798.741215] sd 0:0:0:0: [sda]  
[  798.741334] Result: hostbyte=0x00 driverbyte=0x08
[  798.741436] sd 0:0:0:0: [sda]  
[  798.741513] Sense Key : 0xb [current] [descriptor]
[  798.741678] Descriptor sense data with sense descriptors (in hex):
[  798.741759]         72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00 
[  798.742328]         00 00 00 00 
[  798.742554] sd 0:0:0:0: [sda]  
[  798.742623] ASC=0x0 ASCQ=0x0
[  798.742731] sd 0:0:0:0: [sda] CDB: 
[  798.742796] cdb[0]=0x2a: 2a 00 00 00 00 02 00 00 08 00
[  798.743246] end_request: I/O error, dev sda, sector 2
[  798.748503] Buffer I/O error on device sda1, logical block 0
[  798.754533] lost page write due to I/O error on sda1
[  798.754910] ata1: EH complete
[  798.805522] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: nodiscard

I just tried mounting in read-only mode again, and I saw the “missing codepage or helper program” error:

root@tegra-ubuntu:~# mount -t ext4 -o ro,nodiscard,noatime /dev/sda1 /data
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

I received an email from Samsung Support confirming that EMT02B6Q is the latest firmware.

Assuming sda, does this show anything relevant:

sudo smartctl -a /dev/sda

Also, is there any difference if you don’t mount with nodiscard and noatime?