Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 14520  / 3 Years ago, sun, october 31, 2021, 8:18:44

I am new to Linux and Ubuntu. I mistakenly placed my backup into the /tmp folder and now when I try to move those files to /home using cp -r, I lost everything in my /tmp.


The command I used was:


cp -r /tmp /home

Please help me recover my files.


More From » 12.04

 Answers
1

Try to use some recover tools like Testdisk or PhotoRec .


TestDisk can recover lost partitions of virtually any filesystem. PhotoRec can recover files of most types, including most picture and video formats. PhotoRec can be used on existing partitions, or can be used to recover files on deleted partitions without having to recover the underlying partitions.


Possible setups for recovery include:


Recover the files to a separate hard drive.
Recover the files to a networked storage drive.
Recover the files to a separate partition on the same hard drive.
Image the hard drive using a tool like ddrescue and recover files using only one partition.

Download them here, both tools are in the same package.


Install the package and try your luck, I hope you can recover your lost files.


Reference


[#25116] Monday, November 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
suitman

Total Points: 487
Total Questions: 105
Total Answers: 98

Location: India
Member since Wed, Aug 4, 2021
3 Years ago
;