Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Very kind - Thank you Fiona for the links , hopefully if all else fails, I will be able to get a copy of the bad disk over to a good one and recover data.
It's intended in case of memory errors and bad sectors.
So you can have a try to recover your data.
Often it's depend on how many read errors your have.
Here is how I was able to begin an image of my bad disk to a good disk - it is still in progress, not yet finished so my fingers are crossed.
Hi ducklip,
The Rescue Remix is a barebones Gnu/Linux toolkit. It's very powerful, but it's not meant to be used by someone who needs a graphical interface.
For example, by running from a command-line environment, hotpluggable drives are not automatically set up to be accessed - you need to do that by hand.
But that's a big advantage to a recovery situation where another OS can detect a drive, try to mount it and then try to correct errors.
Most of the time, that only results in more data loss since the OS cannot understand that the filesystem it's trying to fix is on a black hole and data written to it is just going into nothingness not to mention throwing a bung of error messages back.
So, to answer your question, you need to do the following:
1- Boot the computer using the Rescue Remix with none of your recovery drives (destination and source) attached.
2- Type:
cat /proc/partitions and hit enter. It will show you what drives are there, example below- (If the "cat" command is not responding, you can try sudo lshw -C disk -short to show your drives.)
And it should run a comprehensive procedure to copy the data from the bad drive to the good. It will read all the good spots, and then return to the bad spots and try to read them backwards, splitting them apart when it needs to. It will recover the most amount of data in the least amount of time (in most situations).
That's the simplest way.
The only thing I would recommend that is a little more complicated is to write the log to a usb drive or a hard disk on the computer you are using.
Otherwise, that file will only exist in the computer ram while the Rescue Remix is running. If you reboot it is gone.
If you write the log to somewhere more permanent, you can always power off your computer (say it overheated or a short caused your computer to freeze (I see this a lot recovering data from older hardware) you will need to start over.
Starting over wastes less time if you use the log file and can pick up where you left off.)
So, if you want to do that, this is what you need to do before you start the procedure I previously listed above:
mkdir mnt (that just creates a folder in ram.)
sudo mount /dev/sda1 mnt (that mounts (attaches) the filesystem on the first partition of the first drive to the folder called mnt)
So now if you look in mnt - using the command below, you will see the contents of the filesystem
ls mnt ... (whole bunch of files you recognize)
So, continue the original procedure but use the following change - to begin the ddrescue
Now, your log file is on the filesystem on the first partition of the first had drive. If you want to use a USB drive, you can do the same, just lug it in, see what device it is and then mount it.
I think there is a good chance that this will work out. It may take hours or days to get an image of your drive, but that's not something you can really affect - the goal here is to get a good image. You only need one good read, not matter how long it takes.
Cheers and Good Luck!
Andy.
Last edited by ducklip on 28 May 2012, 16:39, edited 1 time in total.
UPDATE I had to restart ddrescue because of "error writing logfile, no space left on device"
I was told to reboot it an THIS TIME to write the log to a usb drive or a hard disk on the computer I'm using. Which was reccomended in the first place but I did'nt do it...
So I am trying again - hopefully it will work and I can better use testdisk and photorec on the new image!