Yes, that’s why I asked. Be sure to have a live environment USB drive handy.
To enter a chroot
environmeent
-
Ensure you’ve got a relatively new ISO or at least one with an LTS kernel.
-
Write/copy/dd
the ISO to a USB thumb drive.
-
When done, boot with the above mentioned USB thumb drive into the live environment.
-
Once booted, open a terminal and enter the following command to enter the chroot
environment:
manjaro-chroot -a
If you have more than one Linux installation, select the correct one to use from the list provided.
If sucessfully done, you should now be in the chroot
environment.
But, be careful, as you’re now in an actual root environment on your computer, so any changes you make will persist after a restart.
From the chroot
environment, run the following to change the root
password:
passwd
Follow the prompts. Afterwards, change your user’s password with:
passwd <username>
Where <username>
is the username of your user.
Follow the prompts, and then exit the chroot
environment:
exit
Once done, reboot your computer and see if it worked.