Make nanoBSD images slightly smaller



  • When I use physdiskwrite to write a 2GB nanoBSD image to a SanDisk Ultra 2GB compact flash card I get the error:
    2000158720/2001194496 bytes writtenWrite error after 2000158720 bytes.
    This seems to be a "standard" error, as evidenced by blogs that document some people's installations. e.g.
    http://haxrbyte.org/?m=201101
    (This blog has the error clearly in the screen image, but no comment in the blog about why the error happened and if the resulting image actually worked)
    I realise that nowadays some 2GB compact flash cards are only a little bit bigger than a "decimal" 2GB (2,000,000,000 bytes), rather than being a full 210241024*1024 bytes.
    Is it reasonably easy to make the provided image sizes be up to a "decimal" GB bytes?
    (e.g. 1,000,000,000 - 2,000,000,000 - 4,000,000,000 bytes)
    This should not cause an issue for those with "full-sized" CF cards - there will just be a little less free space on each slice of the resulting image.
    This would save a lot of people having to ask about this issue when they are writing images to CF cards.


  • Netgate Administrator

    @http://blog.pfsense.org/?p=633:

    Lowered size of CF images to again fix on newer and ever-shrinking CF cards.

    ;D

    Steve



  • Well - that's the quickest fix ever! I have downloaded the pFsense 2.0.1 2GB nanobsd image and written it to a Sandisk Ultra 2GB CompactFlash card. It fits - success. The size is now less than 2,000,000,000 decimal bytes, so hopefully it will forevermore fit on anyone's definition of a 2GB card. Thanks.


Log in to reply