[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "losing" a file in the ext2 file-system
The real reason is that there is an opendir(2) function meant for
directories, you don't just open(2) it. Check the manpage. It's a mystery
to me why joe lets you open a dir (my copy won't do that). If you manage
to edit a directory (or what joe thinks is a directory) you will have some
very interesting sessions with inode numbers and inode tables and such
until you sort out the mess. Even e2fsck won't help you because it can
only fix the structure (inode tables etc) not the names. If you manage to
delete the names of files completely from a directory they will remain
accessible by inode number. Provided you can find them. The number of
inodes on a hdd is large enough to make me say: forget it. The only way to
find such a file is by writing a search program, knowing some string in
the lost file. Ten characters or a rare name or spelling mistake will find
the file even on a 4GB disk within 1/2 hour or so.
Peter Lorand Peres
------------------
plp@actcom.co.il 100310.2360 on CIS (please use Internet address for mail)
Follow-Ups:
References: