删除lost + found文件夹是否安全?

我有一个空的单独分区用于我的vhd / virtualbox。 安装在/mount/win7

我现在删除了所有内容,并且遗留了丢失的+找到的文件夹。 它需要大约5gig

删除丢失的文件夹是否安全?

如果丢失,fsck将重新创建lost + found目录。

在启动时,如果检测到文件系统未正确卸载,则大多数发行版都会运行fsck。

由于fsck创建了lost + found目录(如果它丢失),它将创建它然后将它找到的任何内容放入该目录。

所以你可以毫无问题地删除它。

到目前为止,我的印象是删除lost+found非常安全,因为只要需要它就会被fsck重新创建。 但在Ubuntu 12.10升级之后,我收到了来自cron的邮件:

 /etc/cron.daily/standard: Some local file systems lack a lost+found directory. This means if the file system is damaged and needs to be repaired, fsck will not have anywhere to put stray files for recovery. You should consider creating a lost+found directory with mklost+found(8). The following lost+found directories were not available: /home/lost+found 

mklost+found的man-page说:

 mklost+found pre-allocates disk blocks to the lost+found directory so that when e2fsck(8) is being run to recover a filesystem, it does not need to allocate blocks in the filesystem to store a large number of unlinked files. This ensures that e2fsck will not have to allocate data blocks in the filesystem during recovery. 

我不确定究竟是什么意思,但它似乎表明没有lost+found可能会给恢复带来麻烦。 此外,它表明lost+found与常规目录的不同之处在于它具有与之关联的预分配块。

您不想删除lost + found目录。
它是一个重要的系统文件夹,无论如何都会在下次启动时重新创建。 有一些非常好的解释,为什么它在那里,它在这里做了什么