Api/component pack for Raspbian Linux, to use disk status. lazarus / 32-Linux ---------------------------------------------------------------------- pascalbythree · 2024-11-27 16:51 Can anybody please name a Lazarus disk manage component libary ?  I am working on my NAS project. And i am trying to find a appropriate class framework  to read all kinds of disk satus info to dsplay on my Character display on the front of my project. Thank you, Greets Wouter van Wegen ! ---------------------------------------------------------------------- Dzandaa · 2024-11-27 18:21 Hi, Did you look in "Sysutils"? -> DiskSize, DiskFree Didn't find the list of function in English. Here in French: https://www.gladir.com/CODER/FREEPASCAL/sysutils.htm If you need the S.M.A.R.T info, I don't know. B-> ---------------------------------------------------------------------- pascalbythree · 2024-12-03 12:14 Does not work sufficient Does anybody have a better unit? ---------------------------------------------------------------------- Thaddy · 2024-12-03 12:50 Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i #!/usr/bin/env bash # Ensure sudo is authenticated at the beginningsudo -v || { echo "Error: You must provide sudo privileges to run this script."; exit 1; } # Gather disk information{  echo "==================================================="  echo "-- PARTED DISK INFO --"  sudo parted -ls  echo "-- INXI DISK INFO --"  sudo inxi -DpRjlLoux  echo "-- LSBLK DISK INFO --"  sudo lsblk -fm  echo "==================================================="} > ~/diskinfo.txt 2>&1 echo "Disk information has been saved to ~/diskinfo.txt" and load diskinfo.txt in a memo? Needs sudo. You can also use Tprocess to run parted, inxi and lsblk to gather the information. You have to install inxi, but it is in the apt repository. parted and lsblk do not need installation. Of course you can also obtain all this information by using fpsystem and fpioctl calls but imho that is not worth it. ---------------------------------------------------------------------- MarkMLl · 2024-12-03 13:15 Quote from: pascalbythree on December 03, 2024, 01:14:51 pmDoes not work sufficient What do you mean? Did you try it? What is "not sufficient"? MarkMLl ---------------------------------------------------------------------- pascalbythree · 2024-12-05 13:13 i mean is there a other disk size and disk free function/procedure without process executing? it runs in a loop each second.. ---------------------------------------------------------------------- MarkMLl · 2024-12-05 15:47 You've already been pointed at some procedures in SysUtils. Why are they inadequate for what you're trying to do? MarkMLl ---------------------------------------------------------------------- pascalbythree · 2024-12-08 14:24 Check this is my RPI MOD working as network attached storage. As you can see there are 2 displays from 12x2 characters at the front. You can also see my Raspberry 5 mounted in the enclosure. simple: Does anybody have a name of a disk pack to finish of the ARM coding to my displays? Without polling other process execution. Or does it not exists? Greets, Wouter PS: It also comes with a HDMI cable to show full screen graphs of the utilization. There is still 1 etch to go, seeing the space in the bottom left corner. It would also be be neat to show the read and write rates MB/s on the display. ---------------------------------------------------------------------- MarkMLl · 2024-12-08 18:11 Quote from: pascalbythree on December 08, 2024, 03:24:50 pmsimple: Does anybody have a name of a disk pack to finish of the ARM coding to my displays? What do you mean? DEC RP04 was a disk pack... is that what you're asking? MarkMLl ---------------------------------------------------------------------- pascalbythree · 2024-12-09 09:07 I mean a Lazarus component suite for disk handling. ---------------------------------------------------------------------- MarkMLl · 2024-12-09 09:47 Quote from: pascalbythree on December 09, 2024, 10:07:30 amI mean a Lazarus component suite for disk handling. You open files, write to them, and close them. Is that what you're asking? Tell us accurately what you're looking for and somebody might be able to help. but we're not mind readers. MarkMLl ---------------------------------------------------------------------- cdbc · 2024-12-09 10:43 Hi @pascalbythree: I think you're barking up the wrong tree... What would make you think, that someone would put low-level disk IO-operations from the kernel and RTL level, into a high-level framework like the /lazarus/ component framework?!? The functions/procedures, structures, kernel-calls & signal-handlers are all there in FPC, for you to use as you see fit ...but alas, it entails work for *you* to make it all happen, *no-one* is giving you more than that! If you feel like it and really need it, you'll figure it out ...and then /hopefully/ share your findings with the rest of us. In short: Do it yourself! Regards Benny