Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] recover contents of deleted but still open file on a Linux system.



On Tue, Jul 7, 2020 at 10:54 AM Jerry Feldman <gaf.linux at gmail.com> wrote:
>
> Additionally, you can use debugfs along with the inode to create a link

Never used that command, but from the manual page it looks straight
forward to do so.
Two thoughts though:

1. debugfs appears to only work with ext* filesystems.   The
/proc/PID/fd method should work with XFS, ZFS, etc..
2.  debugfs appears to need read/write access to the disk partition.
The method I suggested can be
used by any unprivileged user who accidentally removes the output file
of a long running program.

Bill Bogstad



Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org