I've got an SD card and want to create a partition on it for the ext4 fs. The partition must start after 1MB. This 1MB will be used for a bootloader (u-boot). I'm doing this on OS X Yosemite.

Here's what I do and get:

macbook@terminalx:cubie $ diskutil partitionDisk disk3 2 "Free Space" "%noformat%" 1M "Free Space" "%noformat%" R                                                                                    
Started partitioning on disk3
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Finished partitioning on disk3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *4.0 GB     disk3
   1:                        EFI EFI                     209.7 MB   disk3s1

The result is not what I expect at all. In my mind it must be something like two partitions with no format. First is 1MB and the second is all left free space on the SD card.

How can I achieve this?

Thank you.

  • Hi Grigory. Could you manage to mount ext4 on Yosemite? Interested as well :-) – Ring Ø Nov 16 '14 at 15:23
  • 1
    @ring0 I've managed to mount it according to the answer below. But my goal was to partition an SD card with ext4 partitions. I didn't manage to do that. – Grigory Nov 20 '14 at 5:39

OS X cannot see ext partitions. You would be better to do this on Linux.

You can install support e.g OS X Fuse as outlined in http://osxdaily.com/2014/03/20/mount-ext-linux-file-system-mac/

You will also need FUSE-Ext2 as https://github.com/osxfuse/osxfuse/wiki/Ext

I am not sure if this will allow you to create ext4 partitions, but you can certainly mount them.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .