Sponsored Content
Operating Systems Linux Recover deleted files on Linux server Post 303025736 by Neo on Saturday 10th of November 2018 09:37:54 PM
Old 11-10-2018
Quote:
Originally Posted by reminisce
This is the filesystem that is mounted on:
/dev/xvda2 on / type xfs (rw,relatime,seclabel,attr2,inode64,noquota)
For debugfs to work on linux systems you need to use lsdel (list deleted files), for example:

Code:
linux:/tmp# debugfs /dev/md0 

debugfs 1.44.1 (24-Mar-2018)
debugfs:  lsdel
debugfs:

However, according to the man page:

Quote:
debugfs - ext2/ext3/ext4 file system debugger
This means that debugfs should not work for a zfs file system.

I do not use the xfs filesystem on any server, so I cannot help on xfs.

I suggest you find something similar to debugfs that works on the xfs filesystem which will help you locale deleted files (if the the deleted inode entries have not yet been cleared).
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Recover deleted files

Is there a Unix tool, like in Novell, to recover accidentally deleted files? (2 Replies)
Discussion started by: kuultak
2 Replies

2. AIX

recover deleted files

How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies

3. Linux

recover deleted files from memory stick

I'm running Fedora Core4. I deleted images off of my Sony DSC-P73 digital camera's memory stick. I'm looking for a *nix tool to recover the photos from the memory stick. Does anyone know of such a tool? (2 Replies)
Discussion started by: dangral
2 Replies

4. Shell Programming and Scripting

Is there a way to recover files deleted using rm command???

Hi All, I just mistakingly deleted some files using rm command.Is there a way to get it back?i work on Solaris 10 Thanks, Kumar (1 Reply)
Discussion started by: kumarsaravana_s
1 Replies

5. UNIX for Dummies Questions & Answers

how to recover deleted files in unix

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

6. Shell Programming and Scripting

Need to Recover Deleted Files

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

7. Red Hat

Recover deleted files from linux server machine..

Hi, I am working Linux server machine. Somebody by mistake(or may be knowingly) deleted few folders and files from the machine. How is this possible to recover those files and folders????:confused: I normally logged in through Putty and winscp only. And don't have any history for putty... (8 Replies)
Discussion started by: pamu
8 Replies

8. UNIX for Advanced & Expert Users

How to recover the deleted file in Linux?

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
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), mount_unionfs(8) HISTORY
The undelete() system call first appeared in 4.4BSD-Lite. BSD January 22, 2006 BSD
All times are GMT -4. The time now is 07:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy