1 |
Hi, |
2 |
|
3 |
to post a firmware image of my embedded linux computer |
4 |
to a friend I want to size it down. |
5 |
|
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.... |
10 |
|
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. |
15 |
|
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. |
20 |
|
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. |
24 |
|
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. |
28 |
|
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? |
32 |
|
33 |
How can I acchieve that magic ? ;) :) |
34 |
|
35 |
Thank you very much in advance for any help! |
36 |
Best regards, |
37 |
Meino |