Accidentally mounted a partition on /usr
I mounted a partition on /usr
accidentally. Hence, I have lost access to sudo
command and can't unmount the partion. I am using AWS EC2 instance and don't have password for root user set.
What are my options? Will reboot unmount the newly mounted partition and will I get access to content of /usr
again? Or else, how can I get root access? Are there any threat of data loss or system going to unusable state after reboot?
Any help would be appreciated.
Yes; a reboot will get rid of the mount.