From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Unlock the full course today

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

Repair EXT file systems

Repair EXT file systems

From the course: Linux System Engineer: Advanced Disk Systems and System Backup

Start my 1-month free trial

Repair EXT file systems

- [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 mounted volume. Make sure the 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 of 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 -Rvf space / slash media slash 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 don't have to unmount it for this because we're actually trying to cause problems. We'll use DD to…

Contents