Re: undo a rm -rf
I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. Yes, wel I did this stupid thing to like a month ago or so. I did get back a lot of files using a software called The Coroner Toolkit. You need plenty of space and time but it works for most of the files. I don't remember the URL, but make a search on Google and you'll find the software page. Antoine ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
I don't think you can. But just in case it ever happens again, I know my school's unix computers have a 'unrm' command that works. Because destroying files using 'rm' 'mv' 'cp' will put the files in a special directory for 24 hours. Sure there is some way to add this command in and modify the other ones.. Don't know how though. Guess it's not too hard to modify the source code. Foo On Sat, 7 Jun 2003, David Loszewski wrote: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
On Sat, Jun 07, 2003 at 05:45:20PM +0800 or thereabouts, Robert Storey seemed to write: On Fri, 6 Jun 2003 21:36:46 -0700 Joshua Oreman [EMAIL PROTECTED] wrote: On Sat, Jun 07, 2003 at 12:15:50AM -0400 or thereabouts, David Loszewski seemed to write: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. On Linux, I've installed Libtrash, a trashcan which works even at the console. I think it's just a series of scripts, but it works superbly. I tried installing it on FBSD, but it failed to compile, exiting with this error message: /usr/bin/ld: cannot find -ldl *** Error code 1 If I knew what I was doing, I'd surely try to port Libtrash to FBSD. Sadly, I'm not a knowledgeable developer, just a dumb user. If anyone is interested: http://www.m-arriaga.net/software/libtrash/ That's me, I'm interested (and a knowledgable quasi-developer :-) To get it to compile, remove all occurences of -ldl from src/Makefile. However, then it coredumps on any open() call and doesn't move stuff to the trash :P I'm working on it. -- Josh regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
On Sat, Jun 07, 2003 at 04:18:02PM -0700 or thereabouts, Joshua Oreman seemed to write: On Sat, Jun 07, 2003 at 05:45:20PM +0800 or thereabouts, Robert Storey seemed to write: On Fri, 6 Jun 2003 21:36:46 -0700 Joshua Oreman [EMAIL PROTECTED] wrote: On Sat, Jun 07, 2003 at 12:15:50AM -0400 or thereabouts, David Loszewski seemed to write: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. On Linux, I've installed Libtrash, a trashcan which works even at the console. I think it's just a series of scripts, but it works superbly. I tried installing it on FBSD, but it failed to compile, exiting with this error message: /usr/bin/ld: cannot find -ldl *** Error code 1 If I knew what I was doing, I'd surely try to port Libtrash to FBSD. Sadly, I'm not a knowledgeable developer, just a dumb user. If anyone is interested: http://www.m-arriaga.net/software/libtrash/ That's me, I'm interested (and a knowledgable quasi-developer :-) To get it to compile, remove all occurences of -ldl from src/Makefile. However, then it coredumps on any open() call and doesn't move stuff to the trash :P I'm working on it. Done. Get it from http://64.161.78.226/libtrash-fbsd.tgz. It's still pretty unstable (e.g. don't try running Mutt or perl or Emacs with it) but hey, it works. Any other developer want to work on this? NOTE: Since the base system utilities (rm, cp, mv, etc.) are statically linked, libtrash will NOT work with them! You must use a dynamic-linked version, e.g. like so: # gcc -g -o /usr/bin/dynrm /usr/src/bin/rm/rm.c # gcc -g -o /usr/bin/dynmv /usr/src/bin/mv/mv.c # gcc -g -o /usr/bin/dyncp /usr/src/bin/cp/*.c And add these lines to the end of your shell's startup file (~/.profile for sh, ~/.cshrc for csh, ~/.bashrc for bash, ~/.zshrc for zsh): --snip-- alias rm=dynrm alias cp=dyncp alias mv=dynmv --snip-- NOTE #2: I am not maintaining this; I'm just putting it out there so maybe someone else can keep hacking on it. Hope this helps! -- Josh -- Josh regards, Robert ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undo a rm -rf
On Sat, Jun 07, 2003 at 12:15:50AM -0400 or thereabouts, David Loszewski seemed to write: I just did a rm -rf and forgot the *.png portion that I wanted on it, lol, 2 years of using freebsd and I've never done anything this stupid. Is there a way to get my data back? Please respond to this email address. Short answer: No. Medium answer: Restore it from a backup. What? You weren't making backups? I guess you will from now on... Oh, if you unmounted the filesystem RIGHT AWAY (drop to single user), you may be able to recover the files (a slim chance :-) Google for recover-files-after-rm. HTH, -- Josh Dave ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]