As the image file actually contains data for 2 partitions, after writing to the SD card using dd, Linux does not know that the partition table may have changed.
This can be fixed by using hdparm to re-read the partition table on the SD card.
So, after the dd (or udevadm settle) and before the mount and file write processes, insert:
On: Linux Mint 17.1
As the image file actually contains data for 2 partitions, after writing to the SD card using dd, Linux does not know that the partition table may have changed.
This can be fixed by using hdparm to re-read the partition table on the SD card.
So, after the dd (or udevadm settle) and before the mount and file write processes, insert:
hdparm -z "${disk}"
Cheers,