LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to revert back fdisk changes ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-revert-back-fdisk-changes-634466/)

p_s_shah 04-10-2008 03:18 PM

How to revert back fdisk changes ?
 
Hello all,

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.

pljvaldez 04-10-2008 03:42 PM

I'm not sure if it works restoring LVM, but in the past I've used testdisk to restore partition tables with success.


All times are GMT -5. The time now is 05:37 PM.