Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

File systems and volumes

Mounting, checking and repairing file systems, and opening encrypted volumes, LVM and software RAID.

Everything here starts from Working safely with disks: nothing is mounted, assembled or unlocked automatically, and on a disk that matters you mark it read-only first.

Checking (-n, no changes) is safe. Repairing writes to the file system; on a disk with data you need, image it first (ddrescue) and repair the copy.

ToolFor
mountmounting read-only, without replaying journals
ext2/3/4e2fsck, tune2fs, debugfs
XFSxfs_repair, xfs_info
Btrfsbtrfs check, btrfs restore
NTFSntfs-3g, ntfsfix, ntfsinfo
FAT and exFATfsck.vfat, fsck.exfat
cryptsetupLUKS and BitLocker volumes
dislockerBitLocker volumes (alternative)
LVMlogical volumes
mdadmLinux software RAID, and Intel RST (IMSM) sets