1,760
edits
Changes
→Sample Python codes
== Sample Python codes ==
The following sample python code reads and display displays primary partition partitions on a given physical storage device with MBR partition scheme:. Please note that this python script does not check for extended partition and does not try to extract the information for logical partitions even they exist.
<pre>
#! /usr/bin/python