Solved

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

Posted on 2011-03-08
4
728 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now