Updated the wipe_metadata function. We now try to determine the size with both fdisk and parted. If they both fail, we print a message and wipe the entrire drive