On Sat, 16 Jan 2016 04:50:49 +0100, [email protected] wrote: > to post a firmware image of my embedded linux computer > to a friend I want to size it down. > > System wise I did that already (only the really necessary > stuff of Gentoo plus some configuration and addons related > to the embedded system)...the problem comes with the size of > the microSDcard I use: 32 GB.... > > The microSDcard (source) has two partitions (boot + the rest). > The boot partition is the first partition and it is of a fixed > and tiny size. The second partition contains the "rest": Gentoo. > Currently the used space of this partition is also small. > > The image needs to be of a format, which makes > it possble to 'dd' it onto a microSDcard (target) and afterwards use > g/parted to resize/expand the second partition to the end > of the microSDcard to get all storage space available.
Quick and kludgy. Partition an SD card of the correct size, rsync your data to it, then dd that card. Any other method you use will require you to have a smaller SD card to test the resultant image, so you may as well use that as the source and know it works. -- Neil Bothwick Things which must be shipped together as a set, aren't.
pgpaTLSsB82FQ.pgp
Description: OpenPGP digital signature

