kxmx Posted September 9, 2015 Share Posted September 9, 2015 Hello guys. I need prepare a lot of cards. Is there any way how to chroot img? I use this setup for raspbian http://sentryytech.blogspot.cz/2013/02/faster-compiling-on-emulated-raspberry.html but armbian have only one partition and that is too much voodoo for me. Link to comment Share on other sites More sharing options...
Igor Posted September 10, 2015 Share Posted September 10, 2015 I don't quite understand your question. Please read the documentation first. http://www.armbian.com/documentation/ Than it would be perhaps simpler to ask a right question too. Link to comment Share on other sites More sharing options...
schnapper79 Posted September 15, 2015 Share Posted September 15, 2015 if you need to use chroot for whatever and have an image-file with only one partition: 1) (sudo) fdisk -l /path/to/image.img this will tell you the blocksize (usually 512 byte) and the startblock (lets say 2048) 2) (sudo) mount /path/to/image.img -o offset=$((512 * 2048)) /path/to/mount ((yey, there are the 512 and 2048 again...) 3) now you can follow your mentioned guide again... (copy the qemu-arm-static, mount -o bind the dev, sys and proc and so on....) But just for curiosity: Why you need chroot when getting a complete image? Link to comment Share on other sites More sharing options...
Recommended Posts