SteamDeck重置终端root密码

https://store.steampowered.com/steamos/download/?ver=steamdeck&snr=
下载恢复镜像steamdeck-recovery-4.img.bz2
用rufus(https://rufus.ie/zh/)
将镜像写入到U盘


设备关机
按下[音量]+[开机键].进入引导,选择从U盘启动

进入恢复系统后选择 [Terminal with repair tools] 打开终端

输入以下命令,删除密码文件

sudo ~/tools/repair_device.sh chroot
rm -f /var/lib/overlays/etc/upper/passwd
rm -f /var/lib/overlays/etc/upper/shadow

重启后即可重新运行passwd设置root密码

参考1: https://help.steampowered.com/zh-cn/faqs/view/1B71-EDF2-EB6D-2BB3
参考2: https://www.reddit.com/r/SteamDeck/comments/xrez82/unable_to_reset_your_admin_password_try_this/