There is a lot of missing information here:
What was the filesystem type of the partition that you messed up? There are different recovery options for different filesystems.
How are you trying to mount the partition?
What is the error message produced by the mount failure?
There is also missing context about your mistake:
Apart from adding the partition to a volume group, did you extend a volume to include it?
Did you also resize the filesystem of that volume to include the additional space?
If so, what filesystem type was it? And, most importantly, was it in use?
If you are really lucky, the LVM superblock may have just overwritten the filesystem superblock. In that case you might be able to bring the filesystem to a more consistent state by forcing fsck
to use one of the backup superblocks - provided that your filesystem actually supports that. You'd still lose data, but you'd probably also save quite a bit.
If you are unlucky, then you have already written stuff all over your partition and recovery will be a long, unpleasant and less than effective process.
PS: Before you try anything, use dd
to keep an image of your partition. That ensures that you can reverse any failed attempt to repair your filesystem without making things worse.
...I can't mount
: It might help if you mentioned how you are trying to mount the partition and what the error message is, along with some information, such as the filesystem type of the partition.