I working on Ubuntu 11.10 I have used GParted for formatting my pendrive (2 GB) but unfortunately I have lost the partition table for it. I unable create it using GParted . How do I create a new partition table?
You should be able to restore it with testdisk. Testdisk is in the Ubuntu repositories, install it with software center or apt-get
Testdisk is a command line utility, there is a step-by-step guide (with pictures) here