def get_partition(string_):
    """
    Return the partition portion of a device name (mount style, or udisksctl style).

    :param string_:
    :return:
    """
    if "block_devices/" in string_:
        return string_[len("block_devices/"):]
    elif "/dev/" in string_:
        return string_[len("/dev/"):]
    else:
        return string_