Yes I found and linked it once, but will surely not find it anymore either in reasonable time. From their end, running USB drivers larger than a pen drive is not supported, which fits pretty well the various problems we received with this, which also are well explained with the limited USB power output of RPi up to 4. However, the Argon One M.2 case powers the RPi as well as the SSD, not the RPi powers everything. So unlikely voltage is the issue, unless the PSU itself is not powerful enough: 3A for the RPi 4, 2A for the SSD, and then there are some other features, a fan and such …
Aside of under-voltage, something else to test is hdparm
spindown or APM, which sometimes causes issues.
When the drive is inaccessible, check the power state:
hdparm -C /dev/sda # just guessing device name here
APM (Advanced Power Management) is not set/changed anymore with the DietPi default config, due to low support and problems it caused with some drives, but to test whether it is supported by yours:
hdparm -B 255 /dev/sda
255
disables APM completely. As we do not change it, not sure whether it can be enabled by default by firmware, but worth a test, whether it is supported at all, and whether disabling it explicitly prevents the drive from going into some unrecoverable bad state.
Similarly, while not known to cause such issues, you could test whether putting the drive into idle mode triggers the issue immediately:
hdparm -S 120 /dev/sda
While it applies a 10 minutes idle timeout (default on DietPi images), running the command also puts the drive into idle mode immediately. If it indeed causes issues, and you have no other drive which shall go into idle mode after certain time, you could just purge hdparm
altogether:
apt autopurge hdparm
If there are other drive, you’d need to set the value individually for them, which is possible as well via /etc/hdparm.conf
.
If the device node is not present at all: not sure whether it is internally attached via USB?
lsmod
Should be, I am not aware of another way to attach a drive to an RPi 4, that would provide enough throughput for an SSD to make any sense.
But the kernel must then have reported an error as well.