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.
Hi
I have accidentally deleted my following directory (Shift+Del):
~/Text/Books/Downloaded
which contains some valuable downloaded books.
I tried 'photorec' to recover my data but it starts to recover everything and I don't want to recover every deleted item.
So, is there a software which can only look under:
~/Text/Books
or
~/Text
and recover only needed files?
Regards
Isn't "testdisk" and "photorec" same thing? I am using Manjaro Linux and when I queried for "photorec" it gave me "testdisk" in search results. So I installed and tried "testdisk" but it starts to restore everything, instead of specific directory.
PS: I want recovery software to only look under ~/Text/Books.
So, is there a software which can only look under:
~/Text/Books
or
~/Text
and recover only needed files?
No.
Photorec allows you to nominate specific file types (pdf or epub ...) and only restore them. But it will look for all of that type. It's up to you to rename them appropriately as that data is no longer aavailable unless the files are tagged and you can extract that for a rename script.
Quote:
I have accidentally deleted my following directory (Shift+Del):
Seriously - how is that in any way "accidental" ?.
Isn't "testdisk" and "photorec" same thing? I am using Manjaro Linux and when I queried for "photorec" it gave me "testdisk" in search results. So I installed and tried "testdisk" but it starts to restore everything, instead of specific directory.
PS: I want recovery software to only look under ~/Text/Books.
No, although the two applications come bundled in the same package, called testdisk.
I would suggest you recover files to an external device if possible to avoid over-writing your existing deleted files, until you have recovered as many as you can.
I wonder how many on this list use VFAT for this sort of thing. Common Linux inode filesystems with indirect inodes and extents aren't subject to recovery like that AFAIR.
Attempts have been made to parse any uncommitted journal entries to back-track into the filesystem space, but with apparently limited success.
Did you read the article for which I provided the link?
Yes, I have gone through it and also watched the embedded video. Photorec has an option to select filetypes (like pdf) but then it starts to recover every pdf file. I got pdfs even from last year and the deleted data so huge that I don't have capacity to restore all the files.
Yes, I have gone through it and also watched the embedded video. Photorec has an option to select filetypes (like pdf) but then it starts to recover every pdf file. I got pdfs even from last year and the deleted data so huge that I don't have capacity to restore all the files.
The article isn't about photorec. The article is about testdisk.
The article isn't about photorec. The article is about testdisk.
You need to read it again.
Yes, I know. testdisk is also installed along with photorec. However, it has different options like "undelete a partition", "Create an image", "Partition Analysis". I have checked these options. Am I missing something here? Isn't testdrive for whole partition/disk, instead of individual files?
Yes, I know. testdisk is also installed along with photorec. However, it has different options like "undelete a partition", "Create an image", "Partition Analysis". I have checked these options. Am I missing something here? Isn't testdrive for whole partition/disk, instead of individual files?
If you read the article, you will see that testdisk also has an Advanced mode which allows you to select individual files to recover (if it is possible to recover them). You can also select recovery of all the files in a directory.
Edit: Note that in the version of testdisk I have, 7.0, "Undelete" in the article is now "List".
If you read the article, you will see that testdisk also has an Advanced mode which allows you to select individual files to recover (if it is possible to recover them). You can also select recovery of all the files in a directory.
Edit: Note that in the version of testdisk I have, 7.0, "Undelete" in the article is now "List".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.