Score:0

How to recover centos root data after change in formatting type?

cn flag

To better explain what is wrong now with my harddisk let me tell you the series of events:

I was trying to expand a CentOS root partition. In order to do that I first tried to unmount and remove the home partition (where the free storage was avaialble) after data backup. I was able to unmount the partition but facing some issues while removing the home partition.

Frustrated me, despite all the warnings that an XFS file system can not be shrunk, I tried lvreduce on home partition thinking that it will produce some error. But it did not. So now I tried expanding the root partition to see what happens and ended up corrupting the both partitions. I was receiving Invalid magic number in superblock error message while mounting.

I was able to xfs_repair home partition but there was some permission issues when trying the same on root. Meanwhile I tried some solution on some blog online and accidentally changed the partition type to ext4 and now I can access the root partition but there is no data in it.

Is there anyway I can recover the data in root partition now? Any help would be appriciated.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.