from the GSmartControl log:
ID# ATTRIBUTE_NAME VALUE WORST THRESH FAIL RAW_VALUE
5 Reallocated_Sector_Ct 100 100 005 - 187
9 Power_On_Hours 036 036 000 - 28190
193 Load_Cycle_Count 020 020 000 - 800175
196 Reallocated_Event_Count 100 100 000 - 237
197 Current_Pending_Sector 097 097 000 - 280
Your hard drive is failing. Even if you didn't have Reallocated Sectors/Events and more sectors waiting to be reallocated, the drive is almost worn out anyway as evidenced by the "Load Cycle Count".
This DriveDX article has information on how to interpret these SMART attributes (aka "Health Indicators") if anyone is interested. While the information is good, it doesn't necessarily apply to each attribute fro every drive.
https://binaryfruit.com/drivedx/help#ui-drive-health-dashboard-important-health-indicators
(version of knoppix is in German and it is taking a while to navigate).
There are two versions of Knoppix available to download. One in English where the file name includes "EN" and one in German identified by "DE". IIRC you can choose the language when booting Knoppix on a regular non-Apple PD, but the Macs don't allow Knoppix to display the early boot menu where you can choose the language.
One thing I have noticed - I was having problems with the system continually hanging, and was going to install a clean mojave assuming some sort of hard to track down conflict was happening. Knoppix seems to be hanging regularly for 10-20 seconds too. Surprised at this, given the very clean installation...
This sometimes happens when get a lot of bad sectors on a hard drive. This also means you won't be able to run the iMac booted from an external drive so your only option is to replace the failing hard drive. I would recommend upgrading to an SSD as it will give your iMac a very nice performance boost, but you will most likely need to also install a temperature sensor adapter cable so the iMacs fans won't run at full speed with a third party drive installed.
Replacing a drive in an iMac is not an easy task so unless you are very skilled at working on computers I strongly suggest you have an independent Apple Authorized Service Provider perform the SSD upgrade for you.