Okay I'm trying to create a BOOTABLE Windows7 image on a USB key from a Mac running Lion. My image is .iso format. I tried:

sudo dd if=/Users/myusername/Win7.iso of=/dev/disk1 bs=1m

And this succeeded in writing the files, except in DISK UTILITY on the mac, it shows the partition type as GUID Partition Table and not 'Master Boor Record'. Booting the key on my Vista computer yields the error "No boot sector on USB Device'

From what I can tell, bs=1m in the DD command should have left 1 Megabyte for the boot sector, but for some reason this area of the USB Key is not set up correctly so that it will boot

How can I fix this, or correctly use dd to write a bootable cd image such that it is now a bootable usb drive?

Note: in the instructions I read about, they recommended renaming my Win7.iso to Win7.dmg before using DD, which made absolutely no sense to me, so I didn't do it. I could try with that step now, but it takes 1.99 hours to write the image to the USB drive so there is a huge penalty to trial and error here. Thank you.

link|improve this question
feedback

migrated from stackoverflow.com Dec 16 '11 at 2:23

This question came from our site for professional and enthusiast programmers.

2 Answers

This method doesn't use dd nor have I tested it.

You should be able to use UNetBootIn to transfer the filesystem in the ISO to a USB drive. UNetBootIn is an open-source, cross-platform utility for transfering bootable CD/DVD images to USB drives.

Run UNetBootIn (runs on Windows, Mac OS X and Linux) and select the Disk Image radio button. Then choose ISO from the dropdown menu (ISO is the default) and put the path to the ISO file into the path field. From there select the desired USB drive to transfer it to and click OK.

enter image description here

link|improve this answer
I tested it, it seemed to work, the boot sector is found, but it warns of 'missing operating system'. I am not sure if that is a problem with the image I used, but I doubt it. Going to play with this a little more though since it did appear to write the boot sector properly. – Lana Miller Dec 16 '11 at 11:20
feedback

Use Disk Utility Options to set the partition type to Master Boot Record before you do dd.

enter image description here enter image description here

link|improve this answer
This failed. I was aware of the settings depicted in your screenshots but after doing this first, then DD, the resulting image was still not finding a boot sector. The DD command appears to trash whatever the disk util does anyway, it seems like it is writing in some very low level raw mode. I wish this worked but honestly it didn't, and its stupid that disk util doesn't support .iso images for restore. – Lana Miller Dec 16 '11 at 11:16
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.