In case you accidentally delete or alter a partition, it can be recovered by using TestDisk. If you are using Ubuntu Linux, its a good idea to keep recovery tool installed in the system.
TestDisk is a partition scanner and disk recovery tool that can recover lost partitions and recover disk and data.