def get_unmounted_partition_list(root_part, job=None, min_blocks=0, filter_func=None, exclude_swap=True, open_func=open):
 partitions = get_partition_list(job=job, min_blocks=min_blocks, filter_func=filter_func, exclude_swap=exclude_swap, open_func=open_func)
 unmounted = []
 for part in partitions:
  if ((part.device != partname_to_device(root_part)) and (not part.get_mountpoint(open_func=open_func))):
   unmounted.append(part)
 return unmounted

def get_unmounted_partition_list ( root_part , job = None , min_blocks = 0 , filter_func = None , exclude_swap = True , open_func = open ) : partitions = get_partition_list ( job = job , min_blocks = min_blocks , filter_func = filter_func , exclude_swap = exclude_swap , open_func = open_func ) unmounted = [ ] for part in partitions : if ( ( part . device != partname_to_device ( root_part ) ) and ( not part . get_mountpoint ( open_func = open_func ) ) ) : unmounted . append ( part ) return unmounted
return a list of partition objects that are not mounted .