Anyone know of a Linux port of the Mac OS tool hdiutil (http://www.unix.com/man-page/osx/1/hdiutil/)?
Asked
Active
Viewed 1.3k times
2 Answers
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.
Daniel Beck
- 111,893
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
milahu
- 297