Partitioning Issues - 2MB is too small? - Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes) - CHDK Forum supplierdeeply

Partitioning Issues - 2MB is too small?

  • 6 Replies
  • 5077 Views
Partitioning Issues - 2MB is too small?
« on: 15 / March / 2017, 18:19:30 »
Advertisements
The camera that I am working with is a Canon SX210 IS, a camera that is pre-2011 and thus must boot from FAT16, requiring partitioning for large (>4GB) cards.

When I try to use CHDK (started via firmware update) to set up a 2-partition SD card (I'm using a Lexar 16GB SD card here), it automatically makes the boot partition 2MB and unformatted. After formatting that partition with FAT, I am shocked to find that CHDK does not fit on the partition that CHDK created for this purpose. What do I need to do?

Re: Partitioning Issues - 2MB is too small?
« Reply #1 on: 15 / March / 2017, 21:00:43 »
The camera that I am working with is a Canon SX210 IS, a camera that is pre-2011 and thus must boot from FAT16, requiring partitioning for large (>4GB) cards.

When I try to use CHDK (started via firmware update) to set up a 2-partition SD card (I'm using a Lexar 16GB SD card here), it automatically makes the boot partition 2MB and unformatted. After formatting that partition with FAT, I am shocked to find that CHDK does not fit on the partition that CHDK created for this purpose. What do I need to do?
Well, first of all, a  current 1.5.0 build of CHDK needs about 2.6M of space (2,592,000 bytes).  I'm a little surprise that CHDK only created a 2MB partition - that's a bug if so.  As nobody really uses that method to configure a card anymore AFAIK, it might have slipped through the cracks as CHDK has grown a bit in size.

I'm sure someone will take a look at that.  Meanwhile, the fastest way for you to get past this is to use STICK instead. Or any one of the other methods listed here : Prepare your SD card : cameras released before 2011
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14117
Re: Partitioning Issues - 2MB is too small?
« Reply #2 on: 15 / March / 2017, 21:44:00 »
Well, first of all, a  current 1.5.0 build of CHDK needs about 2.6M of space (2,592,000 bytes).  I'm a little surprise that CHDK only created a 2MB partition - that's a bug if so.
The boot partition only needs to have the diskboot.bin, all the supporting files need to be on the other partition. So technically, 2MB is enough, but I'd agree it's a bit silly to make it 2MB when it only applies to cards > 4GB.

The partitioning option is hacky even by CHDK standards, I've always stayed away from it and avoided recommending it.

Don't forget what the H stands for.

Re: Partitioning Issues - 2MB is too small?
« Reply #3 on: 15 / March / 2017, 21:51:33 »
The boot partition only needs to have the diskboot.bin, all the supporting files need to be on the other partition. So technically, 2MB is enough,
Doh.  I knew that.  Really I did.

Quote
but I'd agree it's a bit silly to make it 2MB when it only applies to cards > 4GB. The partitioning option is hacky even by CHDK standards, I've always stayed away from it and avoided recommending it.
I guess I should therefore make some kind of a note to that effect on the universally disparaged by newbies (but only correct and complete) Prepare your SD card wiki page.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline reyalp

  • ******
  • 14117
Re: Partitioning Issues - 2MB is too small?
« Reply #4 on: 15 / March / 2017, 22:00:15 »
Doh.  I knew that.  Really I did.
I almost posted a completely different reply before I remembered that :P
Don't forget what the H stands for.

Re: Partitioning Issues - 2MB is too small?
« Reply #5 on: 16 / March / 2017, 00:41:56 »
Doh.  I knew that.  Really I did.
I almost posted a completely different reply before I remembered that :P
Did you ever worry that .. maybe .. "we" have been doing this too long?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline zeno

  • *****
  • 891
Re: Partitioning Issues - 2MB is too small?
« Reply #6 on: 16 / March / 2017, 07:20:16 »
As it happens, when STICK has to partition a card it makes the small FAT16 partition 16MB, much bigger than needed. I can't remember now why I chose that size (it was a long time ago).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal