To reset the root password you need to follow these instructions

This lists all disks and partitions. Your root partition is typically something like /dev/vda1 or /dev/nvme0n1p2.

exit && umount /mnt && reboot