@DarthBJW my friend, take some solace in the form of the immortal words of Michael Jackson:- You are not alone, I am here with you… And hopefully I might be able to help you. (That last bit’s from me, not Michael)
Is your m2 SSD, by chance, an NVMe drive?
I have been having similar issues with the 1135G7 i5 Nuc 11. The plan was to follow @Atlantis5’s path and run Arch Linux to experience the glory that is Plex transcoding with Quicksync on Linux, but alas, I didn’t even get to the Plex installation before the system/NVMe drive started freezing and locking up with I/O errors and EXT4 fs errors, among others. I noted the issues only began from 2nd boot onwards each time I reinstalled linux, but from every boot onwards the issues would recur between 5 and 60 minutes without relent.
Ironically, Windows 10 had no issue with the same drive, and all tests confirmed there’s no obvious issue with my NVMe drive. I’m somewhat ashamed to admit until I stumbled across this little nugget below, I almost hit the F it button and went with Windows, but I held strong and resisted the powerful pull of the dark side.
According to THIS bug report, there are known issues on Linux that can affect some NVMe drives by way of lock up/freezing, potentially related to how NVMe drives are managed by power saving features. Some drive manufacturers have released firmware updates, so check for those, and there have been some kernel patches to address the issue, however even after the workaround below I note some users mention they still experience the issue very rarely, but it’s progress.
The workaround I have found stability with for the last 24 hours and counting (So far…) which I found thanks to some of the users comments in the bug link above, is below:
Find your Grub file, and using a text editor with SU privileges, add the following line to the end of your GRUB_CMDLINE_LINUX=””
nvme_core.default_ps_max_latency_us=0
I also added the below line, which may not be necessary but I’ve had no issues since I made the changes.
pcie_aspm=performance
More detailed instructions than mine can be found HERE thanks to Berk.
I suppose if all else fails, one could try a non-NVMe SSD drive, however that would slightly diminish one of my goals which was to drastically improve Plex metadata performance.
Apologies if this is somewhat unrelated to Nuc 11 transcoding on Plex, but as another user mentioned an m2 issue I thought I would offer my findings which helped.
Now, onto Plex and transcoding! …Once I have some more confidence in stability…