Skip to main content
fixed up for EXT 3
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15

Install EXT4mkfs.ext4 brew install e2fsprogs. This will not add support to the Disk Utility, but it can be runallow you to make an EXT4 partition. You will also need to mount it to extract the Arch Linux tar to it, so also get yourself brew cask install osxfuse && brew install ext4fuse.

Find my SD Card.

Find SD Card Device Node

Setup BOOT partition.

Setup BOOT partition.

Setup ROOT partition.

Setup ROOT partitionCaveat: I am using EXT 3 instead of EXT 4, the non-journaled variant, because the FUSE implementation does not support writing to journaled EXT yet, and I could not find the no_journal option mentioned here: https://github.com/gerard/ext4fuse/wiki/Write-Support. As soon as it gets implemented, an EXT 4 write on MacOS will be possible.

$(brew --prefix e2fsprogs)/sbin/mkfs.ext4ext3 /dev/disk2s2
$(brew --prefix ext4fuse)/bin/ext4fuse /dev/disk2s2 /Volumes/ROOT -o allow_other

Install EXT4 brew install e2fsprogs. This will not add support to the Disk Utility, but it can be run.

Find my SD Card.

Setup BOOT partition.

Setup ROOT partition.

$(brew --prefix e2fsprogs)/sbin/mkfs.ext4 /dev/disk2s2

Install mkfs.ext4 brew install e2fsprogs. This will not add support to the Disk Utility, but it allow you to make an EXT4 partition. You will also need to mount it to extract the Arch Linux tar to it, so also get yourself brew cask install osxfuse && brew install ext4fuse.

Find SD Card Device Node

Setup BOOT partition.

Setup ROOT partition.

Caveat: I am using EXT 3 instead of EXT 4, the non-journaled variant, because the FUSE implementation does not support writing to journaled EXT yet, and I could not find the no_journal option mentioned here: https://github.com/gerard/ext4fuse/wiki/Write-Support. As soon as it gets implemented, an EXT 4 write on MacOS will be possible.

$(brew --prefix e2fsprogs)/sbin/mkfs.ext3 /dev/disk2s2
$(brew --prefix ext4fuse)/bin/ext4fuse /dev/disk2s2 /Volumes/ROOT -o allow_other
updated for ext4
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15

Indicates that MS-DOS FAT 32 is supported. But EXT 4 is not.

Install EXT4 brew install e2fsprogs. This will not add support to the Disk Utility, but it can be run.

Setup BOOT partition.

                      # /dev/node  PARTSCHEME FS LABEL SIZE (R=remainder, 100%)
diskutil partitionDisk /dev/disk2 MBR FAT32 BOOT 100M FAT32 ROOT R

macOS will automount the new partition at /Volumes/PIBOOT, so skip the mount step.

Setup ROOT partition.

$(brew --prefix e2fsprogs)/sbin/mkfs.ext4 /dev/disk2s2

Unmount and you are good to go  . (which probably flushes out the buffers anyway)

Indicates that MS-DOS FAT 32 is supported.

                      #/dev/node  PARTSCHEME FS LABEL SIZE (R=remainder, 100%)
diskutil partitionDisk /dev/disk2 MBR FAT32 BOOT 100M FAT32 ROOT R

macOS will automount the new partition at /Volumes/PI, so skip the mount step.

Unmount and you are good to go  (which probably flushes out the buffers anyway)

Indicates that MS-DOS FAT 32 is supported. But EXT 4 is not.

Install EXT4 brew install e2fsprogs. This will not add support to the Disk Utility, but it can be run.

Setup BOOT partition.

                       /dev/node  PARTSCHEME FS LABEL SIZE (R=remainder, 100%)
diskutil partitionDisk /dev/disk2 MBR FAT32 BOOT 100M FAT32 ROOT R

macOS will automount the new partition at /Volumes/BOOT, so skip the mount step.

Setup ROOT partition.

$(brew --prefix e2fsprogs)/sbin/mkfs.ext4 /dev/disk2s2

Unmount and you are good to go. (which probably flushes out the buffers anyway)

added 43 characters in body
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15
# unmountDisk unmounts both ROOT and BOOT
diskutil unmountunmountDisk /Volumes/{BOOT,ROOT}
diskutil unmount /Volumes/{BOOT,ROOT}
# unmountDisk unmounts both ROOT and BOOT
diskutil unmountDisk /Volumes/ROOT
added 47 characters in body
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15
Loading
added 247 characters in body
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15
Loading
added 119 characters in body
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15
Loading
fixed md
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15
Loading
Source Link
Jonathan Komar
  • 512
  • 2
  • 5
  • 15
Loading