cpio and lost+found

Andrew Tannenbaum trb at ima.UUCP
Sat Nov 15 06:18:56 AEST 1986


Did you ever notice...

If you save a file system with cpio, it doesn't save the contents of
each directory file, it just saves the directory as an empty entity and
it gets filled with the appropriate files.  While this is the correct
action in most cases, it is wrong in the case of the lost+found
directory.  (It's supposed to have a bunch of spare empty slots, but it
gets created by cpio with no spare empty slots.)

Does anyone deal with this in a rational way?  If you restore a filesystem
like this, you should run a mklost+found program which creates a bunch of
files and then proceeds to delete them, leaving empty directory slots.

	Andrew Tannenbaum   Interactive   Boston, MA   +1 617 247 1155



More information about the Comp.unix.wizards mailing list