Get drives and partitions list (Linux)

cantabile cantabile.03 at wanadoo.fr
Mon Jun 13 02:12:22 CEST 2005


Hi, I'd like to get drives and partitions (and their size too) with
python under Linux. So far, I thought of reading /proc/partitions but
maybe i could use fdsik also ?
How would I do that in python ?

Thanks for your help (newbie here :) )



More information about the Python-list mailing list