Transfer the img file to the linux machine
Determine micro SD drive name with df command
unmount the drive: ie sudo umount /dev/sdb
execute:
substituting the actual file and device names