You are not logged in.
Pages: 1
Hi dear all!
I replaced one file in ext4. And I can't find easy way to recover it. Can you help me? How can i recover it by knowing the path?
Offline
https://bbs.archlinux.org/viewtopic.php?pid=522648 - no easy way, I'm afraid.
If it's a text file and you just made a couple stupid changes, maybe you can undo them using you editor's 'undo' function.
Last edited by karol (2011-02-22 19:28:32)
Offline
I need to recover *.po file that Photorec doesn't support. Another recovery apps isn't suitable as for me. And I closed my editor.
Last edited by SkyTod (2011-02-22 19:35:19)
Offline
I don't know what editor you use and what settings, but I can edit a file, save it, close vim, reopen it and undo changes.
Offline
Even when you use mv?
this is another kind of situation.
Last edited by SkyTod (2011-02-22 19:43:49)
Offline
Even when you use mv?
vim creates backup files. foo~ is a backup of foo. Even if the original foo is gone - removed, the content replaced etc. - but the foo~ is still there, why not 'vim foo~'?
Offline
Because I've made:
mv file myfile
May we forget about editors and go ahead? Please. I really want to back it.
Offline
https://bbs.archlinux.org/viewtopic.php … 57#p895257
You didn't say what editor you use.
Yes, even after 'mv file myfile' you would have myfile~ with the last saved contents of myfile.
Sorry I can't help you.
Offline
Virtaal.
So is there no way to recover my file? I don't believe. I believe I don't know this way.
Offline
If this is a text file and you remember part of it, you can use grep on the partition.
Offline
*chuckles*
One of the things I love about linux ... "you asked for it - you got it"
None of this "are you sure you wanna do it (yes/no)?" "really, are you quite sure (yes/no)?" *lol*
Yup - you make mistakes - but usually it hurts so much you only do it once!
Mind you - I just hate all these '~'-files all over the place, so the first thing I do is to disable it!
He he he - always fun to live on the 'edge' ...
Last edited by perbh (2011-02-23 16:18:03)
Offline
If this is a text file and you remember part of it, you can use grep on the partition.
What exactly, huh?
*chuckles*
One of the things I love about linux ... "you asked for it - you got it"
None of this "are you sure you wanna do it (yes/no)?" "really, are you quite sure (yes/no)?" *lol*
Yup - you make mistakes - but usually it hurts so much you only do it once!Mind you - I just hate all these '~'-files all over the place, so the first thing I do is to disable it!
He he he - always fun to live on the 'edge' ...
Yeah-yeah-yeah, I made a mistake, my bad. And there is no problem in fact with this part. But! The tear is modern journaling file systems can't be repeated as easy as it possible — it's pity.
Offline
stqn wrote:If this is a text file and you remember part of it, you can use grep on the partition.
What exactly, huh?
Something like:
sudo grep -a -C100 "blah" /dev/sda2
Offline
And will it find removed file? I tried — nothing.
Offline
And will it find removed file? I tried — nothing.
Hm... I've used it in the past to recover a deleted .config (kernel build options) file from an ext3 partition, but now when I try it with a test file in my /boot (ext4) grep doesn't find anything, even when the file isn't deleted... Not sure what's going on.
Offline
Pages: 1