Reset Steam Deck Root Password: Full Guide
In this article
To reset the root password on a Steam Deck, you need to boot into the recovery environment or use a live Linux USB to chroot into the internal storage and clear the password. The Steam Deck runs on SteamOS (Arch Linux-based), and the root account is normally locked by default, but if you've set a password and forgotten it, this guide will walk you through resetting it. You'll need a USB keyboard and a USB-C hub (or a USB-C to USB-A adapter) for the initial setup, plus a separate computer to create a recovery drive if you don't already have one.
What You'll Need
- A USB keyboard (wired or wireless with a dongle) to type in the terminal.
- A USB-C hub or USB-C to USB-A adapter to connect the keyboard and USB drive.
- A USB flash drive (8 GB or larger) to create a recovery or live Linux drive, if you don't have the SteamOS recovery image already.
- A separate computer (Windows, Mac, or Linux) to download and write the recovery image.
- Basic familiarity with the command line (you'll type a few commands).
Step-by-Step
- Back up any important data (optional but recommended). Resetting the root password via chroot doesn't erase your games or files, but if something goes wrong, you may need to reimage the Deck, which wipes everything. Copy any irreplaceable files to cloud storage or an external drive first.
- Download the SteamOS recovery image from Valve's official support page (help.steampowered.com). Look for “SteamOS Recovery Instructions” and download the recovery image (a .img file, usually around 2.5–3 GB).
- Write the recovery image to a USB drive using a tool like balenaEtcher, Rufus (Windows), or dd (Linux/macOS). On Windows, use Rufus in DD mode. On macOS, use Etcher. This will erase the USB drive—make sure it's empty.
- Power off the Steam Deck completely. Hold the power button for a few seconds, then choose “Shut Down” from the menu, or hold the power button for 10 seconds to force off.
- Connect the USB keyboard and the recovery USB drive to the Steam Deck via the USB-C hub or adapter. If you have a keyboard with a built-in hub, that works too.
- Boot into the boot manager. Hold the Volume Down (–) button and press the Power button. Keep holding Volume Down until the boot menu appears (a list of boot devices).
- Select the USB drive from the boot menu using the D-pad or touchscreen, then press A to boot. The Steam Deck will boot into the recovery environment (a text-based menu).
- Open a terminal. In the recovery menu, you'll see options like “Reimage SteamOS” and “Reset Steam Deck”. Look for a “Terminal” or “Open Shell” option—on the official recovery image, you can press Ctrl+Alt+F2 (or F3) to switch to a TTY terminal. If you don't see that, choose the “Terminal” option if available.
- Mount the internal SSD. In the terminal, you'll need to find the internal drive. Usually it's
/dev/nvme0n1p1(the main SteamOS partition). Runlsblkto list block devices. Look for a partition with a mount point or label like “steamos” or “rootfs”. For example, if you seenvme0n1p1with size ~20GB, that's likely the root partition. - Mount the root partition to /mnt with the command:
sudo mount /dev/nvme0n1p1 /mnt(replace the device name with the one you identified). If you're not sure, trysudo mount /dev/nvme0n1p1 /mntfirst—it's the most common. - Chroot into the SteamOS system. Run:
sudo chroot /mnt. This makes the terminal act as if you're inside the SteamOS installation. - Clear the root password. Once chrooted, run:
passwd -d root. This deletes the root password, making it empty. (If you'd rather set a new password, runpasswd rootand follow the prompts.) - Exit the chroot by typing
exit, then unmount the partition:sudo umount /mnt. - Reboot the Steam Deck. Type
sudo rebootorrebootin the terminal. When it boots, the root password will be empty. You can now log in as root with no password (or set a new one withpasswd).
Common Mistakes
- Booting the wrong device: If you don't hold Volume Down long enough, the Deck may boot normally instead of showing the boot menu. Make sure you see the boot manager screen.
- Mounting the wrong partition: The Steam Deck has multiple partitions (EFI, root, var, home). Mounting the EFI partition (usually
/dev/nvme0n1p1is actually EFI on some models) will not work. Uselsblkto check mount points and labels—the root partition is usually labeled “rootfs” or has a size of ~20GB. - Forgetting to chroot: Running
passwdoutside of chroot will change the recovery environment's password, not the Steam Deck's. Always chroot first. - Not using sudo: In the recovery terminal, you may be logged in as a regular user. Use
sudobefore commands that need root privileges. - Typing the wrong device name: If you type the wrong device (e.g.,
/dev/sdainstead of/dev/nvme0n1p1), you might mount a USB drive or nothing at all. Double-check withlsblk.
Tips
- Use a wired keyboard: Bluetooth keyboards may not work in the recovery environment because the Bluetooth stack isn't loaded. A wired USB keyboard is the safest bet.
- Write down the device name: Before you reboot, note the exact device name (like
nvme0n1p1) so you don't have to guess. - Set a new password immediately: After resetting, if you left the password empty, anyone with physical access can log in as root. Run
passwdto set a new one. - Use the official recovery image: Third-party live Linux USBs (like Ubuntu) can work, but the official recovery image has the correct drivers and tools preinstalled.
- Consider using sudo instead of root: On SteamOS, the default user (deck) has sudo privileges. If you need root access, using
sudois often easier than logging in as root.
Troubleshooting
If the boot menu doesn't appear: Try holding Volume Down and then pressing Power, but keep holding Volume Down for 5–10 seconds. If you still get the normal boot, try Volume Up instead (some units use that). Also, make sure the USB drive is properly inserted and the hub is powered (if it has its own power input, connect it).
If the terminal doesn't open: On the recovery menu, look for an option called “Open Shell” or “Terminal”. If you don't see one, press Ctrl+Alt+F2 (or F3, F4) to switch to a virtual terminal. If that doesn't work, try Ctrl+Alt+F1 to go back.
If lsblk shows no internal drive: The internal SSD may not be detected. Make sure the Deck is plugged into power (the recovery environment may not power the SSD otherwise). If it still doesn't show, try reseating the USB hub and rebooting the recovery environment.
If passwd -d root fails: You might not be chrooted correctly. Run pwd to see if you're in / (the chroot) or /mnt (the recovery root). If you're not chrooted, you'll see the recovery's filesystem. Also, check that the root partition is mounted read-write (it should be by default).
If the Deck boots to a black screen after reboot: This is rare but can happen if the root partition was corrupted. Reboot into recovery and run “Reimage SteamOS” to restore the system (this will wipe your data). If you have a backup, restore it afterwards.
Frequently Asked Questions
Is the root account enabled by default on Steam Deck?
No, the root account is locked by default. You can enable it by setting a password with passwd root from a terminal (using sudo). Until you do that, you can't log in as root.
Will resetting the root password erase my games or settings?
No, the method described above only changes the root password. Your games, saves, and system settings remain intact. However, if you have to reimage the Deck (as a last resort), that will wipe everything.
Can I reset the password without a USB drive?
If you have access to a terminal on the Deck (e.g., in Desktop Mode), you can reset the password directly with sudo passwd root—no USB needed. But if you're locked out of the system, you need the recovery USB.
What if I don't know the deck user's password either?
If you're locked out of the deck user as well, you can use the same recovery method to reset the deck user's password. In the chroot, run passwd deck and set a new one.
Does this work on Steam Deck OLED?
Yes, the process is the same for both the LCD and OLED models. The internal SSD device name may be slightly different (e.g., nvme0n1p1 vs nvme0n1p2), so always check with lsblk.
Can I use a live Linux USB instead of the SteamOS recovery image?
Yes, you can boot any Linux live USB (like Ubuntu) and follow the same steps: mount the SteamOS root partition (usually the largest ext4 partition on the internal drive), chroot, and reset the password. You may need to install arch-chroot or use chroot directly.