[CentOS] e2fsck but says mounted and cannot

Thu Feb 25 00:07:41 UTC 2021
Jon LaBadie <jcu at labadie.us>

On Wed, Feb 24, 2021 at 02:02:38PM -0500, Jerry Geis wrote:
>I have a system that needs to run e2fsck (C7). I boot into rescue mode,
>skip to shell (option 3).
>enter they PW and I type:
>
>e2fsck -y /dev/sda1
>and it says is mounted. This is "/"
>
>What do I do so I can run e2fsck ?
>

A good first step is to enter "run fsck on root filesystem",
or some such, into your favorite search engine.

Possibilities:

1. # touch /forcefsck
    # reboot

2. # reboot
    select rescue mode from grub menu which likely has an fsck option

3. boot into live media rather than your hard disk
    now your root partition is just any old partition to fsck

-- 
Jon H. LaBadie                  jcu at labadie.us