YouTip LogoYouTip

Linux Comm Fsck

# Linux fsck Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux fsck (full name: file system check) command is used to check and repair Linux file systems. It can check one or more Linux file systems simultaneously. ### Syntax fsck filesys [...] **Parameters**: * filesys : device name (e.g., /dev/sda1), mount point (e.g., / or /usr) * -t : specifies the file system type. This parameter is not needed if the type is already defined in /etc/fstab or supported by the kernel itself. * -s : execute fsck commands sequentially, one by one. * -A : check all partitions listed in /etc/fstab. * -C : display the complete check progress. * -d : print the debug results of e2fsck. * -p : when used with the -A condition, run multiple fsck checks simultaneously. * -R : when used with the -A condition, skip the root (/) file system check. * -V : verbose display mode. * -a : automatically repair if errors are found during the check. * -r : if errors are found during the check, prompt the user whether to repair. ### Example Check if the /dev/hda5 msdos file system is normal, and automatically repair if there are any abnormalities: fsck -t msdos -a /dev/hda5 **Note** This command can be used in conjunction with /etc/fstab for reference and understanding. [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm Fsck MinixLinux Comm Ext2Ed β†’