On 6/12/23 07:54, Pau A.S. wrote:
Hi,
...
This has led to a FS corruption which I do not know how to fix, only in one
partition. Upon boot, the system runs fsck on them but the output is that
they are clean with some level of fragmentation.
In any case, /usr/local is corrupted. Is there a way to repair it? I
naively hoped that an upgrade would do it, but it does not.
I'd like to see how you determined that /usr/local is corrupted.
You have given a diagnosis, not the data. Your diagnosis may be
incorrect.
But in general:
umount /usr/local (1)
fsck /usr/local
(look at output. Give up hitting "Y" a lot, hit "F")
(MAKE SURE YOU TELL IT TO MARK FILE SYSTEM AS CLEAN!)
mount /usr/local
IF for some reason that doesn't work, worst case, copy everything off
to some other place, umount, newfs that partition, remount, restore.
But I'd like to see the actual output of this activity.
Nick.
(1) this may require bringing the system up in single user mode.
/usr/local probably can be done without single user mode but many
other mounts will require it)