Reset a lost administrative root password
Restart the system, and after the BIOS screen, hold down the Shift key. You will then be prompted by a menu that looks something like this:
Select Advanced options for Ubuntu
Now you will see this menu:
Hit the down arrow until you select the 2nd entry from the top (the one with the recovery mode in the description) and then hit Enter .
Now you will see this menu:
Using the arrow keys scroll down to root and then hit Enter .
You will now see a root prompt, something like this:
root@ubuntu:~#
|
mount -n -o remount,rw /
|