Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Make nanoBSD images slightly smaller

    Development
    2
    3
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      phil.davis
      last edited by

      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.

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

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

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

        ;D

        Steve

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          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.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.