Forum > Linux

Api/component pack for Raspbian Linux, to use disk status.

(1/3) > >>

pascalbythree:
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:
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:
Does not work sufficient

Does anybody have a better unit?

Thaddy:

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#!/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:

--- Quote from: pascalbythree on December 03, 2024, 01:14:51 pm ---Does not work sufficient

--- End quote ---

What do you mean? Did you try it? What is "not sufficient"?

MarkMLl

Navigation

[0] Message Index

[#] Next page

Go to full version