Is it possible to run "mount /proc" from FPC lazarus / 32-Linux ---------------------------------------------------------------------- cdbc · 2025-12-13 13:31 Hi Well as the title says -- is it?!? ...and more to the point HOW  tried: · if RunCommand('mount',['/proc'],aResult) then ... · if RunCommand('/bin/sh',['mount','/proc'],aResult) then ... Both to no avail...  N.b.: Yes I'm running the app as root ~ su TIA Regards Benny ---------------------------------------------------------------------- Thausand · 2025-12-13 13:42 Quote from: cdbc on December 13, 2025, 02:31:30 pm· if RunCommand('mount',['/proc'],aResult) then ... There no path then have use full path mount. also have one parameter (have need 2) ? https://www.geeksforgeeks.org/linux-unix/how-to-mount- and-unmount-drives-on-linux/ Quote· if RunCommand('/bin/sh',['mount','/proc'],aResult) then ... man sh Have option -c, then have single parameter but have combine all argument for -c. Have look aResult and have error. PS: https://wiki.freepascal.org/Executing_External_Programs#(Process.) RunCommand example first, make replace bash and have use sh (and mount and no echo but echo good for test) ---------------------------------------------------------------------- Kays · 2025-12-17 18:35 I suppose you don’t just want to mount /proc and that’s your entire program. You probably want to access some files. Beside the issue that a plain mount /proc refers to /etc/fstab (which may or may not contain an appropriate entry), have you looked into whether e. g. the baseUNIX unit already contains a function exposing the information you seek in a structured format? This would eliminate the design flaw that your program needs elevated/mount privileges (unless you’re doing other root stuff, too). ---------------------------------------------------------------------- dbannon · 2025-12-24 05:16 Are you on an (linux) OS that does not automatically mount /proc ?  I have not come across one to be honest. Hmm, PC Linux .... Davo ---------------------------------------------------------------------- cdbc · 2025-12-24 08:43 Hi Davo We've had a slight /glitch/ in 'grub2' that managed to somehow suddenly 'unmount /proc', so we've had to step back a version of 'grub2'... But it's a lengthy process to debug / test an app, when you don't know when the condition that should trigger it, actually happens  ...if it does happen at all  Happy holidays mate, to you and you family \o/ Regards Benny