How to create GRUB ISO with hdiutils on Mac OS X?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
kyvaith
Posts: 1
Joined: Thu Feb 12, 2015 7:47 am

How to create GRUB ISO with hdiutils on Mac OS X?

Post by kyvaith »

Hi, I realy need help. Is there any way to get a el torito bootable ISO with GRUB bootloader, using hdiutil makehybrid on Mac OS? I need to create hybrid (ISO9660 and HFS+) ISO with hdiutil. I cannot use makeisofs, xorriso, genisoimage etc. I need blessed HFS+ partition in ISO, with is only possible with hdiutil on Mac (xorriso ahould be able to do this, but is buggy). Main issue with hdiutil is, there is no -boot-info-table switch. I've tried to apply info table manual to generated eltorito.img, but it won't work, just hang on boot. Maby different stage1 boot loader, with chanload GRUB? I found two bootloaders that work with hdiutil - ISOLINUX.BIN (syslinux) and cdboot (Chameleon bootloader). But none of them is appropriate for my needs.
Archive with bootloaders: https://drive.google.com/file/d/0BxGYfg ... sp=sharing

Please help :(
palk
Posts: 16
Joined: Mon Nov 15, 2010 8:30 pm

Re: How to create GRUB ISO with hdiutils on Mac OS X?

Post by palk »

If you're using qemu, just use the -kernel argument and skip worrying about a boot loader.
User avatar
deleted
Member
Member
Posts: 82
Joined: Mon Jul 21, 2014 7:23 pm

Re: How to create GRUB ISO with hdiutils on Mac OS X?

Post by deleted »

Wow, just wow. Really?

Don't do what the person above says I'd you really want to test your OS on real hardware.

I develop on a Mac using XCode and a cross compiler, and run my small changes in QEMU first, then on real hardware. As for the bootable image, just either dual boot, or load up lubuntu on an old computer and see what happens!

Good luck!
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: How to create GRUB ISO with hdiutils on Mac OS X?

Post by max »

wxwsk8er wrote:I develop on a Mac using XCode and a cross compiler, and run my small changes in QEMU first, then on real hardware. As for the bootable image, just either dual boot, or load up lubuntu on an old computer and see what happens![
Your post contains just as much information to help solve the problem as the post by palk. Simply none at all. And still you're acting like you knew better than him. You obviously don't. :|


Wooza.

@kyvalth how did you try to create your image (what commands)? Are you using GRUB legacy or GRUB 2 or did you have problems setting the latter up on OS X? Also, what do you want to achieve finally? Maybe theres an easier solution for your case :)
Post Reply