Changes

Jump to: navigation, search

OPS435 Python Assignment 2 C

673 bytes added, 00:32, 3 April 2018
Overview
= Overview =
In order to use a physical storage device (e.g. Hard Disk, USB Flash memeory, SSD, etc.), the first step is to create partition(s) on it. There many different ways to partition a physical storage device. The two most common partition schemes used on Intel based micro-computer systems are MBR and GPT. Detail about the MBR partition scheme can be found at [httphttps://en.wikipedia.org/wiki/Master_boot_record here], and GPT partition scheme can be found at [httphttps://en.wikipedia.org/wiki/GUID_Partition_Table].
On most Linux systemsystems, fdisk or parted can be used to create, view, and manage MBR and GPT partition. The task for this assignment is to write a python module which contains the following functions:* part_scheme() - which when called with a valid physical storage device name, will return the partition scheme used on the device. The return value should only be "None", "MBR", or "GPT"* mbr_part() - which when called with a valid physical storage device name, will return all the partitions (primary, extended, and logical) found on the device.* gpt_part() - which when called with a valid physical storage device name, will return all the partitions found on the device.
= Resources =
1,760
edits

Navigation menu