LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

mklost+found

creates a lost+found directory in the current working directory

TLDR

Create a preallocated lost+found directory (for fsck)
$ mklost+found
copy

SYNOPSIS

mklost+found

DESCRIPTION

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.

PARAMETERS

This command takes no options or arguments. It creates the directory in the current working directory.

INSTALL

sudo apt install e2fsprogs
copy
sudo dnf install e2fsprogs
copy
sudo pacman -S e2fsprogs
copy
sudo apk add e2fsprogs-extra
copy
sudo zypper install e2fsprogs
copy
brew install e2fsprogs
copy
nix profile install nixpkgs#e2fsprogs
copy

CAVEATS

The lost+found directory typically already exists at the root of each ext filesystem created by mke2fs. This utility creates additional instances in other locations when needed. Must be run on an ext2/ext3/ext4 filesystem. Requires appropriate permissions to create directories.

HISTORY

mklost+found was created by Remy Card and is currently maintained by Theodore Ts'o. It is part of the e2fsprogs package, the standard utilities for managing ext filesystems on Linux.

SEE ALSO

e2fsck(8), mke2fs(8), fsck(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid