def newDisk(device): """Return a Disk object for this Device. Read the partition table off a device (if one is found).""" from _ped import disk_new peddisk = disk_new(device.getPedDevice()) return Disk(PedDisk=peddisk)