LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Partition recovery help (https://www.linuxquestions.org/questions/linux-newbie-8/partition-recovery-help-4175636172/)

luke2 08-12-2018 08:08 AM

Quote:

Originally Posted by pan64 (Post 5890848)
so you need to find another solution. In your original post you wrote you created a disk image and copied to somewhere else. How could you do that at all?

I'm on ubuntu live with my usb disk. I've created that image using disk utility. It was saved on another partition of my hard drive.

luke2 08-12-2018 11:17 AM

Just decided to format the partition.
Are there any chance to get back my data from formatted partition?

mrmazda 08-12-2018 11:27 AM

Quote:

Originally Posted by luke2 (Post 5890591)
I have dual os win10 64bit and ubuntu 18.04 64bit laptop. But ubuntu installed partition is corrupted and hidden from the file manager. It won't appear on gurb menu. So I created a disk image using ubuntu live disk utility and copy to another partition.

Disk Image of sda6 (2018-08-11).img

Please tell me how can I extract this .img file to another ntfs partition. It's called sda3.

How I would have made the image:
1-mount sda3:
Code:

mount -t ntfs-3g -o rw /dev/sda6 /mnt
2-check for enough room to create the image:
Code:

df /mnt
3-create the image file:
Code:

ddrescue /dev/sda6 /mnt/bkup6.img
Does this sound like what you did? Was sda3 actually formatted NTFS, and did it have enough freespace to fit a 100GB file? Then you should have been able to proceed as michaelk explained.

mrmazda 08-12-2018 11:28 AM

Quote:

Originally Posted by luke2 (Post 5890902)
Just decided to format the partition.
Are there any chance to get back my data from formatted partition?

If you were the FBI, maybe. Otherwise, no.

michaelk 08-12-2018 11:30 AM

You have to have enough free space on the destination filesystem that is bigger than the size of your source which is 100GB.

Have you tried mounting the partition from the live CD yet? Yes but maybe not entirely. testdisk and photorec are two good utilities for data recovery.


All times are GMT -5. The time now is 10:47 AM.