Cannot login localhost login

The usual method of resetting root’s password is to “chroot” into the installed system:

  1. boot live rescue media
  2. mount the / filesystem to /mnt
  3. mount -o bind /dev /mnt/dev
  4. mount -o bind /sys /mnt/sys
  5. mount -o bind /proc /mnt/proc
  6. chroot /mnt
  7. mount -a
    *]passwd root