I'm not quite sure what you meant, but gparted is for creating/deleting/resizing partitions. If you want to recover your partition table, the command is gpart which is "guess partition". If the code you posted is from gpart as opposed to gpartED, then you are using the right program.
You will want to back up your mbr before doing any of this. BTW, you might have better luck using the gpart from SystemRescueCD. Just add ".com" to that, download and burn to disc from another machine. It's a quick booting live Linux for rescuing problem computers.
Backup your mbr by doing this:
Code:
sudo dd if=/dev/xxx of=/dev/yyy/myTrashedHDD.mbr bs=512 count=1
Where xxx = something like hda or sda or sdb for 1st IDE HDD, 1st or 2nd sata HDD respectively, and yyy = a USB flash drive or some other HDD that doesn't have partition problems. And of course, you have to save this info in a file or it will wipe the mbr of the drive where you put it. Hence the filename myTrashedHDD.mbr or whatever you like. If you ever need to restore the mbr from that file, you simply switch the devices on the if and of parameters.
If you don't know what the device name is for your HDD, just type:
And that will list your hard drives.