Gentoo Archives: gentoo-user

From: Meino.Cramer@×××.de
To: Gentoo <gentoo-user@l.g.o>
Subject: [gentoo-user] Creating an firmware image from a too large microSDcard...?
Date: Sat, 16 Jan 2016 03:51:13
Message-Id: 20160116035049.GA4932@solfire
1 Hi,
3 to post a firmware image of my embedded linux computer
4 to a friend I want to size it down.
6 System wise I did that already (only the really necessary
7 stuff of Gentoo plus some configuration and addons related
8 to the embedded system)...the problem comes with the size of
9 the microSDcard I use: 32 GB....
11 The microSDcard (source) has two partitions (boot + the rest).
12 The boot partition is the first partition and it is of a fixed
13 and tiny size. The second partition contains the "rest": Gentoo.
14 Currently the used space of this partition is also small.
16 The image needs to be of a format, which makes
17 it possble to 'dd' it onto a microSDcard (target) and afterwards use
18 g/parted to resize/expand the second partition to the end
19 of the microSDcard to get all storage space available.
21 If I dd the source into an image I get all those zeroes also and
22 the image only will fit onto a microSDcard (target) of at least
23 the same size.
25 If I dd each partition separately I get two files and the partition
26 table is not copied...may be technically possible but not user
27 friendly.
29 How can I manage to get an image from my microSDcard (source), which
30 only consists of the used space in a way that it can be put onto
31 another microSDcard (target) in the waay described above?
33 How can I acchieve that magic ? ;) :)
35 Thank you very much in advance for any help!
36 Best regards,
37 Meino


Subject Author
Re: [gentoo-user] Creating an firmware image from a too large microSDcard...? "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] Creating an firmware image from a too large microSDcard...? Neil Bothwick <neil@××××××××××.uk>