1,760
edits
Changes
→Sample Python codes
== Sample Python codes ==
The following sample python code reads and display primary partition on a given physical storage device with MBR partition scheme:
<codepre>
#! /usr/bin/python
# read and display partition info
except IOError:
print "File missing."
</codepre>
= Resources =