programmatically getting mounts?

Adam Welch adam.welch at epok.net
Wed Sep 21 09:11:54 PDT 2005


On Wed, 2005-09-21 at 11:00 -0400, N.J. Thomas wrote:
> Short of grepping the output of mount or df, what is the best way to
> programmatically get a list of mounted filesystems?
> 
> I glance at sysctl shows nothing, and mounting linprocfs doesn't give a
> very "Linux-esque" listing -- just processes.
> 
> thanks,
> Thomas
> 

Try "man -S3 getmntinfo", because you said "programmatically".

,Adam



More information about the freebsd-questions mailing list