if it's the partition table itself that has been damaged and not file information contained inside the partition, type man gpart in a console (command prompt) and read the documentation on the gpart command.