Linux command
mklost+found 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
mklost+found
说明
mklost+found creates a lost+found directory in the current working directory on ext2, ext3, and ext4 filesystems. The tool pre-allocates disk blocks for the directory to support filesystem recovery operations. When e2fsck performs filesystem recovery, it stores recovered file fragments in the lost+found directory. Pre-allocating blocks prevents the recovery tool from needing to allocate space during the recovery process, which could fail if the filesystem is severely damaged.
FAQ
What is the mklost+found command used for?
mklost+found creates a lost+found directory in the current working directory on ext2, ext3, and ext4 filesystems. The tool pre-allocates disk blocks for the directory to support filesystem recovery operations. When e2fsck performs filesystem recovery, it stores recovered file fragments in the lost+found directory. Pre-allocating blocks prevents the recovery tool from needing to allocate space during the recovery process, which could fail if the filesystem is severely damaged.
How do I run a basic mklost+found example?
Run `mklost+found` in a terminal, then adjust file names, paths, flags, or remote targets for your system.