How to boot from a disk image that's been copied to a partition?
January 5, 2006 1:54 AM Subscribe
I'm trying to boot the Mac OS X Intel installer CD from a hard drive partition (I have no DVD drive). I used dd to write the ISO to /dev/sda6, and I configured grub to boot from it. But grub won't boot it.
First, I created a new (logical) unformatted partition of 20 GB at /dev/sda6. I ran 'dd if=macosx.iso of=/dev/sda6' and then edited grub to boot like:
title MacOSX-Intel
rootnoverify (hd0,6)
chainloader +1
(I've also tried hd0,5 and hd0,7 and others, so that's not the problem.)
When the grub screen comes on, I try to boot the MacOSX-Intel entry. Here's the error I get with the corresponding entry from the grub manual.
13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).
How can I get this bootable disk image to boot from a hard drive partition instead a DVD? I have the full set of Unix tools at my disposal, and I have no problem mucking around at a low level if I need to.
posted by jbb7 to computers & internet (5 answers total)
If it's a regular ISO image, with a sane El Torito boot image, you might try an extractor (I wrote this one, there's another called BBIE for Windows):
http://pangaea.dhs.org/~chahast/etex.pl
to extract the boot data. From there... I guess you could dd it to the first part of the partition, or you might have more success putting it on a floppy.
Then, if something does boot, it'll probably be looking for all the info to be stored on an optical drive. Which it isn't.
Maybe you can put in another hard drive, and write the ISO data to the raw device (/dev/hdx, not /dev/hdx1)?
I guess the obvious question is... why can't you find/borrow/steal/purchase a DVD drive?
posted by lalas at 2:48 AM on January 5, 2006