manage correctly loop device number, not as a fixed value, but depending of the curretn host configuration. add also trace and comments
manage correctly loop device number, not as a fixed value, but depending of the curretn host configuration. add also trace and comments

Conflicts:
	prepare_sdcard.sh

sbxg/sbxg,sbxg/sbxg