Chroot a different ISA drive:


sudo su
apt-get install qemu-user-static
mount /dev/sda1 /mnt
# Copy the static target ISA binary that provides emulation (in this case PowerPC 32bit):
cp /usr/bin/qemu-ppc-static /mnt/usr/bin

#set up chroot:
mount --types proc /proc /mnt/proc && mount --rbind /sys /mnt/sys && mount --make-rslave /mnt/sys && mount --rbind /dev /mnt/dev && mount --make-rslave /mnt/dev && mount --bind /run /mnt/run && mount --make-slave /mnt/run

#Start chroot:
chroot /mnt qemu-ppc-static /bin/bash
source /etc/profile
export PS1="(chroot) ${PS1}"

#To unmount, run:
sudo umount -l /mnt/dev{/shm,/pts,}
sudo umount -R /mnt


----------------------------------------------------------------------------------------------------
Sources:
unix.stackexchange
ask Ubuntu
branden-g.ca

Date: May 7th 2023

Back