Solved

Recover a file that was auto deleted on boot from /tmp folder

Posted on 2011-03-08
4
733 Views
Last Modified: 2012-05-11
I wonder if anyone can help me I have been working on a perl script on a vyatta (debian based) router.
I foolishly saved the script to the /tmp folder.   When i have rebooted this file has been auto deleted
because of it's location.

Is there a way which i can recover this file?

many thanks
0
Comment
Question by:Ross-C
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
svs earned 500 total points
ID: 35068610
If /tmp is memory-based (using tmpfs filesystem), there's no chance to recover the file.

If it's not, it's still very hard.
0
 
LVL 4

Expert Comment

by:l4ncel0t
ID: 35068649
You have hardly any chance to restore it. But if you are using ext3 you can try that
http://www.linux.com/archive/feature/141074
0
 
LVL 4

Expert Comment

by:l4ncel0t
ID: 35068671
0
 
LVL 11

Author Closing Comment

by:Ross-C
ID: 35068713
Thats what i thought, ah well you only do these things once.  Cheers anyway.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question