Kernel Errors Present

Hello,

under the protocols I get the following error message:

WARNING: Kernel Errors Present
res 40/00:01:01:4f:c2/00:00:00:00:00/00 Emask 0x10 (ATA bus error) …: 1 Time(s)
ata2.00: irq_stat 0x08000000, interface fatal error …: 1 Time(s)
ata2: SError: { UnrecovData H …: 1 Time(s)

1 Time(s): ata2.00: cmd 61/28:00:f0:bf:07/00:00:0f:00:00/40 tag 0 ncq dma 20480 out
1 Time(s): ata2.00: configured for UDMA/133
1 Time(s): ata2.00: exception Emask 0x10 SAct 0x1 SErr 0x400100 action 0x6 frozen
1 Time(s): ata2.00: failed command: WRITE FPDMA QUEUED
1 Time(s): ata2.00: status: { DRDY }
1 Time(s): ata2: EH complete
1 Time(s): ata2: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
1 Time(s): ata2: hard resetting link

I don’t know what this means. Can you help me?

Thank you.

ATA is the driver for the hdd/ssd. This error is usually caused by a bad disc drive or bad SATA cables if the drive is ok.
Sometimes also the powersupply may be faulty. In every case you should fix your hardware because it may be corrupting the data on the disc.

1 Like

Ok, thanks. Then I have to exchange the SATA cable perhaps?

Check also the s.m.a.r.t. values.

smartctl -iHA /dev/sd?

smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.12.13-ipfire] (IPFire 2.27)
Copyright (C) 2002-23 Bruce Allen Christian Franke www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family: Silicon Motion based SSDs
Device Model: TS256GMSA230S
Serial Number: G323650430
LU WWN Device Id: 5 7c3548 1b486097e
Firmware Version: 02J0TBD1
User Capacity: 256 060 514 304 bytes [256 GB]
Sector Size: 512 bytes logical/physical
Rotation Rate: Solid State Device
TRIM Command: Available deterministic zeroed
Device is: In smartctl database 7.3/5528
ATA Version is: ACS-2 (minor revision not indicated)
SATA Version is: SATA 3.2 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is: Mon Apr 7 09:26:38 2025 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

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

SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0000 100 100 000 Old_age Offline - 0
5 Reallocated_Sector_Ct 0x0000 100 100 000 Old_age Offline - 0
9 Power_On_Hours 0x0000 100 100 000 Old_age Offline - 11081
12 Power_Cycle_Count 0x0000 100 100 000 Old_age Offline - 18
148 Total_SLC_Erase_Ct 0x0000 100 100 000 Old_age Offline - 130128
149 Max_SLC_Erase_Ct 0x0000 100 100 000 Old_age Offline - 1401
150 Min_SLC_Erase_Ct 0x0000 100 100 000 Old_age Offline - 1206
151 Average_SLC_Erase_Ct 0x0000 100 100 000 Old_age Offline - 1369
164 Total_Erase_Count 0x0000 100 100 000 Old_age Offline - 15249
165 Max_Erase_Count 0x0000 100 100 000 Old_age Offline - 13
166 Min_Erase_Count 0x0000 100 100 000 Old_age Offline - 3
167 Average_Erase_Count 0x0000 100 100 000 Old_age Offline - 8
159 DRAM_1_Bit_Error_Count 0x0000 100 100 000 Old_age Offline - 0
160 Uncorrectable_Error_Cnt 0x0000 100 100 000 Old_age Offline - 0
161 Valid_Spare_Block_Cnt 0x0000 100 100 000 Old_age Offline - 137
163 Initial_Bad_Block_Count 0x0000 100 100 000 Old_age Offline - 16
168 Max_Erase_Count_of_Spec 0x0000 100 100 000 Old_age Offline - 3000
169 Remaining_Lifetime_Perc 0x0000 100 100 000 Old_age Offline - 100
177 Wear_Leveling_Count 0x0000 100 100 050 Old_age Offline - 76
181 Program_Fail_Cnt_Total 0x0000 100 100 000 Old_age Offline - 0
182 Erase_Fail_Count_Total 0x0000 100 100 000 Old_age Offline - 0
192 Power-Off_Retract_Count 0x0000 100 100 000 Old_age Offline - 5
194 Temperature_Celsius 0x0000 100 100 000 Old_age Offline - 59 (Min/Max 19/69)
195 Hardware_ECC_Recovered 0x0000 100 100 000 Old_age Offline - 0
196 Reallocated_Event_Count 0x0000 100 100 016 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0000 100 100 050 Old_age Offline - 3113
232 Available_Reservd_Space 0x0000 100 100 000 Old_age Offline - 100
241 Host_Writes_32MiB 0x0000 100 100 000 Old_age Offline - 168577
242 Host_Reads_32MiB 0x0000 100 100 000 Old_age Offline - 321
245 TLC_Writes_32MiB 0x0000 100 100 000 Old_age Offline - 263812

There are a bunch of sata errors logged. You should exchange the sata cables and recheck if this is incremented with new cables.

The disc itself looks ok. But it seens to be very hot.

Is there a way to improve the cooling…

I’m going to order a new cable then and replace it. Hope this solves the problem.

Temperature is now 57 °C. It’s a fanless MiniPC.

My mini PC type system (Lightning Wire Labs Mini fanless system - old version) also has an SSD similar to what you are using. It is running at 41C.

57C looks high to me.

1 Like

The SSD itself would never generate that much heat. It is rather that it is warmed by the CPU and other parts…

2 Likes

The metal case is off now. The temperature is 12 °C lower at 47.

What cable do I have to exchange? :thinking:

There is no. You have an mSATA SSD.

Could be better, but for passiv Mini-PCs this temperature looks to me familiar.

Also the ot is OK: 0°C (32°F) ~ 70°C (158°F)

The measured high temp with 69°C is critical.

Remove and re install.

Do you think the error message is coming because the hard disk may have been installed at an angle?

No, I might simple be on its way dying although it has only been running for a little bit over a year. I would contact the vendor and check the warranty.

You want reliable hardware in your firewall or it will fail at a random time.

2 Likes

Without knowing the exact motherboard, your problem seems to be only a temp problem as @ms already suspected. Your build have some “design” flaws which seems easy to fix:

  1. I assume you use 2.5 Gbps network ports (AE-SE24203 chip). These chips getting hot without an active cooling when something is above them.
  2. You installed the mSATA exactly above the two network ports you use.
  3. About 40-50% of your mSATA is warmed up from these below chips raising the temp before it’s reset by the kernel. To make this worse, the position of the mSATA contoller is exactly above these heat sources.

What you should do:

a) When I read the kernel error message correct, you use the secondary ATA port, so this mSATA slot is “designed” for a secondary drive. You should use the other (primary) mSATA slot which is angled 90° without a heat source other than the MAGIC 3R3 chips which is heating 2-5% of the mSATA.

and/or:

b) use another case with an active cooling.

1 Like

The second miniPCIe will have only USB for WWAN cards. I don’t think that it will work withn SATA. Also this is a Mini-PC with propritary design. He can’t just use another case to improve the cooling.

Do you know which modell this Mini-PC is?

@mortimer
If you can’t change the mSATA slot there are two other options:

c) only use port 3-4 for the connection, this should also bring down the temp on the mSATA disk.

d) use a heatspreader, there are not many for mSATA but a few.

Hello,

I bought the MiniPC here: https://cartft.com/catalog/il/3106

As Terry quoted there is no second mSATA port unfortunately.

Since yesterday I have this amount of errors:
199 UDMA_CRC_Error_Count 0x0000 100 100 050 Old_age Offline - 3122

If you feel the metal case from underneath, it is quite hot under the ports 1 and 2.

Do you mean a heat sink like this one?
https://pc-chef.com/produkt/s80-2/