Actually i have to rename the file, and i used rm command accidently
inplace of mv.
I need it immidiately, becuause it was my project of 2 months.
So Please help me immidiately, if there is way to recover it.
Thank's in advance.
--
Parveen Arora
www.royallinux.co.cc
--
Regards,
Nilesh Govindarajan
Facebook: http://www.facebook.com/nilesh.gr
Twitter: http://twitter.com/nileshgr
Website: http://www.itech7.com
VPS Hosting: http://www.itech7.com/a/vps
Hello Everyone,
I have lost my very important data
which was the backup of my site bu mistake with rm command.
Actually i have to rename the file, and i used rm command accidently
inplace of mv.
I need it immidiately, becuause it was my project of 2 months.
So Please help me immidiately, if there is way to recover it.
Thank's in advance.
--
Parveen Arora
www.royallinux.co.cc
--
LUG@IITD - http://tinyurl.com/ycueutm
--
Parveen Arora
www.royallinux.co.cc
Then by luck, you may be able to recover it using debugfs.
Run debugfs /dev/<hdd-device> as root. It will give you a prompt. At the
prompt, type lsdel and press enter (keep your fingers crossed & pray hard).
If it lists some inodes, use the undel command (of debugfs) and give it
a temporary path.
See man debugfs for more info.
undel <inode> (include the angle brackets).
it was in my Downloads folder, should i give path ~/Downloads like this?
--
Parveen Arora
www.royallinux.co.cc
No, don't do that. Just recover the inodes.
Actually I've never used it to recover deleted files and hence I don't
know much about it.
As per the man page, it suggests that you should undel all inodes and
then run e2fsck to get back the files in the lost+found directory.
And yeah, I forgot to mention that this works ONLY WITH ext*.
One more thing, run debugfs -w instead of just debugfs. Because the
latter mounts the FS read only. Also ensure that a lost+found directory
exists (usually it is created automatically by e2fsck if it doesn't exist).