pct-fsck
Run a filesystem check on a Proxmox LXC volume
TLDR
Check all volumes of a container
$ pct fsck [100]
Check a specific volume device$ pct fsck [100] --device [mp0|mp1|rootfs|...]
SYNOPSIS
pct fsck vmid [OPTIONS]
DESCRIPTION
pct fsck runs a filesystem consistency check on one or more volumes of a Proxmox VE LXC container. Without `--device`, every configured volume for the container is checked.Use this after unclean shutdowns, storage issues, or when the container fails to start due to filesystem errors. The underlying checker depends on the filesystem type of each volume (commonly `fsck` for ext-family filesystems).
PARAMETERS
vmid
Numeric ID of the container whose volumes to check--device volume
Limit the check to one volume (e.g. `rootfs`, `mp0`, `mp1`)
CAVEATS
The container should be stopped before running a filesystem check. Running `fsck` on a mounted, live volume can cause data corruption. Ensure storage is available on the node where the container's disks reside.
HISTORY
Part of Proxmox VE LXC management (`pct`).