How I Recovered My Manjaro Linux System When My Password Stopped Working
There’s nothing quite as frustrating as booting up your Linux laptop one morning and realizing your password isn’t being recognized, even…
How I Recovered My Manjaro Linux System When My Password Stopped Working
There’s nothing quite as frustrating as booting up your Linux laptop one morning and realizing your password isn’t being recognized, even though you know it by heart.
That happened to me recently on my Lenovo X1 running Manjaro Linux (Arch-based). My password simply refused to log in. I tried multiple times, toggled Caps Lock, even switched layouts — nothing worked.
Instead of panicking, I decided to take it as a learning moment. Here’s how I fixed it — and in the process, learned a lot more about Manjaro’s documentation, chroot environments, and encrypted drives.
🧩 Step 1: Understanding the Problem
After confirming my password really wasn’t being accepted, I suspected a deeper system issue, maybe with PAM, encryption, or system updates. I needed a way to access my system from the outside, and that meant using a bootable Manjaro USB stick.
💾 Step 2: Booting Into Live USB Mode
I grabbed a Manjaro ISO and used balenaEtcher to flash it onto a USB drive. Then I booted my Lenovo X1 from the USB (by hitting F12 during startup) and selected “Boot Manjaro (Live)”.
Once on the live desktop, I opened the terminal. My goal: unlock my encrypted drive and “chroot” into my installed system — like stepping into it from the outside.
Step 3: Identifying My Partitions
I listed all storage devices:
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT
Here’s what I saw:
nvme0n1p1 300M vfat
nvme0n1p2 459.7G crypto_LUKS
nvme0n1p3 16.9G crypto_LUKS
The second partition (nvme0n1p2) was my encrypted root.
Step 4: Unlocking and Mounting the Encrypted Drive
To access it, I ran:
sudo cryptsetup luksOpen /dev/nvme0n1p2 cryptroot
sudo mount /dev/mapper/cryptroot /mnt
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
Now /mnt represented my real system. But to make it act like a normal running environment, I needed to “bind” the system directories:
for dir in /dev /dev/pts /proc /sys /run; do sudo mount --bind $dir /mnt$dir; done
Step 5: Entering the System via manjaro-chroot
Manjaro provides a handy command to chroot safely:
sudo manjaro-chroot /mnt
Just like that, I was inside my system as if I’d booted it normally.
🔑 Step 6: Resetting the Password
First, I checked my home directory:
ls /home
It showed my user:
manjaro
Then I reset the password:
passwd manjaro
I entered a new one, confirmed it, and got:
passwd: password updated successfully
Success 🎉
🧰 Step 7: Checking System Health and Updates
Before rebooting, I decided to make sure the system was up to date:
sudo pacman -Syu
To my relief:
:: Starting full system upgrade...
there is nothing to do
Everything was current.
🧭 Step 8: Confirming Keyboard Layout
Since login issues sometimes come from mismatched keyboard layouts, I checked mine:
localectl status
Output:
VC Keymap: us
X11 Layout: us
All good standard US layout. (If needed, I could’ve changed it with loadkeys us.)
🚀 Step 9: Exit, Unmount, and Reboot
Once everything was fixed, I exited cleanly:
exit
sudo umount -R /mnt
sudo cryptsetup close cryptroot
sudo reboot
I removed the USB, waited for the familiar Manjaro logo, and… my new password worked perfectly.
That was one of those quiet victories every Linux user knows well.
Step 10: Reading the Docs (and Why It Matters)
During the process, I also went through the Manjaro Wiki and the Arch Wiki.
Manjaro’s documentation has solid guidance on:
- Using
manjaro-chroot - System recovery from a live USB
- Managing encrypted partitions with LUKS
These docs saved me hours of guesswork. If you’re running a rolling-release distro like Manjaro, learning to navigate the wiki is half the game.
🧠 What I Learned
- Never panic — Linux gives you tools to fix nearly anything.
**manjaro-chrootis your best friend** for system recovery.- Always verify your keyboard layout before resetting passwords.
- The Manjaro and Arch wikis are gold mines of information — seriously.
🧩 Final Thoughts
Linux gives us the freedom to fix what breaks and that freedom comes with responsibility. The process might feel intimidating at first, but once you understand it, you realize how powerful (and forgiving) this system truly is.
If your Manjaro password ever “refuses to join,” don’t wipe your system. Just grab your USB, open a terminal, and chroot your way back to control.
메타데이터
- post_id
- 4b975b6211dd
- slug
- how-i-recovered-my-manjaro-linux-system-when-my-password-stopped-working-4b975b6211dd
- url
- https://medium.com/@davymonte80/how-i-recovered-my-manjaro-linux-system-when-my-password-stopped-working-4b975b6211dd
- canonical_url
- https://medium.com/@davymonte80/how-i-recovered-my-manjaro-linux-system-when-my-password-stopped-working-4b975b6211dd
- author_url
- https://medium.com/@davymonte80
- status
- ok
- fetched_at
- 2026-07-09 21:48:21