'Create a new Mount instance
:param image: instance of nova.virt.image.model.Image
:param mount_dir: path to mount the image at
:param partition: partition number to mount
:param device: mounted device path'

def __init__(self, image, mount_dir, partition=None, device=None):

    self.image = image
    self.partition = partition
    self.mount_dir = mount_dir
    self.error = ''
    self.linked = self.mapped = self.mounted = self.automapped = False
    self.device = self.mapped_device = device
    self.reset_dev()
