how to get partition information of a hard disk with python

Tim Chase python.list at tim.thechases.com
Mon Oct 4 11:05:03 EDT 2010


On 10/04/10 09:33, Anssi Saari wrote:
> But can you really get all that for free, in python? in other words,
> is there a python API for all that? The stuff in /proc/partitions
> seems rather limited to me, although I have only vanilla partitions on
> my computers.

A similar question regarding reading partition-tables came up a 
while back, so you (or the OP) might be interested in the thread:

http://www.mail-archive.com/python-list@python.org/msg267375.html

where I threw together a little partition-reading code that 
should be fairly easy to modify.

-tkc





More information about the Python-list mailing list