You can adapt from the blog post I wrote here. Using tar, to backup the rootfs, and other partitions. And sfdisk to create the the partitions.
http://www.embeddedhobbyist.com/2015/09/beaglebone-black-working-with-debianlinux-images/ On Fri, Oct 9, 2015 at 10:26 AM, Boris Ostrovskiy <[email protected]> wrote: > I have a 32GB drive (SD card) with 4 partitions. Total partitioned space > is <2GB. > > I need to make an *.img file so that I can clone it to other SD cards > which are smaller than 32GB. > > If I just use "dd" I get an image file that is the full size of the card - > 32GB. > > This is all under Linux and the SD card is bootable, so can't just copy > files. > > Any suggestions? > > > Thank you, > > > Boris. > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
