chroot into raspberry pi
Posted: 31. May 2019, 08:32
I forgot my password so couldn't ssh into my headless pi. Problem solved by generating a new password and hash
and editing /etc/shadow
But I'm sure I remember chrooting into the mounted SD card. This was the first avenue I explored, and the solution commonly suggested uses qemu-user-static:
https://wiki.debian.org/RaspberryPi/qemu-user-static
However, this doesn't appear to be straightforward in Slackware (I have qemu installed and can't find that thing, though this old slackbuild from alienbob looks as though it builds it:
https://docs.slackware.com/howtos:emulators:binfmt_misc)
I have a niggling feeling there is a much easier way and I have just forgotten it.
Code: Select all
openssl passwd -1 'password'
But I'm sure I remember chrooting into the mounted SD card. This was the first avenue I explored, and the solution commonly suggested uses qemu-user-static:
https://wiki.debian.org/RaspberryPi/qemu-user-static
However, this doesn't appear to be straightforward in Slackware (I have qemu installed and can't find that thing, though this old slackbuild from alienbob looks as though it builds it:
https://docs.slackware.com/howtos:emulators:binfmt_misc)
I have a niggling feeling there is a much easier way and I have just forgotten it.