ok - i wonder whats causing these "broken" files ? <br><br><div class="gmail_quote">On Thu, May 29, 2008 at 8:45 PM,  <<a href="mailto:santi@usansolo.net">santi@usansolo.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Srs,<br>
<br>
I need to remove some broken files/inodes in ext3 filesystem running Linux<br>
2.6.18, I can't delete using userspace utilitys:<br>
<br>
# ls -l /tmp/apspkgarc/<br>
total 0<br>
?---------  ? ? ? ?           ? AdvancedPoll-2.03-30.app.zip<br>
?---------  ? ? ? ?           ? Coppermine-1.3.3-45.app.zip<br>
?---------  ? ? ? ?           ? joomla-1.0.12-36.app.zip<br>
?---------  ? ? ? ?           ? Mambo-4.6.2-8.app.zip<br>
?---------  ? ? ? ?           ? osCommerce-2.2ms2-52.app.zip<br>
?---------  ? ? ? ?           ? phpBB-2.0.22-19.app.zip<br>
?---------  ? ? ? ?           ? phpBook-1.50-26.app.zip<br>
?---------  ? ? ? ?           ? WordPress-2.0-21.app.zip<br>
<br>
# rm -rf /tmp/apspkgarc<br>
rm: cannot remove directory `/tmp/apspkgarc': Directory not empty<br>
<br>
<br>
Other times I have solved this problem using debugfs, but I don't know if<br>
it's a secure method to make this:<br>
<br>
# umount /dev/i2o/hda4<br>
# debugfs -w /dev/i2o/hda4<br>
debugfs 1.35 (28-Feb-2004)<br>
debugfs: freei /var/run/named.pid<br>
<br>
"freei" is a secure method to delete those files?<br>
<br>
Also, I'm looking for a method or application to search this type of broken<br>
files, now I'am using this shell one-liners:<br>
<br>
export LANG=en_US<br>
find / -type s -prune 2> /tmp/find_broken_files.txt > /dev/null<br>
awk '/No such file or directory/ { print $2; }' /tmp/find_broken_files.txt<br>
<br>
All advices are welcome, thanks!!<br>
<br>
Regards,<br>
<font color="#888888"><br>
--<br>
Santi Saez<br>
<br>
_______________________________________________<br>
Ext3-users mailing list<br>
<a href="mailto:Ext3-users@redhat.com">Ext3-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ext3-users" target="_blank">https://www.redhat.com/mailman/listinfo/ext3-users</a><br>
</font></blockquote></div><br>