'Mount device to path'

def mount_device(self, device, path):

    self.ssh.remove_lines_from_file('/etc/fstab', path.center((len(path) + 2)))
    master_fstab = self.ssh.remote_file('/etc/fstab', mode='a')
    master_fstab.write(('%s    %s    auto    noauto,defaults    0    0\n' % (device, path)))
    master_fstab.close()
    if (not self.ssh.path_exists(path)):
        self.ssh.makedirs(path)
    self.ssh.execute(('mount    %s' % path))
