Reset ubuntu root and GRUB password

To Reset Root Passwd

step1 :- Restart your server or desktop

step2 :- press continue shift untill boot menu show

step3 :- select ubuntu generic second option press Enter

step4 :- then select root shell press Enter

step5 :- type mount -o rw,remount / or # mount -o remount,rw / or mount -rw -o remount /

step6 :- sudo passwd root or passwd root assign passwd and then repeat again the same passwd

Note :- in place of root you can set your name,hostname any name that u assign during installation OR Login.

You can also Create NEW USER
step7 :- sudo adduser ubuntu and give new passwd

GRUB Password:

  1. Boot the system with an Ubuntu live USB or DVD and try to switch to rescue mode. In rescue mode you will be asked if similar steps should be followed, which need to be followed in the installation. Once you get the # prompt, type the following command:chmod /mnt/sysImage
  2. Edit the grub.conf file and remove the passwd line from the file. Save the file and exit.
  3. Once your machine reboots, you will be able to start your Ubuntu in the usual manner.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s