Sujet : Re: Simple way for web to execute root shell script.
De : anssi.saari (at) *nospam* usenet.mail.kapsi.fi (Anssi Saari)
Groupes : comp.os.linux.misc comp.sys.raspberry-piDate : 29. May 2025, 08:07:42
Autres entêtes
Organisation : An impatient and LOUD arachnid
Message-ID : <sm0a56vgaip.fsf@lakka.kapsi.fi>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
druck <
news@druck.org.uk> writes:
On 28/05/2025 08:58, The Natural Philosopher wrote:
On 27/05/2025 21:44, druck wrote:
It does work with smartcl, Not with lm-sensors
>
Sorry, picked up on the wrong part of the post.
>
lm-sensors wont work with external USB drives as it only knows about
things connected to the internal busses of a machine such as acpi and
i2c, and the Pi only had the latter.
No. See for example here:
https://www.kernel.org/doc/html/latest/hwmon/drivetemp.html, the
drivetemp driver uses ATA commands to read temperatures from drives or
alternatively, using SMART attributes. lm-sensors either uses the
drivetemp kernel driver or just reads from /sys/class/hwmon.
Which is why I said before, I find it odd if smartctl works and
drivetemp does not, although AFAiK no one has actually tried that in
this thread.
Unfortunately I don't have any recent USB HDs around. I do have an
USB-SSD case but don't have a spare SSD to put into it right now.