10-03-2011
That's what backups do for you. If you have no backup, then, you don't have a backup...
The best you can do is stop using the disk immediately -- and I mean stop using it, no writing to it at all, if you can't shut off the machine then remount the filesystem read-only. Any write has a chance of overwriting part or all of the deleted file. Then figure out the right raw-data recovery tool for use on your system. Something like magicrescue may work depending on what your system is and what you deleted. I can't predict what your odds of retrieving it are.
If you deleted a whole tree and not just one file, if you get back anything at all you're likely to get back a disorganized mess of instead of a nicely organized tree.
8 More Discussions You Might Find Interesting
1. SCO
I am unbale to uncompress a file which was compress then moved to another pc in ascii mode instead of binary mode. Is there any way to recover it. Please help us. While uncompress it is giving corrupt input. (3 Replies)
Discussion started by: raj2610
3 Replies
2. UNIX for Advanced & Expert Users
the file /etc/passwd has corrupted mistakenly.actually the file has saved as "oot:0:0:root:/root/sbin/bash".
first r of root has been deleted ..
can anyone tell me how can i recover as normal user (2 Replies)
Discussion started by: singh_hackerz
2 Replies
3. UNIX for Advanced & Expert Users
Hey peeps,
Here is somethin u might find interestin....
Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :)
I couldn't create any mess better than this, can... (2 Replies)
Discussion started by: squid04
2 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
When I want to make a file unrecoverable, I use the following command:
foo:~$ shred -fuz filename
The problem is that I deleted many files using:
foo:~$ rm -f filename
How can I make those files unrecoverable?
Is there a command that shreds the disk free space?
So that no file can... (2 Replies)
Discussion started by: chebarbudo
2 Replies
5. UNIX for Advanced & Expert Users
I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck:
fsck.gfs2 -y /dev/vg_01/uss_vol... (0 Replies)
Discussion started by: king_hippo
0 Replies
6. Solaris
Is it possible to reset a normal user password , by editing password field in /etc/shadow file?
Thanks (6 Replies)
Discussion started by: ksvaisakh
6 Replies
7. Cybersecurity
Hello friends
I have an CentosOS 5 box running Apache, I want to Install a powerful File Integrity checker with recovery option to maintain any changes may be happened without my hand
Could you help me to recommend such solution
Thanks (3 Replies)
Discussion started by: reaky
3 Replies
8. UNIX for Advanced & Expert Users
is it possible to recovery a deleted file in AIX? (2 Replies)
Discussion started by: fiyas
2 Replies
LEARN ABOUT OSF1
db_printlog
db_printlog(8) System Manager's Manual db_printlog(8)
NAME
db_printlog - Displays database log file (Enhanced Security)
SYNOPSIS
/usr/tcb/bin/db_printlog [-h home]
FLAGS
Specify a home directory for the database. The correct directory for enhanced security is /var/tcb/files.
DESCRIPTION
A customized version of the Berkeley Database (Berkeley DB) is embedded in the operating system to provide high-performance database sup-
port for critical security files. The DB includes full transactional support and database recovery, using write-ahead logging and check-
pointing to record changes.
The db_printlog utility provides a way to view the log file associated with the security database.
RETURN VALUES
The db_printlog utility exits 0 on success, and >0 if an error occurs.
ENVIRONMENT VARIABLES
If the -h option is not specified and the environment variable DB_HOME is set, it is used as the path of the database home. The home
directory for security is /var/tcb/files.
FILES
/var/tcb/files/auth.db
/var/tcb/files/dblogs/*
RELATED INFORMATION
Commands: db_checkpoint(8), db_recover(8), db_stat(8) delim off
db_printlog(8)