First of all, reboot the machine using a terminal or GUI.
During boot-up, hold down the Shift key.
Now, choose the “Advanced” Options for Ubuntu.
Select the entry with recovery mode and allow the system to load in the recovery menu.
Choosing fsck from the menu will appear.
Once you’re done, boot the system by selecting the “resume” option on the recovery menu.
Why we use fsck in Linux?
The Linux fsck System (File Consistency Checker) utility checks file systems for more serious errors or problems. The tool is used to troubleshoot potential errors and generate reports. The utility comes standard with Linux distributions. No special steps or setup procedures are required for fsck targets.
How does fsck work Linux?
fsck calculates the number of data blocks and then compares that block with the number of blocks that the inode recognizes. If the index contains a sum, the fake fsck will ask you to rebuild it. Each index contains 64-bit fields of the correct size. This field displays the number of characters (bytes of data) found in the file associated with the inode.
What is meant by fsck in Linux?
Ordered. The system program fsck (File System Consistency Check) is actually a tool for checking file system consistency on Unix and Unix-like operating systems such as Linux, macOS and FreeBSD.
How do I use fsck in Linux?
Run fsck on the Linux root partition.
- To do this, enable the GUI to restart your computer, or use the terminal: sudo reboot.
- Press and hold the magical Shift formula during the boot process.
- Select advanced options if you are considering Ubuntu.
- Then select the entry with (recovery mode) at the end.
- Select fsck from the menu. < /li>
How to use fsck to check filesystem in Linux?
# fsck -y /dev/sda6 due to fsck util-linux 2.20.1 e2fsck 1.42 (11/29/2011) /dev/sda6 contains a multilevel file with errors, forced check. Do one thing: check indexes, blocks, and sizes. Inode 2060353 is an unknown file with mode 0137642, but it actually looks like a different directory.
Which is the default mode in Linux force fsck?
One of “auto”, “force”, “jump”. Controls each mode of operation. The default value is “auto” and ensures that file system checks are performed as the file system checker deems necessary. “Enforcer” necessarily implies a complete revision of the accounting system. “Ignore” ignores all archive system checks. One of “Yes”, “Puts”, “No”. Controls the mode associated with the operation.
How to use fsck command in Linux ( to repair file system?
The fsck command follows the same path as most Linux commands. If you don’t provide a meaningful file system, the system will parse your actual fstab file /etc/fstab) (so it can parse the items. You either need to run the command as a power user or use if you have sudo. You can use fdisk, and it could be a list of df commands for hard pushing in linux.
How to fix fsck error in Linux ext2?
This short article explains how to use fsck to fix the error. First, you need to disassemble the launch system. You will have trouble fixing it while you work. Revert the system back to the runlevel model (don’t forget to run all builds as root):
How do I run fsck manually in Linux?
Enter a start and select More Options from the menu. Select recovery mode, then select fsck.
- Run dynamic distribution.
- Use fdisk and it can be partitioned to find the root for a specific partition name.
- Open a terminal and run: sudo fsck -p /dev/sda1.
- When done, restart most active and distribution systems.

Vijay is a tech writer with years of experience in the Windows world. He’s seen it all – from simple problems to catastrophic system failures. He loves nothing more than helping people fix their PCs, and he’s always happy to share his wisdom with anyone who needs it.
When Vijay isn’t fixing Windows problems, he likes to spend time with his wife and two young children. He also enjoys reading, playing cricket, and watching Bollywood movies.