List drives on linux lazarus / 32-Linux ---------------------------------------------------------------------- wotanica · 2010-10-01 20:31 Does anyone have a function to list the drives (mounted volumes) on a linux system? In windows you can use the "GetLogicalDriveStrings()" API function, and on the Mac you can use normal pascal to list the drives in /Volumes. Is it as simple as using findfirst/next/close on the /mnt folder? ---------------------------------------------------------------------- theo · 2010-10-01 20:49 Have a look at /etc/mtab for ex: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Memo1.Lines.LoadFromFile('/etc/mtab'); ---------------------------------------------------------------------- wotanica · 2010-10-01 22:14 Quote from: theo on October 01, 2010, 10:49:09 pmHave a look at /etc/mtab for ex: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Memo1.Lines.LoadFromFile('/etc/mtab');               Thanx! Will check it out! ---------------------------------------------------------------------- mica · 2010-10-02 08:41 cat /proc/partitions or as root fdisk -l or parted -l