08-29-2007
recover deleted file in unix
hi
after using rm command how to recover the deleted file
8 More Discussions You Might Find Interesting
1. AIX
How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies
2. Solaris
Anybody know how to recover a deleted file in unix
Please help (3 Replies)
Discussion started by: pmsuper
3 Replies
3. UNIX for Dummies Questions & Answers
Hi Experts,
by mistake i deleted some files that are very important to the project.
is there any way that i can recover those files,there is no backup for that but the details of the file we know.
This will be a great help.
Thanks (5 Replies)
Discussion started by: namishtiwari
5 Replies
4. Shell Programming and Scripting
Hi,
By mistake, executed the following command :
rm -rf *
and ALL files got deleted.
But I need to get back these files as they are very very important.
Please help me how to recover this file. Its Urgent for me please.
Thanks in advance. (6 Replies)
Discussion started by: unx100
6 Replies
5. Solaris
Recently our Server Room got burnt and we lost everything including a sunfire V880 server. I had a backup and restored it on our 2nd server. I mistakenly restored the etc folder from the burnt server too. After rebooting the 2nd server I can't get the root directory and other volumes mounting. I... (11 Replies)
Discussion started by: rahmantanko
11 Replies
6. Solaris
dear all
please tell me
how can i recover deleted file in solaris.
i am removing file with rm command.
thanks in advance. (3 Replies)
Discussion started by: nikhil kasar
3 Replies
7. UNIX for Dummies Questions & Answers
Hi All
By mistake i have deleted some file in a directory, is there any way to get it back in Unix( i am using sh ) (2 Replies)
Discussion started by: parthmittal2007
2 Replies
8. UNIX for Advanced & Expert Users
hi,
i deleted one file from linux
please let me know, if we can recover it ? if yes, pls let me know the steps to do.. (3 Replies)
Discussion started by: raghur77
3 Replies
LEARN ABOUT MOJAVE
undelete
UNDELETE(2) BSD System Calls Manual UNDELETE(2)
NAME
undelete -- attempt to recover a deleted file
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
int
undelete(const char *path);
DESCRIPTION
The undelete() system call attempts to recover the deleted file named by path. Currently, this works only when the named object is a white-
out in a union file system. The system call removes the whiteout causing any objects in a lower layer of the union stack to become visible
once more.
Eventually, the undelete() functionality may be expanded to other file systems able to recover deleted files such as the log-structured file
system.
RETURN VALUES
The undelete() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indi-
cate the error.
ERRORS
The undelete() succeeds unless:
[ENOTDIR] A component of the path prefix is not a directory.
[ENAMETOOLONG] A component of a pathname exceeded 255 characters, or an entire path name exceeded 1023 characters.
[EEXIST] The path does not reference a whiteout.
[ENOENT] The named whiteout does not exist.
[EACCES] Search permission is denied for a component of the path prefix.
[EACCES] Write permission is denied on the directory containing the name to be undeleted.
[ELOOP] Too many symbolic links were encountered in translating the pathname.
[EPERM] The directory containing the name is marked sticky, and the containing directory is not owned by the effective user ID.
[EINVAL] The last component of the path is '..'.
[EIO] An I/O error occurred while updating the directory entry.
[EROFS] The name resides on a read-only file system.
[EFAULT] The path argument points outside the process's allocated address space.
SEE ALSO
unlink(2)
HISTORY
The undelete() system call first appeared in 4.4BSD-Lite.
BSD
January 22, 2006 BSD