LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xfs_repair

Repair XFS filesystem

TLDR

Repair partition
$ sudo xfs_repair [path/to/partition]
copy

SYNOPSIS

xfs_repair [OPTIONS] DEVICE

DESCRIPTION

xfs_repair repairs an XFS filesystem. It checks and fixes filesystem metadata, directory structures, and allocation information.The filesystem must be unmounted before repair. A log replay may be needed first.

PARAMETERS

-n

No modify mode (check only)
-L
Force log zeroing (data loss risk)
-v
Verbose output
-d
Repair dangerously (allow repair on mounted FS)
-m MAXMEM
Maximum memory usage

INSTALL

sudo apt install xfsprogs
copy
sudo dnf install xfsprogs
copy
sudo pacman -S xfsprogs
copy
sudo apk add xfsprogs
copy
sudo zypper install xfsprogs
copy
nix profile install nixpkgs#xfsprogs
copy

CAVEATS

Requires unmounted filesystem. Using -L can cause data loss. Backup important data before repair. May require running multiple times.

SEE ALSO

xfs_admin(8), fsck(8), mkfs.xfs(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