Checking disks and filesystems for errors

- [Instructor] Hello again, and welcome to…the last video of Section Eight,…"Checking Disks and File Systems for Errors."…In the previous video, we learned…about monitoring disk activity.…In this video, we'll see how to check…disks and file systems for errors.…Data is the most important thing in any computer system.…Naturally, it's important to monitor the consistency…of data stored on physical media.…We'll use the standard tool, fsck,…to check for errors in file systems.…This command should be pre-intalled on all modern distros.…

If not, use your package manager to install it.…Let's see how to use fsck with its various options…to check file systems for errors and, optionally, fix them.…To check for errors on a partition or file system,…just parse its path to fsck.…To check all file systems configured in /etc/fs tab,…we can use the following syntax.…

This will go through the /etc/fs tab file sequentially,…checking each of the file systems one by one.…The fs tab file basically configures a mapping…between disks and mount points, which…

Resume Transcript Auto-Scroll

Author

Released

7/17/2017

Linux shell scripting is a useful tool for programmers and system administrators. It can speed up and automate many tasks, including finding and editing files, editing text, performing advanced searches, downloading data from the web, backing up and archiving data, and transferring files through a network. For Linux administrators, the Linux shell is also a great tool for monitoring system health and deploying updates and software. Learn the basics of Linux shell scripting in this course with Packt trainers Sarath Lakshman and Shantanu Tushar.

Note: This course was created by Packt Publishing. We are pleased to host this training in our library.