Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a drive which is partially working.Few files were working fine I copied them to another drive using ubuntu. But When I copied other files ,ubuntu gave me I/O errror.
I used ddrescue .Its currently running for two days but at very low speed (It's in B/s).
Source drive is exfat based.
Destination drive is ntfs based.
Both drives are of same comapny "WD" ,same size 1TB.
I even tried to run it in reverse order but still speed is too low.It will take forever to complete.
Am I doing something wrong?
Should I used another tool for backing up the files ,I mean other than DDRESCUE?
Should I improvise ddrescue command by adding some options?
Should I used another linux distribution for backing up files fastly?
"-r 3" will slow it down more on bad sectors - maybe leave it out. If the drive has a lot of errors, it will still be slow - wait for it to finish. Can take days.
"-r 3" will slow it down more on bad sectors - maybe leave it out. If the drive has a lot of errors, it will still be slow - wait for it to finish. Can take days.
No I have started without any advice from experts.
I have a drive which is partially working.Few files were working fine I copied them to another drive using ubuntu. But When I copied other files ,ubuntu gave me I/O errror.
I used ddrescue .Its currently running for two days but at very low speed (It's in B/s).
Source drive is exfat based.
Destination drive is ntfs based.
Both drives are of same comapny "WD" ,same size 1TB.
I even tried to run it in reverse order but still speed is too low.It will take forever to complete.
Am I doing something wrong?
Should I used another tool for backing up the files ,I mean other than DDRESCUE?
Should I improvise ddrescue command by adding some options?
Should I used another linux distribution for backing up files fastly?
What are you tring to achive? If you ddrescue a partition to an image on another drive the exact same size it's likely that the process will interrupt at 99something percent due to few disk space.
To just rescue files i can recommend PhotoRec, a tool from the package 'testdisk'. It will deliver all files it can rescue sorted by type. Some broken files might only be available in fragments but the data will be there.
To just rescue files i can recommend PhotoRec, a tool from the package 'testdisk'.
Thanks a lot for saving my future hard work.
I visited the website and tried to install but error occurred
Error when getting information for file “/home/jordan/Desktop/testdisk-7.2-WIP/INSTALL”: No such file or directory
how to install these testdisk-7.2-WIP.linux26.tar.bz2 file after extraction?
There is no Install file.
I read in the website that It is also available for windows, It will be easy to install .exe files, but will it be good idea?Will it be reliable and fast as compared to Ubuntu?
if using PhotoRec inside windows is not a good idea then how to install it in ubuntu?
I mean how to install testdisk-7.2-WIP.linux26.tar.bz2 file after extraction? I searched for this issue, most of the time they tell me use \configure then make and then sudo make install, but no such files are in the pacakage?
Thanks a lot for saving my future hard work.
I visited the website and tried to install but error occurred
Error when getting information for file “/home/jordan/Desktop/testdisk-7.2-WIP/INSTALL”: No such file or directory
how to install these testdisk-7.2-WIP.linux26.tar.bz2 file after extraction?
There is no Install file.
I read in the website that It is also available for windows, It will be easy to install .exe files, but will it be good idea?Will it be reliable and fast as compared to Ubuntu?
if using PhotoRec inside windows is not a good idea then how to install it in ubuntu?
I mean how to install testdisk-7.2-WIP.linux26.tar.bz2 file after extraction? I searched for this issue, most of the time they tell me use \configure then make and then sudo make install, but no such files are in the pacakage?
I don't think you have to build the package using 'make'. You said you were running ubuntu, right? Try searching for 'testdisk' using the package management GUI, if i remember correctly ubuntu uses synaptic package manager. Or just use
I don't think you have to build the package using 'make'. You said you were running ubuntu, right? Try searching for 'testdisk' using the package management GUI, if i remember correctly ubuntu uses synaptic package manager. Or just use as root from terminal
Thanks,installation is complete and I have also started the photorec .
But Will photorec be able to recover the file that already exists?
I learned that photorec is for recovering files that has already been deleted.Will it work in my case where files are not deleted ,i just need to move files from one drive to another?
Though I have started photorec, It is showing 4912hours remaining.0 files found yet.
I have a doubt I choose the media to recover,then it asked me to choose partition ,I choose HPFS-NTFS then it asked me "To recover lost files, PhotoRec needs to know the filesystem type where the
file were stored:"
1) [ext2/ext3] ext2/ext3/ext4 file system
2) [other] FAT/NTFS/HFS+/ReiserFS/...
I choose 2 [other], beacuse my source drive was formatted in exFat format. DID I CHOOSE CORRECT OPTION?
Photorec etal is aimed at a different situation - basically where files or partitions have been deleted, but haven't (yet) been over-written and are thus still retrievable by matching a template.
Where there is physical media failure as here, they are no more useful than cp or the GUI equivalents. And typically no faster than ddrescue, even where applicable.
Photorec etal is aimed at a different situation - basically where files or partitions have been deleted, but haven't (yet) been over-written and are thus still retrievable by matching a template.
Where there is physical media failure as here, they are no more useful than cp or the GUI equivalents. And typically no faster than ddrescue, even where applicable.
Does this mean I should Stop right here?
Should I stop photorec and move back to ddrescue?
Sorry, my bad it seems photorec needs you to be root to run.
(so be careful with the steps you take)
Quote:
Originally Posted by gkd
Thanks,installation is complete and I have also started the photorec .
But Will photorec be able to recover the file that already exists?
I learned that photorec is for recovering files that has already been deleted.Will it work in my case where files are not deleted ,i just need to move files from one drive to another?
Though I have started photorec, It is showing 4912hours remaining.0 files found yet.
I have a doubt I choose the media to recover,then it asked me to choose partition ,I choose HPFS-NTFS then it asked me "To recover lost files, PhotoRec needs to know the filesystem type where the
file were stored:"
1) [ext2/ext3] ext2/ext3/ext4 file system
2) [other] FAT/NTFS/HFS+/ReiserFS/...
I choose 2 [other], beacuse my source drive was formatted in exFat format. DID I CHOOSE CORRECT OPTION?
It will take at least as long as dd and like said it will deliver all recognized files sorted by type. So you'll get a drectory with subfolders "TXT", "JPG", "DOC" etc containing the rescued files.
If in doubt stop the process. With both drives are attatched to the system, what's the output of 'df -ah'?
As a general rule I always advocate that a disk that is suspected of being faulty should be stressed as little as possible. Take an image and work on an image of that image. If things mess up, take another image of the first image and try again.
ddrescue with a logfile as you are doing is the best way to get an image with least stress if the disk is failing. You can then try any of the forensic tools without worry of making the origin situation worse.
As a general rule I always advocate that a disk that is suspected of being faulty should be stressed as little as possible. Take an image and work on an image of that image. If things mess up, take another image of the first image and try again.
ddrescue with a logfile as you are doing is the best way to get an image with least stress if the disk is failing. You can then try any of the forensic tools without worry of making the origin situation worse.
That taken into consideration it would be good advice to use ddrescue the faulty 1TB drive to the healthy one and use photorec on the latter.
Quote:
Originally Posted by gkd
check syg00, Should I stop photorec?
What OS are you running photorec in? As said above if in doubt stop the process. Here are good step-by-step instructions on how to work with photorec.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.