CHDK: FAT16 chicanery & Mac OS X

1,356 views
Skip to first unread message

Mathew Lippincott

unread,
Jun 27, 2010, 3:05:57 PM6/27/10
to grassroo...@googlegroups.com
I don't have immediate access to a PC or any sized SD card less than 4gb or more than 256mb.  Does anyone know how to successfully partition & Format a drive to FAT16 in MacOSX?

Here is what I tried with a 4gb card, and the results:

at the command line:


diskutil partitionDisk disk3 MBRFormat "MS-DOS FAT16" KINGSTON 4G

Error: -9962: The chosen size is not valid for the chosen filesystem



I got this error for every size partition, can't figure out how to sub-divide the card.  thoughts?


Mathew

Jean-Baptiste LABRUNE

unread,
Jun 27, 2010, 3:11:32 PM6/27/10
to grassroo...@googlegroups.com
did you try diskutil partitionDisk disk3 MBRFormat "MS-DOS FAT16" KINGSTON 4000M ?


cheers,
Jb

--

Jean-Baptiste LABRUNE
Tangible Media Group
MIT Media Lab
20 Ames St E14-464C
Cambridge, MA 02139, USA




Mathew Lippincott

unread,
Jun 27, 2010, 4:41:53 PM6/27/10
to grassroo...@googlegroups.com

Yes, I tried 4000m, same problem

On Jun 27, 2010 12:11 PM, "Jean-Baptiste LABRUNE" <lab...@media.mit.edu> wrote:

did you try diskutil partitionDisk disk3 MBRFormat "MS-DOS FAT16" KINGSTON 4000M ?


cheers,
Jb


On Jun 27, 2010, at 3:05 PM, Mathew Lippincott wrote:

> I don't have immediate access to a PC or a...

Jeffrey Warren

unread,
Jun 27, 2010, 5:43:37 PM6/27/10
to grassroo...@googlegroups.com
Try this, from (http://chdk.wikia.com/wiki/Bootable_SD_card):

Under MacOS X Leopard, the following series of steps will work:

  • Load your SD card in a card reader (unless your camera appears as a disk drive when you connect it)
  • Open Disk Utility and highlight the volume. Click "Info" and look for "Disk Identifier". For me, it was /dev/disk2s1
  • close the Info window
  • With the volume highlighted (not the "drive"), click "Unmount".
  • From a Terminal command line, run a command like this:
sudo newfs_msdos -F 16 -v MYSDCARD -b 4096 -c 128 /dev/disk2s1

If you get an error on the Mac command line after running this command like "newfs_msdos: warning: /dev/disk2s1 is not a character device" go ahead and re-mount the drive in the Apple Disk Utility. The drive should still show up as a FAT 16 drive, you can then continue.

Gabriel Giannini

unread,
Sep 20, 2016, 4:49:26 PM9/20/16
to grassrootsmapping, war...@mit.edu
Hey Jeffrey,

I am using El Capitan and trying this command on a 4G SD. I do get the error message (is not a character device). After remounting I should reenter the command line again? What if I get the same error again?

I am trying to prepare this card for a graphic calculator and I couldn't find any smaller card for sale. Your message was the most helpful until now. 
Reply all
Reply to author
Forward
0 new messages