Filesystem Troubleshooting

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
21 hours 25 minutes
Difficulty
Intermediate
CEU/CPE
21
Video Transcription
00:00
>> Hello Cybrarians, and welcome back to
00:00
the Linux plus course here at Cybrary.
00:00
I'm your instructor, Rob Goelz.
00:00
In today's lesson, we're going to be
00:00
discussing File System Troubleshooting.
00:00
Upon completion of today's lesson,
00:00
you'll be able to understand
00:00
the filesystem troubleshooting
00:00
commands that we could use, iostat and fsck.
00:00
Now, the iostat command is used to
00:00
gather statistics on devices.
00:00
We can use it to troubleshoot performance
00:00
of a disk or of a partition.
00:00
This command can be run on
00:00
>> both ext and xfs filesystems.
00:00
>> We'll come back to this command later in
00:00
much greater depth later in the course.
00:00
The fsck command is used to
00:00
>> uncover filesystem problems,
00:00
>> but it can only be used on
00:00
unmounted file systems and ext filesystems.
00:00
If we're trying to run a repair on an xfs filesystem,
00:00
we're going to use that xfs_repair command instead,
00:00
and recall that we covered that in the previous lesson.
00:00
Now if you look on the right-hand side,
00:00
you can see that we're successfully able to run
00:00
an fsck against /dev/sdb1,
00:00
which is ext4 filesystem that we have on CentOS 8.
00:00
But if we try to run that fsck on
00:00
/dev/sdc1, it gives us an error.
00:00
It says that if we want to check
00:00
the consistency of that file system,
00:00
we have to use xfs_repair.
00:00
With that, we've reached the end of this lesson.
00:00
In this lesson, we covered
00:00
the iostat command and the fsck command.
00:00
Thanks so much for being here,
00:00
>> and I look forward to seeing you in the next lesson.
Up Next