I have installed rootsh, but sudo gainroot doesn´t work without a valid sudoers file and rootsh /bin/sh says that it is deprecated and is should use root or sudo gainroot instead.
I do not have a microSD cad yet to make a backup.