Fixed code to mount partitions from device