How to revert back fdisk changes ?
I need an urgent assistance in following case :
I was suppose to create a new partition. I had two disks attached.
c0d0 and c0d1.
I run fdisk on c0d0 for creating new partition, but it showed " no free sectors", means all the space is occupied by previously created partitions.
Now, I run fdisk on c0d1, on printing partition table, it displayed nothing. I created a partition and commit the partition table. For making the changes affect.
On rebooting the system, System fails while mounting the filesystem. So, we just commented the line, and restart the system.
After rebooting, on checking we found that, the filesystem ( /opt ), which was creating problem was mounted on Volumegroup.
And we have a pretty good reason that we created partition on the disk, which was part of volumegroup.
Now the question is how we can revert back fdisk changes ?
Please reply asap.
I will ask other questions related to LVM, once the issue is resolved.