This question already has an answer here:

I am using 1 TB Hard disk containing about 300 GB data. Once upon a time I have connected it to the D2H set top box and it was asking to format the disk by default to record the TV programs. I had removed the same immediately from the D2H box. Now it is not readable in my Laptop.

I have changed the alphabet via check disk/disk manager and could see the HDD. It is spinning also and working well but ask to format the disk whenever to connect my Laptop. Hence I could not see my data files.

Kindly guide me to recover the data from the disk without formatting it. Please suggest the same as it is having precious data and some old memories.

marked as duplicate by DavidPostill, Moab, fixer1234, nc4pk, mdpc Feb 12 '16 at 1:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Get yourself a 1TB or larger disk drive and (if you don't have one), a USB key > 1 gig. Ideally the hard drive should be bigger then 1TB, but if not, make sure it is a different model - ideally a different make. You could use a USB3 disk.

Ensure that both the damaged and new disks are in the machine. Create an Ubuntu LiveUSB install on the USB key and boot from that.

Identify each of the disks in the system - IT IS VERY IMPORTANT YOU GET THE ORDER OF THE DISKS THE CORRECT WAY ROUND, OTHERWISE YOU WILL OVERWRITE YOUR DATA IRRECOVERABLY. There are a few ways of doing this - doing an hdparm -i /dev/sdX (where X is a - c) will help identify the disks.

Assuming your damaged disk is /dev/sdb and your new disk is /dev/sdc, use ddrescue to do a bit copy of the data from the old disk to the new disk. From a shell, the command will be sudo ddrescue --force /dev/sdb /dev/sdc /tmp/progress.log (If ddrescue does not exist on the distro, sudo apt-get install gddrescue to get the package). THIS WILL MAKE AN EXACT COPY OF YOUR FAULTY DRIVE.

Run testdisk to attempt to recover your partition information on the copy of the drive. (if the package needs to be installed, sudo apt-get install testdisk). If this recovers your partition information and gets you working you are done.

If it doesn't, you have a struggle on your hands. Repartition the new disk (or use another disk) so that it has ample storage space, and then run photorec on the old disk - this will go through the disk looking for files it can recover. Unfortunately a lot of stuff will be missing, and what you do get will have incorrect names, but you will probably be able to salvage a fair number of documents, photos, mp3's - depending on how fragmented the disk is - but this will be a VERY time consuming process.


The partitions / partition table is messed up by the DTH box.

As long as the DTH or you have not performed any major disk/ partition/ file system level operations on the disk, you could possibly recover the partitions and the data that was present within.

Hopefully, your Drive label changing etc did not do too much damage. Avoid such actions without proper knowledge.

You will need to use tools that support Partition Table & Partition recovery.

If you can't find such tools, let me know and I'll try to look up some of them for you.

Also, do yo know if had formatted the drive originally using MBR or GPT?

Not the answer you're looking for? Browse other questions tagged or ask your own question.