View Mounted Disks and Partitions
First, we will have to check whether the disks are mounted or not, for this we will have to run the following command:
df -h
This will give the following output:
To avoid this issue we will use the following command which will unmount the partition:
umount /dev/sdb
Note: This will not return anything but it will unmount the partition.
How to fix fsck File System errors in Ubuntu?
The fsck tool is used widely by Linux and Ubuntu users for checking various types of errors that may occur in the filesystems, windows have a similar facility in which we can scan for broken disks and issues and try to fix them, similarly, the fsck is also used widely in the systems for checking and fixing errors. In This article, We’ll see how to fix fsck errors in Ubuntu and will explore various methods to check and repair filesystem errors seamlessly.
How to fix fsck File System errors in Ubuntu
- Prerequisites to fix fsck File System errors in Ubuntu
- How to Check and Repair Filesystem
- Method 1: View Mounted Disks and Partitions
- Running fsck for Checking Errors
- Method 1: Force the fsck to the system root
- Method 2: Run the fsck in the rescue mode
- Fix the Detected Error Automatically
- Fix Detected Errors Automatically with fsck
- How to Skip Fsck on any Mounted Filesystems