Linux/RaspberryPi
From Wiki
< Linux
chroot into a Raspberry Pi
Mount sequence
mount /dev/sdb3 /mnt mount /dev/sdb2 /mnt/boot mount /dev/sdb1 /mnt/boot/firmware mount -o bind /proc /mnt/proc mount -o bind /sys /mnt/sys mount -o bind /dev /mnt/dev mount -o bind /dev/pts /mnt/dev/pts cp /usr/bin/qemu-arm-static /mnt/usr/bin chroot /mnt
Doing stuff in chroot
Example: Fixing a broken apt install
dpkg --configure -a apt -f install exit
Unmount sequence
umount /mnt/dev/pts umount /mnt/dev/ umount /mnt/sys umount /mnt/proc umount /mnt/boot/firmware umount /mnt/boot/ umount /mnt
Gotchas
- kernel7.img - This is the kernel file for Raspberry Pi 2. Others use kernel.img