tag:blogger.com,1999:blog-5528215304509586710.post334538666249258866..comments2021-07-26T06:21:16.128-07:00Comments on Technology ...: Recover deleted file on LinuxVishnu Agarwalhttp://www.blogger.com/profile/03540385875379293392noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-5528215304509586710.post-55155351634182066432012-01-30T02:20:34.258-08:002012-01-30T02:20:34.258-08:00This comment has been removed by a blog administrator.arumugamhttps://www.blogger.com/profile/03474668921039249230noreply@blogger.comtag:blogger.com,1999:blog-5528215304509586710.post-60996492491496070382011-12-06T21:44:02.008-08:002011-12-06T21:44:02.008-08:00Hi Nishant,
Thanks for trying your hands on it.
A...Hi Nishant,<br />Thanks for trying your hands on it.<br /><br />As Discuss in my previous comment as well, If file is held by a process, then its recovery is 100% guaranteed & simple.<br /><br />However, I believe the file you created, no process was holding it, so pointer was released and lsof (list of open files) command didn't give any output.<br /><br />Try to delete e.g. access_log while apache is running, and follow the steps.<br /><br />Contact me in case you need more insight in that. I can give you more examples.<br /><br />Regards,<br />Vishnu AgarwalVishnu Agarwalhttps://www.blogger.com/profile/03540385875379293392noreply@blogger.comtag:blogger.com,1999:blog-5528215304509586710.post-90892059626806793792011-12-06T21:39:08.376-08:002011-12-06T21:39:08.376-08:00I just created a linux file and then deleted it an...I just created a linux file and then deleted it and then used lsof command. It did not give any output.<br />gvim aaa<br /><br />rm aaa<br />lsof | grep aaa<br /><br /><br />This did not give any outputNishanthttps://www.blogger.com/profile/08079698828844578078noreply@blogger.comtag:blogger.com,1999:blog-5528215304509586710.post-85374274799959073702011-11-23T00:24:25.278-08:002011-11-23T00:24:25.278-08:00@vishal If file is held by a process, then its rec...@vishal If file is held by a process, then its recovery is 100% guaranteed & simple.<br />However, If it is not, still file is not lost permanently. Before the shutdown, if that memory block is not overwritten, there are some chances of recovery.<br /><br />Let me know if you come across some of the tool / utility or set of commands.Vishnu Agarwalhttps://www.blogger.com/profile/03540385875379293392noreply@blogger.comtag:blogger.com,1999:blog-5528215304509586710.post-50463021298829784982011-11-22T23:37:01.385-08:002011-11-22T23:37:01.385-08:00But what if the file is not being held back by an ...But what if the file is not being held back by an process? Does that means file has been lost permanently?Vishal Rajhttps://www.blogger.com/profile/12571397184320565574noreply@blogger.com