<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi,<br>
<br>
In a nutshell, I did the following:<br>
<br>
1. dd if=some_filesystem_dump of=some_file (where some_file resides on
an XFS filesystem and is 3.5TB large)<br>
<br>
2. losetup /dev/loop0 some_file<br>
<br>
3. mount /dev/loop0 /recovered<br>
<br>
[.... i can now access my recovered filesystem through /recovered ...]<br>
<br>
4. rm some_file (remotely via an nfs export) (oops!)<br>
<br>
So, I just removed my 3.5TB file even though it is attached to the loop
device and mounted (XFS did this almost instantly).<br>
<br>
<br>
Now it *appears* that the filesystem as attached to /dev/loop0 and
mounted on /recovered is still OK. I<br>
can cd around it and copy files off.<br>
<br>
So I have these questions:<br>
<br>
<br>
1. Is there any way I can get back the 1 file that I accidentally
deleted (nothing else has been written to that partition since)<br>
<br>
2. Am I safe in accessing my filesystem through /dev/loop0 and
/recovered even though the underlying file has been zapped? If so<br>
I can quickly copy everything off onto another partition.<br>
<br>
3. Will this command: dd if=/dev/loop0 of=saved_file get my file back?<br>
<br>
<br>
Many thanks for any advice!<br>
<br>
<br>
</font></font>
</body>
</html>