Getting Linux partition info programmatically

python dev python.dev.9 at gmail.com
Fri Sep 12 14:29:34 EDT 2008


Hello everyone,

I am trying to get a list of all the partitions (along with their respective
file system types) listed in the /media directory.  Does anybody know if
there is a way to do this using Python, or do I have to get this information
by parsing the output of a Linux command?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080912/362ed49d/attachment.html>


More information about the Python-list mailing list