Failed to mount /sysroot XFS Boot failure

On an Amazon EC2 server, the server won’t boot. On checking the serial console, the server was stuck with an error message

Failed to mount /sysroot

I created a new EC2 instance in the same region as the current server, detached the disk, and attached it to the new EC2 instance. When I try to mount the disk, it just hangs and i have to reboot the EC2 instance.

Used parted -l command to see the disk details.

parted command

The disk file system is XFS. Checked the disk with the command

In this case DEVICE_NAME is /dev/nvme1n1p1.

xfs_repair command

The disk has errors. Fixed it by running the command

See HDD

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.