Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
To: buildroot@busybox.net
Subject: [Buildroot] Genimage last partition size issue
Date: Thu, 26 May 2016 14:49:16 -0300	[thread overview]
Message-ID: <5747371C.40405@zacarias.com.ar> (raw)
In-Reply-To: <CANQCQpa+ViouS7GyWLn4cxw6h4puDmMnLiFMTQy=dhFAfaQX7Q@mail.gmail.com>

On 26/05/16 14:42, Matthew Weber wrote:

>> How should genimage know what the size is of your SD card when you
>> generate the foo.img image? I guess you would need to add size = 4G
>> inside image foo.img { }, but notice that this is isn't very efficient
>> as you will be writing lots of zeros to the sd card.
>>
> Good point, I should have looked a bit closer before forwarding this
> question from one of my developers.  He didn't want to specify the
> size anywhere and wanted it to make the last partition fit the disk.
> Which with pre-builts is obviously not realistic.  Instead he dd's his
> image and then adjusts the partition / re-tunes the fs to make it fill
> the rest of the disk. Whick works....
>
> Thanks
> Matt

Hi Matt.
"Autoresize script" - there are some tricks around for this where you 
grow the partition to fit available space on the media, resize2fs and 
voila. Requires some care though.
Regards.

  reply	other threads:[~2016-05-26 17:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24 15:26 [Buildroot] Genimage last partition size issue Matthew Weber
2016-05-24 15:56 ` Peter Korsgaard
2016-05-26 17:42   ` Matthew Weber
2016-05-26 17:49     ` Gustavo Zacarias [this message]
2016-05-26 18:35   ` Thomas Petazzoni
2016-05-26 18:37     ` Gustavo Zacarias
2016-05-26 18:41       ` Thomas Petazzoni
2016-05-26 18:45         ` Gustavo Zacarias
2016-05-26 19:18           ` Thomas Petazzoni
2016-05-26 19:19             ` Gustavo Zacarias
2016-05-26 19:55           ` Peter Korsgaard
2016-05-26 19:54     ` Peter Korsgaard
2016-05-26 19:59       ` Thomas Petazzoni
2016-05-26 20:05         ` Peter Korsgaard
2016-05-26 21:08           ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5747371C.40405@zacarias.com.ar \
    --to=gustavo@zacarias.com.ar \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox