LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2014, 04:21 AM   #1
santosh0782
Member
 
Registered: Nov 2013
Posts: 132

Rep: Reputation: Disabled
Is there a command or any way to recover/undelete deleted files by rm?


Hi,

i wrote script with normal user id but inadvertently, the script got deleted, Is there a command or any way to recover/undelete deleted files by rm?
 
Old 08-08-2014, 04:51 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
A quick search for linux undelete turned up this link. It may be of use to you.
jdk
 
Old 08-08-2014, 05:56 AM   #3
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
I've had some success with http://extundelete.sourceforge.net/

but if it is just a single script, it might be better/quicker to re-write it
Version 2.0 might be a better script

if you write a lot of scripts, consider git
host it on one of your own 'servers' or go for Third Party ( may have to pay for Private repo )
 
Old 08-08-2014, 04:36 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,858

Rep: Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301Reputation: 2301
Might try testdisk also. OPpps in that link.
 
Old 08-08-2014, 06:32 PM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,388

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Originally Posted by Firerat View Post
I've had some success with http://extundelete.sourceforge.net/

but if it is just a single script, it might be better/quicker to re-write it
Version 2.0 might be a better script

if you write a lot of scripts, consider git
host it on one of your own 'servers' or go for Third Party ( may have to pay for Private repo )
I like RCS, simple no server to setup. I just write makefile with label that ci/co/backup following each script revision
 
Old 08-08-2014, 09:00 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
No server?
That is way cool!11111

I can format my drive and all is good

Must admit, no idea what rcs is

Git works over ssh, easy to setup

But for simple stuff, .. dropbox..
 
Old 08-14-2014, 03:37 AM   #7
erast
LQ Newbie
 
Registered: May 2014
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by santosh0782 View Post
Hi,

i wrote script with normal user id but inadvertently, the script got deleted, Is there a command or any way to recover/undelete deleted files by rm?
Check out the debugfs utility. With this program you can undelete files by specifying the inode numbers.

Source:

debugging a file system
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Recover Deleted Files when rm command was used (I recovered using ext3grep) rtoney5 Linux - Software 8 01-14-2013 05:19 AM
[SOLVED] How to Recover File deleted with ' rm -rf ' command. Rohant Linux - Newbie 4 08-19-2012 01:39 PM
[SOLVED] How To Undelete Previously Deleted Files 9876543210 Linux - General 1 10-22-2010 08:28 PM
how to recover deleted files sibtay Linux - Software 13 01-22-2005 08:09 PM
How to make sure deleted files are put into trash can so that I can undelete them. futurist Linux - General 4 03-20-2003 02:30 AM


All times are GMT -5. The time now is 08:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration