Ok, so I made a very stupid mistake and this is the situation:
I have a running process with an open FD to a file, but the file was
deleted by rm, hence it's not addressable from anywhere in the
filesystem (ext3). once i close the process, the file will be deleted.
Is there anyting i can do to
Try looking under /proc/PID/fd.
Regards,
Gregory.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dvir Volk
Sent: Sunday, March 19, 2006 3:09 PM
To: linux-il@linux.org.il
Subject: Recovering a deleted file still opened by a running process
Ok, so I
On 3/19/06, Dvir Volk [EMAIL PROTECTED] wrote:
Ok, so I made a very stupid mistake and this is the situation:
I have a running process with an open FD to a file, but the file was
deleted by rm, hence it's not addressable from anywhere in the
filesystem (ext3). once i close the process, the
thanks, worked like a charm. i didn't know the fd's were accessible
files. silly me...
ah, that's 4 days of processing (65GB!) rescued!
On Sun, 19 Mar 2006 17:04:02 +0200, Maxim Vexler [EMAIL PROTECTED]
said:
On 3/19/06, Dvir Volk [EMAIL PROTECTED] wrote:
Ok, so I made a very stupid mistake
Maxim Vexler wrote:
Sure.
ls -la /proc/{PID}/fd | awk '/(deleted)/ { print cp $8 $10 }'
Wow. I always saw that it was reported as a symbolic linked, and just
assumed it will be inaccessible. I was going to suggest a strange setup
where you write a program that traces the running program,