Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post here if you encounter any problems or bugs with the software.
Squish
Posts: 6
Joined: 2016.03.01. 06:16

Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by Squish »

Howdy Janos,

I've got a raspberry pi4 running Buster, whichever is the latest (debian based)
I've trialled several builds of HDS and all of them are giving me the "no such file or directory" issue, despite being present in the directory. Of course, I started with the ones labelled raspberry pi, as the most sensible choice; I tried the others after doing sensible things didn't work.

From much searching, this might be due to a missing program interpreter:

I've tried looking at the readelf output:
eg.> readelf -a hdsentinelarm | grep "/lib"
output:
[Requesting program interpreter: /lib/ld-linux-armhf.so.3]
0x00000001 (NEEDED) Shared library: [libc.so.6]
00214040 00001016 R_ARM_JUMP_SLOT 00000000 __libc_start_main@GLIBC_2.4
readelf: Warning: 000000: Version: 1 File: libc.so.6 Cnt: 1

And for the ArmV8 version:
> readelf -a HDSentinel-armv8 | grep "lib"
output:
[Requesting program interpreter: /lib/ld-linux-aarch64.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
000000630028 000600000402 R_AARCH64_JUMP_SL 0000000000000000 __libc_start_main@GLIBC_2.34 + 0
000000: Version: 1 File: libc.so.6 Cnt: 2

I have tried all manner of methods trying to get this particular library installed, but I'm running into brick walls. If this was a common problem, I'm sure there'd be others talking about the same issue, but even on these boards there's only a couple of mentions.
User avatar
hdsentinel
Site Admin
Posts: 3019
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by hdsentinel »

> and all of them are giving me the "no such file or directory" issue, despite being present in the directory.

If you want to launch, you'd need to make it executable and specify the path too to launch.

Please refer to
https://www.hdsentinel.com/hard_disk_sentinel_linux.php
which mentions that you need to use chmod 755 HDSentinel and launch as sudo ./HDSentinel [options]

If the file simply present in the folder - it may be not enough to launch....

Also make sure to DO NOT use Firefox if you download the .gz file (if you try the ARMv7 version for 32 bit Linux).
An unfixed Firefox bug causes double-compression of the .gz file, so you may need to download with wget (you may find details on this forum if you search for Firefox and/or wget).

But probably you need to use the ARMv8 version for Raspberry PI 4 (assuming 64 bit Linux):

https://www.hdsentinel.com/hdslin/hdsentinel-armv8.zip

It works here too and nobody else reported troubles with it ;)

If you still encounter troubles, can you please check what is the output of lscpu on your system?
And what do you see if you use ls -l in the folder where you downloaded and extracted the proper version for your CPU?
Squish
Posts: 6
Joined: 2016.03.01. 06:16

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by Squish »

Righto...

So I think one of the issues was that I was running a 32bit usermode, on the 64 kernel.
I've now reinstalled, so everything is 64-bit

Code: Select all

dpkg --print-architecture
arm64

user@pi64:~/hdsentinel $ lscpu
Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          4
On-line CPU(s) list:             0-3
Thread(s) per core:              1
Core(s) per socket:              4
Socket(s):                       1
Vendor ID:                       ARM
Model:                           3
Model name:                      Cortex-A72
Stepping:                        r0p3
CPU max MHz:                     1500.0000
CPU min MHz:                     600.0000
BogoMIPS:                        108.00
L1d cache:                       128 KiB
L1i cache:                       192 KiB
L2 cache:                        1 MiB
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Not affected
Vulnerability Retbleed:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Vulnerable
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fp asimd evtstrm crc32 cpuid
I did WGET and I did chmod +x the file

It does run, but I'm getting: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found

I have run apt-get update, and just to try, also apt-get install libc6 (already at latest version 2.2 or so from recall)

ls -la
3.8M -rwxr-xr-x 1 root root 3.8M Jun 14 14:49 HDSentinel-armv8
(it was user:users before, but the problem is more obviously the missing dependency; chown-ing didn't make any difference)

And for what it's worth, I have hdsentinl armv7 running nicely on a pi3B+
Squish
Posts: 6
Joined: 2016.03.01. 06:16

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by Squish »

https://stackoverflow.com/questions/71940179/error-lib-x86-64-linux-gnu-libc-so-6-version-glibc-2-34-not-found

Someone with the exact same problem. One possible solution is to build the executable from source in the relevant distribution. I don't believe there's any available source file for HDS, is there?


Edit:
And from what it looks like, from reading this post: https://raspberrypi.stackexchange.com/questions/119083/upgrading-libc-libc6-raspberry-pi-os-rasbian-buster

and this post: https://forums.raspberrypi.com/viewtopic.php?t=334896

That this isn't something that I can fix without a high likelyhood of borking my entire install. (Mind you, GLibC is supposed to be fully backwards compatible: https://gitlab.com/freepascal.org/fpc/projects/-/issues/3 ).
Last edited by Squish on 2023.09.21. 09:31, edited 1 time in total.
User avatar
hdsentinel
Site Admin
Posts: 3019
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by hdsentinel »

Hi,

Thanks for your attention and sorry for the troubles.
After re-compiled and tested, verified, just updated a fixed file.

Please try to download

https://www.hdsentinel.com/hdslin/hdsentinel-armv8.zip

again and verify, it should work with Raspberry PI 4

After unpacking, the file size should be 3719240 bytes.
User avatar
hdsentinel
Site Admin
Posts: 3019
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by hdsentinel »

Yes, I'm afraid the source code can't be open.

We have strict NDAs (Non-Disclosure Agreements) with manufacturers of storage hardware (hard disks, SSDs, RAID controllers, USB adapters/converters etc..) and these prevent releasing technical details or source code at all.
Squish
Posts: 6
Joined: 2016.03.01. 06:16

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by Squish »

As for the source -- that's totally understandable, and I was just making sure that I wasn't asking you to do something that I could just as much do myself.


Working perfectly. Thanks Janos :)
User avatar
hdsentinel
Site Admin
Posts: 3019
Joined: 2008.07.27. 17:00
Location: Hungary
Contact:

Re: Can't run Linux HDSentinel (any architecture) on Raspberry Pi 4

Post by hdsentinel »

Thanks for the confirmation, good to hear things are working now ;)
Post Reply