From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Repair EXT filesystems

Repair EXT filesystems - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Repair EXT filesystems

- [Instructor] It's inevitable that your file system will need to be repaired at some point. We're going to use our lv data logical volume for this exercise. In order to fix the file system, we need to break it first. Let's begin by copying files to our amounted volume. Make sure that lv data is mounted on /media/lvdata. If it is not, then mount it. Type in sudo, space, mount, space, /dev/vgdata/lvdata, space, /media/lvdata. And hit enter. We can verify this with df. Now let's copy a bunch of files to it. For this exercise, it does not matter which files, so we'll just copy / to it. Type in clear, and then type in sudo, space, cp, space, /, capital R, lowercase vf, space, /media/lvdata and hit enter. Let that go for a while and then kill it by pressing control+c. We need a lot of files in the file system so we have a higher chance of corrupting one of them. Now that we have files, let's cause some chaos. You…

Contents