On 06/12/2012 07:00 PM, John Cooper wrote: > Hi Gordan, > > The extra size of the CLI file came from 'yum-ing around' and not > removing all the extra packages. I have now gone through them and saved > quite a bit of space. > > There is extra stuff over the original - most notably the rpi-update > utility, which we need as we are not using a RedSleeve kernel and its > getting updated pretty quickly on the Raspberry Pi at present.
Excellent. > I ensured there is no overhead in the compressed file by mounting up the > image and filling all free space from /dev/zero/ then delete before > compressing. > > Something like: #dd if=/dev/zero of=/mnt/zero.bin bs=1M count=730; rm > /mnt/zero.bin There's a cheaper way. Say you make the initial image size 1.5GB, just to make sure it'll fit on even the smallest "2GB" SD card. You can: touch pi.img dd if=/dev/zero bs=1 count=1 seek=1499999999 of=pi.img That will give you a file that is using up 1 byte (well, OK 1 block + metadata, obviously). Check with du pi.img You can then loopback mount it, partition, and mkfs. This will increase the size of the file but it will still be tiny. Then untar the image to it, unmount and re-check. du should show that the file only grew by approximately the size of the (uncompressed) tar ball (+ metadata, of course). That saves you dd-ing from /dev/zero and the resulting image will still be perfectly dd-able to the target SD card. > The new logo on the wiki looks lovely :) Thanks, it's one of the logos from the replacement logos rpm package. > Finally I have upgraded the files to include the latest Raspberry Pi > kernel/firmware as its been updated to improve quite a few things, and > I've fixed an error where the image sizes were slightly too big for 2Gb > cards. Great. I updated the wiki page. Please review and modify further if/as you see fit. > So updated links for version 0.3 are listed on the usual place > http://opensource.wrenhill.com/?p=123 Yes, I added a link to it on the wiki page with the credits. Gordan
