Jump to content

how to chroot?


kxmx

Recommended Posts

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines