To copy a SD-Card to another one including all partitions yo can take the following steps: Find out the device name (f.e.: /dev/mmcblk0): see List, partitioning and format drives or see Get a list of partitions or see Get free disk space and partitions Copy the whole card to an imagefile (Backup): $> sudo dd if=/dev/mmcblk0 of=backup_pi.img bs=4M […]
If you want to create a bootable physical disk from a VDI-File (VirtualBox Disk Image): $> VBoxManage clonehd –format RAW debian.vdi debian.img After that you can dd the image to the target disk like that: $> dd if=path/to/imgfile.img of=/dev/sdb1
To get a bootable SD-Card from an image file (*.img) you can run teh dd command like tahe $> sudo dd if=/home/bravehartk2/Dropbox/Elektrotechnik/Banana/Raspbian_For_BananaPi_v3_0.img of=/dev/mmcblk0 bs=1M && sync This creates the necessary boot bartition and system partition on device /dev/mmcblk0. To get a list of your mounted partitions look here.