9

Anyone know of a Linux port of the Mac OS tool hdiutil (http://www.unix.com/man-page/osx/1/hdiutil/)?

2 Answers 2

8

hdiutil is Apple proprietary software and not part of the public Darwin source code. Since Apple doesn't provide it, a port is not possible.

0

assuming your goal is to boot a linux iso on mac hardware (macbook, ...),
in other words: create a bootable USB drive for mac hardware on linux

in macos, you would use hdiutil like

hdiutil convert image.iso -format UDRW -o image.dmg
diskutil list # find the USB drive, for example: disk2
N=2
diskutil unmountDisk disk$N
dd if=image.dmg of=/dev/rdisk$N # "rdisk" is faster than "disk"

in linux, you can use etcher, which is a graphical tool to "flash OS images to SD cards & USB drives"

note: etcher is closed-source software. maybe you can use a similar tool like unetbootin

to boot from USB on mac hardware, see Create a bootable installer for macOS

You must log in to answer this question.

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