So I was on my desktop computer as usual, and then this happens out of nowhere:
For the little time that I've researched about the error, the first message
[Firmware Bug]: the BIOS has corrupted hw-PMU seems to be related to HP hardware (I have a printer connected to my computer). The problem is that my CentOS 7 is not booting anymore. I guess that the problem might be because of the following message:
Corruption of in-memory data detected. Shutting down filesystem. I'm also asking this question on the same desktop computer using Windows on a dual boot.
Is there a way to recover from this? I don't even know where to start looking for a fix.
When I try to boot into CentOS, it displays me the same lines shown in the image (the ones starting with
[ 2.0XXXXX] XFS (dm-1) ... and then it enters in emergency mode. It then tells me that there's a log file at
/run/initramfs/rdsosreport.txt. I wanted to copy that file to a USB drive so that I could share the error log, but apparently I can't mount it.
dmesg I can see that my pendrive is detected, but no name is associated to it in the
dev directory. I've tried formatting my pendrive to
ext2 but I still have the same problem. Is there anything I'm missing here?
Any help is appreciated.
It turned out that I had my root filesystem currupted by the crash, as stated in the comments. I followed shodanshok's suggestion and booted a live CentOS image on my USB stick, then I went to
Troubleshooting and selected the option to rescue an existing installation of CentOS.
Funnily enough, the live image stated that no Linux installation were found on my hard drive, so I didn't know what to do again. I returned to Google to search for a solution and found this blog post. The guy there apparently had the same problem, and he solved it using this command:
xfs_repair -L /dev/mapper/centos-root.
I returned to my live USB boot and selected the rescue option. The live system couldn't find my Linux installation as before. That time I entered the shell and ran
fdisk -l to see if I could manually find and mount my system partition.
fdisk showed me the existence of a 50Gb sized
/dev/mapper/cl-root. I wasn't able to mount it. I then ran the command
xfs_repair -L /dev/mapper/cl-root to see what would happen. When the process ended, I rebooted my computer and CentOS is now starting without errors.