About
Activities
SNS
How to launch as single user mode raspberrypi
2025-04-17
linux
raspi
Access the SD Card via another device(like MacBook).
Append
init=/bin/sh
on the last of
cmdline.txt
.
Boot with the modified SD Card.
Execute
mount -o remount, rw /
.
Do recovery like
passwd piuser
and shutdown.
(After ejecting the SD Card)Remove
init=/bin/sh
from
cmdline.txt
.
参考:
https://codeaid.jp/blog/rasppi-pass/