ubuntu 20 lts - manual file system check

(1)
download a "SystemRescue" system "iso", like for example:
https://sourceforge.net/projects/systemrescuecd/

(2)
boot for iso

(3)
find your partition that you want to check
-> for LVM use command:

(3-1):
lsblk
>> you see a structure like:
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 10G 0 disk
??sda1 8:1 0 20G 0 part
??ubuntu--vg-ubuntu--lv 253:0 0 1999G 0 lvm /
sr0 11:0 1 2024M 0 rom

or
(3-1):
lvscan
ACTIVE '/dev/ubuntu-vg/ubnutu-lv' [<..GB] inherit

[if it is not active run: lvchange -ay /dev/ubuntu-vg/ubnutu-lv ]

(4)
now check the filesystem:
fsck.ext4 -cfv /dev/ubunut-vg/ubuntu-lv


##hints:
https://www.thomas-krenn.com/de/wiki/FSCK_Best_Practices

computer2know :: thank you for your visit :: have a nice day :: © 2022