Reboot machine and press <shift> to configure GRUB
Select the entry you normaly boot, e.g. Ubuntu and press <e> to temporary modify the entry
Search the line which begins with linux /boot/vmlinuz[...]
Remove everything and including the ro, e.g. ro quiet splashor ro maybe-ubiquity
Replace it with rw init=/bin/bash
Press F10 to boot the system
Use passwdto change the root password
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkNoPrivacy policy
You can revoke your consent any time using the Revoke consent button.Revoke cookies