Moogs

Create a Bootable USB on OS X

Recommended Posts

Not sure if this has even really been documented here before but to create a USB on OS X do the following. I've had to create these for Ubuntu and other XPE* bootloaders.

 

1. Download the fat img of the bootloader of choice, I believe ext2 fs is also ok, for say Nanoboot. Make a note of its path. In this example we'll say it's saved to the Desktop and we'll use NanoBoot-5.0.2.4-fat.img

2. Plug your USB drive in. It may behoove you to use disk utility to create a FAT formatted partition to ensure there aren't any funky old parition schemes on there.

 

Make it MBR:

Screen_Shot_2014_05_22_at_9_53_44_AM.png

 

Choose the following options:

Screen_Shot_2014_05_22_at_10_17_53_AM.png

 

Open terminal

 

1. Run

diskutil list

2. Locate your USB drive:

 

Screen_Shot_2014_05_22_at_9_59_40_AM.png

 

On the command line run:

 

pwd

should = /Users/

 

Unmount nanoboot parition:

 

diskutil unmount /dev/disk2s1

(changed disk2s1 to whatever is listed as the DOS_FAT_32 NANOBOOT disk, not partition.).

 

sudo dd if=~/Desktop/NanoBoot-5.0.2.4-fat.img of=/dev/disk2 bs=1m

 

15+1 records in

15+1 records out

16384000 bytes transferred in 21.031898 secs (779007 bytes/sec)

Share this post


Link to post
Share on other sites

for faster writes, use /dev/rdisk# instead of /dev/disk# for the dd command

 

https://github.com/abock/image-usb-stick/issues/5

http://superuser.com/questions/631592/m ... n-dev-disk

 

From "man hdiutil"

DEVICE SPECIAL FILES
    Since any /dev entry can be treated as a raw disk image, it is worth not-
    ing which devices can be accessed when and how.  /dev/rdisk nodes are
    character-special devices, but are "raw" in the BSD sense and force
    block-aligned I/O.  They are closer to the physical disk than the buffer
    cache.  /dev/disk nodes, on the other hand, are buffered block-special
    devices and are used primarily by the kernel's filesystem code.

 

Example:

sudo dd if=~/Desktop/NanoBoot-5.0.2.4-fat.img of=/dev/rdisk2 bs=1m

Share this post


Link to post
Share on other sites

I have used Etcher without any problems whatsoever on 3+ XPEnologies that I created myself or helped friends. Worth noting that I modified PID and VID by pressing "C" on the bootmenu of the loader.

 

https://etcher.io

 

Official website.

 

Disclosure: I`m have no affiliations or anything with them.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.