<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/20061/Recover_Deleted_Files_in_EXT3_ext3undel</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2009, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Mon, 09 Nov 2009 04:22:41 GMT</lastBuildDate>
		<image>
			<url>http://www.osnews.com/images/osnews.gif</url>
			<title>OSNews.com</title>
			<link>http://www.osnews.com</link>
		</image>
		<item>
			<title>photorec</title>
			<link>http://osnews.com/thread?323112</link>
			<guid isPermaLink="true">http://osnews.com/thread?323112</guid>
			<description>Photorec is an awesome piece of software. Don't tell anyone else about it. ;-)</description>
			<pubDate>Wed, 16 Jul 2008 01:32:00 GMT</pubDate>
			<author>donotreply@osnews.com (mikesum32)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Nice!</title>
			<link>http://osnews.com/thread?323133</link>
			<guid isPermaLink="true">http://osnews.com/thread?323133</guid>
			<description>This will make my nast habit of holding shift when I delete something a little less drastic when I realize something important got selected. <br />
<br />
I know I know, thats what the trash/recycle bin is for, but at the command line, anything will and does go!</description>
			<pubDate>Wed, 16 Jul 2008 05:31:00 GMT</pubDate>
			<author>donotreply@osnews.com (hollovoid)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Nice!</title>
			<link>http://osnews.com/thread?323148</link>
			<guid isPermaLink="true">http://osnews.com/thread?323148</guid>
			<description>Yeah I had the habit of using shift too, until I configured konqueror to ignore shift+delete, and I got rid of that crappy habit <img src="/images/emo/smile.gif" alt=";)" /> <br />
<br />
But yeah from the command-line, either you have alias rm=&quot;rm -i&quot; or you really do have to be careful.</description>
			<pubDate>Wed, 16 Jul 2008 09:00:00 GMT</pubDate>
			<author>donotreply@osnews.com (Knuckles)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Nice!</title>
			<link>http://osnews.com/thread?323154</link>
			<guid isPermaLink="true">http://osnews.com/thread?323154</guid>
			<description>When did that become a nasty habit? I have never deleted a file I didn't want to and I'd rather that than having files I don't need piling up in a system folder. And there never is enough disk space to forget about the &quot;recycled&quot; stuff.<br />
In the nineties it was the &quot;Word&quot; files, in the 00s it was the mp3s, now it is 4Gb DVD images or rips, or in my case 10Gb virtual machine drives - they somehow always manage to fill up your disk drive whatever its size.</description>
			<pubDate>Wed, 16 Jul 2008 09:48:00 GMT</pubDate>
			<author>donotreply@osnews.com (sakeniwefu)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Not available</title>
			<link>http://osnews.com/thread?323156</link>
			<guid isPermaLink="true">http://osnews.com/thread?323156</guid>
			<description>$ sudo aptitude install ext3undel<br />
[...]<br />
Couldn't find any package whose name or description matched &quot;ext3undel&quot;<br />
Couldn't find any package whose name or description matched &quot;ext3undel&quot;<br />
No packages will be installed, upgraded, or removed.<br />
[...]</description>
			<pubDate>Wed, 16 Jul 2008 10:26:00 GMT</pubDate>
			<author>donotreply@osnews.com (msundman)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Nice!</title>
			<link>http://osnews.com/thread?323164</link>
			<guid isPermaLink="true">http://osnews.com/thread?323164</guid>
			<description><div class="cquote">When did that become a nasty habit? I have never deleted a file I didn't want to and I'd rather that than having files I don't need piling up in a system folder. </div><br />
<br />
When your doing system things you shoulden't do after being up for a day and 1/2. <img src="/images/emo/smile.gif" alt=";)" /></description>
			<pubDate>Wed, 16 Jul 2008 12:00:00 GMT</pubDate>
			<author>donotreply@osnews.com (hollovoid)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Not available</title>
			<link>http://osnews.com/thread?323169</link>
			<guid isPermaLink="true">http://osnews.com/thread?323169</guid>
			<description><a href="http://freshmeat.net/projects/ext3undel/" rel="nofollow">http://freshmeat.net/projects/ext3undel/</a></description>
			<pubDate>Wed, 16 Jul 2008 13:06:00 GMT</pubDate>
			<author>donotreply@osnews.com (libray)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Comment by righard</title>
			<link>http://osnews.com/thread?323171</link>
			<guid isPermaLink="true">http://osnews.com/thread?323171</guid>
			<description>If this works, it's no more ext2 for me. I never switched to ext3 because for some reason I never learned stop doing this...<br />
<i>$ rm * -R</i><br />
Hmm, why did that take so long, did I forget something?<br />
<i>$ pwd</i><br />
  <i>/home/righard</i><br />
yes i did, damn</description>
			<pubDate>Wed, 16 Jul 2008 13:37:00 GMT</pubDate>
			<author>donotreply@osnews.com (righard)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Comment by righard</title>
			<link>http://osnews.com/thread?323183</link>
			<guid isPermaLink="true">http://osnews.com/thread?323183</guid>
			<description>Put the following into your .bashrc and .bash_profile files:<br />
<br />
PS1=&quot;\u@\h:\w&gt; &quot;<br />
export PS1<br />
alias rm='rm -i'<br />
alias cp='cp -i'<br />
alias mv='mv -i'<br />
set -o noclobber<br />
<br />
The first two lines will set your command line prompt to show you which directory you are in. No more need for the &quot;pwd&quot; command.<br />
<br />
The three &quot;alias&quot; lines will for you to confirm with a yes/no prompt before deleting, copying or moving a file.<br />
<br />
The &quot;noclobber&quot; line will prevent you from overwriting an existing file. If you want to overwrite a file, you'll have to manually delete the old one first.<br />
<br />
Of course, you have to logout/login one time for these settings to take effect, because that restarts the bash shell.</description>
			<pubDate>Wed, 16 Jul 2008 14:49:00 GMT</pubDate>
			<author>donotreply@osnews.com (ozonehole)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[2]: Comment by righard</title>
			<link>http://osnews.com/thread?323193</link>
			<guid isPermaLink="true">http://osnews.com/thread?323193</guid>
			<description>I didn't know about noclobber.  I may use that.  But, the &quot;-i&quot; stuff just gets on my nerves.<br />
<br />
Here's a tip for you.  You don't have to log out to reread the dot files.  All you need to do is at the command prompt: &quot;. .profile&quot;.  For clarification, at the command prompt, type a &quot;dot&quot; followed by a &quot;space&quot; followed by the name of the hidden resource file you wish to reread.</description>
			<pubDate>Wed, 16 Jul 2008 15:23:00 GMT</pubDate>
			<author>donotreply@osnews.com (backdoc)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Bummer</title>
			<link>http://osnews.com/thread?323209</link>
			<guid isPermaLink="true">http://osnews.com/thread?323209</guid>
			<description>I got a bit excited when I saw this and immediately went to work installing the script and it's dependencies. What I found is that it is entirely a crapshoot whether or not this thing will even be able to find the file you're looking for. More often than not, it didn't.Edited 2008-07-16 17:20 UTC</description>
			<pubDate>Wed, 16 Jul 2008 17:20:00 GMT</pubDate>
			<author>donotreply@osnews.com (fsckit)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Not really....</title>
			<link>http://osnews.com/thread?323233</link>
			<guid isPermaLink="true">http://osnews.com/thread?323233</guid>
			<description>You should be aware that the ext3 fs actually zero's out the block pointers in the inode when a file is deleted, so file recovery programs/scripts are not very reliable. If your file spans several blocks and if it is a binary file forget it. If your file has some identifiable text you might be able to manually rebuild the pointers if you are lucky and have lots of time.<br />
  <br />
  I have had the bad experience of dropping the wrong MySQL db and was unable to recover it. I had to completely rebuild all my work. However, before that I tried everything in my power to recover the old one. At the end of the day it was just easier to re-create it.Edited 2008-07-16 19:40 UTC</description>
			<pubDate>Wed, 16 Jul 2008 19:39:00 GMT</pubDate>
			<author>donotreply@osnews.com (chimby)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: Nice!</title>
			<link>http://osnews.com/thread?323421</link>
			<guid isPermaLink="true">http://osnews.com/thread?323421</guid>
			<description>Couldn't you set up a bash alias or function where rm is actually mv?</description>
			<pubDate>Thu, 17 Jul 2008 14:39:00 GMT</pubDate>
			<author>donotreply@osnews.com (FunkyELF)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE[3]: Comment by righard</title>
			<link>http://osnews.com/thread?323423</link>
			<guid isPermaLink="true">http://osnews.com/thread?323423</guid>
			<description>I just &quot;source ~/.bashrc&quot; which should source everything that normally gets sourced when you log in.</description>
			<pubDate>Thu, 17 Jul 2008 14:43:00 GMT</pubDate>
			<author>donotreply@osnews.com (FunkyELF)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>
