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 - Linux Tutorial
From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Hard drive partitioning strategies5m 43s
-
(Locked)
List, create, delete partitions on MBR and GPT disks5m 55s
-
(Locked)
Create parititons using parted3m 20s
-
(Locked)
Resize partitions without losing data4m 44s
-
(Locked)
Basic features of logical volume management (LVM)2m 10s
-
(Locked)
Manage LVM volumes and volume groups6m 5s
-
(Locked)
Extend existing logical volumes2m 48s
-
(Locked)
Reduce existing logical volumes3m 44s
-
(Locked)
Replace a physical volume3m 58s
-
(Locked)
Create EXT filesystems3m 25s
-
(Locked)
Repair EXT filesystems4m 55s
-
(Locked)
Mount filesystems automatically4m 13s
-
(Locked)
Back up and restore an EXT filesystem2m 57s
-
(Locked)
Basic features of Btrfs3m 25s
-
(Locked)
Archiving files with tar4m 41s
-
(Locked)
-