LOL. The Lone Linux user at DAL.
Quote:
|
I have been trying for several days to figure out how to restore data from a reformatted hard drive
|
Which wasn't backed up from reading
Quote:
|
Finally I found a program called TestDisk and PhotoRec
|
Because test disk is for trying to put back together fragmented data from a formatted drive. Man , I have never had to do what you are trying to accomplish. I back up what I want kept on external Hardrive whenever I need to resize, reformat, or delete partitions in Linux.
I have made numerous Live USB Linux Pendrives from Ubuntu to Puppy Linux. Knoppix I kinda stay clear of on Pendrives but I keep A Knoppix Live CD handy just because I can.
I am kinda confused here. Why do you need a Live USB to run Test Disk and PhotoRec. You can install them running a Live CD. They won't stick on a reboot though whether live USB or CD because Live Distros aren't persistent Installations. Is it because the computer you are trying to recover from has no CD or DVD drive?
If it was me. I would burn and boot a UBUNTU 8.04 LTS Live CD. I would connect up said computer via Land Line before booting up said computer from Live Ubuntu 8.04 cd. I would go and make sure I was properly connected to the internet first. Then I would open Synaptic Package Manager under Administration and to be on the safe side I would install or check to make sure they are installed
ntfs3g or ntfs-3g (I can't remember which at the moment) It is for reading windows files in Linux in case you are trying to recover windows files.
Then do a install of Test Disk while running Live. I assume you have looked at Test Disk website on how to run it and how to point it to the partition you wish to recover. I would try it alone first before trying Photo Rec.
If no satisfaction running Test Disk. Then Install and try Photo Rec. You can install Photo Rec right after you install Test Disk. Just DON"T REBOOT THE COMPUTER after installs. You will lose any changes with a reboot. OK?
Plug in the external Drive of your choice(Pen drive,SD Flash, External IDE or Sata), Formatted as FAT32 (works for ntfs) for starters unless you have a different file system like EXT3 or Reiserfs or something exotic that you are trying to recover from the formatted partition/drive you are trying to recover from. And then dump whatever Test Disk or Photo Rec recovers to that external drive. You can format external drive(before you dump recovered files to it) also to whatever file system you wish to use running gparted in Live mode session also.
You got a can of worms to deal with from what I have read so good luck.
Let me know if a Live USB is your only alternative here. I will try and coach you thru making a live USB, (you shouldn't have to install anything to hardrive on computer you are trying to fix)You will need 2 external drives. One for installing Live Iso to to run in computer.
Another for collecting data you are trying to save.
I have the Linux version of Unetbootin on My Ubuntu Desktop(but I am on my IBM Laptop running Antix 8.2 which I am responding with right now). I do know that my version allows the downloaded live iso to go right to the USB stick and install syslinux as the boot loader. I will post a screenshot of it later to show what I mean. I am out of town at the moment so give me some time to get back to you when I get home.