How do I modify an ext filesystem item given its inode number?

1

1

How do I modify a file/directory given their inode numbers?

Those inodes do not appear on a mounted filesystem as traversable directories / readable files and as such are undiscoverable by find utility. fsck is helpless. Even debugfs has a hard time dealing with them.

Normally inodes appear similar to this:

debugfs:  ncheck 10622537
Inode   Pathname
10622537        /lost+found/#10622537

But a divine intervention system fault awarded me with these two:

debugfs:  ncheck 10622530 10496145
Inode   Pathname
10622530        .../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../42120/47954
10496145        .../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../42120

Most desired is to move (attach) both to lost+found to inspect the contents.

PF4Public

Posted 2017-10-28T21:43:25.377

Reputation: 246

A colleague of mine named this 'ladders to heavens'. – PF4Public – 2017-11-27T18:09:24.593

Note also how parent and child number of double-dots differ by one. – PF4Public – 2017-11-27T18:11:03.333

No answers