On Mon, 31 Mar 2003, Yedidyah Bar-David wrote:

> On Mon, Mar 31, 2003 at 04:31:51PM +0300, Alon Altman wrote:
> > Hi,
> >   I've mistakenly deleted some ISOs from my HD while mounted. I want to know
> > a way to restore the inode number behind a loop-mounted device and to then
> > relink it to the filesystem.
>
> 'losetup /dev/loop0' will show you the inode.
> debugfs can help you dump the contents. Maybe even relink, I can't find
> out how.
>
>       Didi

Ok, it worked. I relinked the inodes, but e2fsck outputs the following:
Inode 33450 was part of the orphaned inode list.  IGNORED.
Inode 33450 is in use, but has dtime set.  Fix? no

Inode 2867208 was part of the orphaned inode list.  IGNORED.
Inode 4325659 was part of the orphaned inode list.  IGNORED.
Inode 4325659 is in use, but has dtime set.  Fix? no

Inode 4325660 was part of the orphaned inode list.  IGNORED.
Inode 4325660 is in use, but has dtime set.  Fix? no

Inode 4325661 was part of the orphaned inode list.  IGNORED.
Inode 4325661 is in use, but has dtime set.  Fix? no

Inode 4325664 was part of the orphaned inode list.  IGNORED.
Inode 4325664 is in use, but has dtime set.  Fix? no

Inode 4325665 was part of the orphaned inode list.  IGNORED.
Inode 4325665 is in use, but has dtime set.  Fix? no

Inode 4325666 was part of the orphaned inode list.  IGNORED.
Inode 4325666 is in use, but has dtime set.  Fix? no

Inode 4325667 was part of the orphaned inode list.  IGNORED.
Inode 4325667 is in use, but has dtime set.  Fix? no

Inode 4325668 was part of the orphaned inode list.  IGNORED.
Inode 4325668 is in use, but has dtime set.  Fix? no

Deleted inode 4637025 has zero dtime.  Fix? no

Inode 5292058 was part of the orphaned inode list.  IGNORED.
Inode 5292058 is in use, but has dtime set.  Fix? no

Inode 5292330 was part of the orphaned inode list.  IGNORED.
Inode 5292330 is in use, but has dtime set.  Fix? no

Is it safe to run a write-enabled e2fsck to fix this?

  Alon

-- 
This message was sent by Alon Altman ([EMAIL PROTECTED]) ICQ:1366540
GPG public key at http://alon.wox.org/pubkey.txt
Key fingerprint = A670 6C81 19D3 3773 3627  DE14 B44A 50A3 FE06 7F24
--------------------------------------------------------------------------
 -=[ Random Fortune ]=-
I do enjoy a good long walk -- especially when my wife takes one.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to