Make mounting partitions more generic.