use parted to discover disk size in wipe_metadata

new drives these days frequently exceed the 2 TB limit, which makes fdisk complain in various operations causing unexpected behaviour. This change uses parted to get the disk size for the wipe_metada function