Now it is time for changing some flags of the deleted inodes.
Copy the following 6 lines into a file named "make-debugfs-input".
|         #!/bin/sh
        awk '{ print "mi <" $1 ">\n"\
                     "\n\n\n\n\n\n\n"\
                     "0\n"\
                     "1\n"\
                     "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n" }' | 
This will simulate the user input when editing the inodes manually. We will set deletion time to 0 and link count to 1.
Note: I am using debugfs version 1.18 and if you have another version you should check if you need to adjust the number of returns above.
Now change the inodes.
| # ./make-debugfs-input < inodes | debugfs -w /dev/hdy1 | tail -c 40 | 
If all went well it should end with "Triple Indirect Block [0] debugfs:".