Add the save_partitions function to save a partition or all the partitions on a disk