11.11.2015 07:34, Peter Cheung пишет:
I tried grub-install, but same error message, another thing i discovered is "the size of hostdisk//dev/rdisk2 is 204800", but my hd.img file is 100MB.thanksfrom Peter
...
/toolchain/sbin/grub-install: info: drive = 0. /toolchain/sbin/grub-install: info: the size of hostdisk//dev/rdisk2 is 204800. /toolchain/sbin/grub-install: info: guessed root_dev `hostdisk//dev/rdisk2' from dir `/Users/peter/NetBeansProjects/PeterI/temp/grub/i386-pc'. /toolchain/sbin/grub-install: info: setting the root device to `hostdisk//dev/rdisk2,1'. /toolchain/sbin/grub-install: error: attempt to read or write outside of disk `hostdisk//dev/disk2'.
No, it is not the same message. Now it correctly detects disk2, but it lacks MAC OS X specific code for BIOS device guessing.
grub-install expects device.map in /boot/grub; so put it there (i.e. on filesystem on /dev/disk2s1).
Someone more familiar with OS X need to contribute device detection code for it.
_______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
