Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

darkgoob

macrumors 6502
Original poster
Oct 16, 2008
315
305
This is a notification to users of a bug in Mac OS X Lion. I have also posted this on Apple Discussions here. On Macs that do not have internal optical drives (Mac Mini or MacBook Air), the Boot Camp Assistant 4.0.1 can potentially reformat the wrong external storage device in a case where the user has multiple external volumes, when creating the Windows Installer from a Windows 7 .ISO disk image file. (In my case the disk image was on an external drive that Boot Camp Assistant reformated due to this bug.)

This is how I produced this issue:

I have a friend's brand new Mac Mini 2011 with 10.7.1. I wanted to create a Boot Camp parition, so I started Boot Camp Assistant.

On the Mac Mini the Boot Camp Assistant gives you three options: (1) Create a bootable USB volume, (2) Download and burn the Apple drivers to CD/DVD, and (3) Install Windows on your Boot Camp Partition. Option (1) is new to Lion as mentioned by Apple here:
Support for the Windows 7 ISO installer
Install Windows with an installation disc you provide or, on Mac computers that do not have an optical drive, with a USB flash drive that contains a Windows 7 ISO image downloaded from Microsoft. The Boot Camp Assistant will offer to create this image on supported computers.


Apple's website does not say that you MUST install from a USB drive and not a DVD, and the Boot Camp Assistant screen does not say you can't either. Since I have an external LaCie DVD-RAM drive, I figured that I should just install Windows the old fashioned way -- from the DVD.

So, I unchecked Option (1) and used Boot Camp Assistant to create a new partition on the internal drive, on which to install Windows 7. The partition itself was successfully created on the internal hard drive of the Mac Mini. I burned the Apple drivers to CD using an external USB LaCie DVD-RAM drive. Next I inserted the Windows 7 disk into the external DVD drive, and pressed Continue to restart the Mac and install Windows. However the computer just showed a green screen with the text saying basically, "No bootable volume found."

At this point I don't know why it would not boot up from the Windows 7 disc that was in the DVD-RAM drive, since that disc worked fine on my Mac Pro for creating the Boot Camp partition, and evidently it is OK with installing from a USB stick. I even tried my friend's Windows 7 disc that he had brought, which was the same version, but it also failed.

So after hard-restarting the Mini, we got the ISO file and a 16GB USB stick and proceeded to try it the other way. The ISO file had been downloaded onto a USB hard drive that had two partitions: an HFS+ partition and a FAT-32 partition. They were called "Velcro" and "Velcro DOS." We used my Mac Pro to copy the ISO file onto that USB hard drive, then attached that drive to the Mac Mini along with the 16GB USB stick that was called "SIXTELN."

We opened Boot Camp Assistant and checked all three options. It asks you to select the Windows 7 ISO file, and I did select it on my external volume called "Velcro." Then it asks to choose which device to create the installation partition on. I selected "SIXTELN" to reformat and made sure that was the correct volume when it reminded me that I would lose all my data. So I hit "Continue" and then what happened next is that it formatted the wrong drive.

Boot Camp Assistant creates a volume called WININSTALL from which the Mac will boot, and from which Windows will be installed.

Let me resummarize for those of you who cannot accept the fact that this could actually be possible.

I attached my USB hard disk which two partitions, one Mac HFS+ and the other FAT 32 (entitled "Velcro" and "VelcroWin" respectively). Then I inserted the USB stick, a 16GB SanDisk Cruzer called "SIXTELN." The Mac HFS+ volume "Velcro" contained the Windows 7 ISO file, which I selected in Boot Camp Assistant to use for creating the startup USB disk. Next, I selected the USB stick "SIXTELN" as the device to reformat and use for creating the bootable Windows 7 installer. I then double-checked that I had selected the correct device, and even "SIXTELN" in the Finder to make sure there were no files on it that I couldn't stand losing. I clicked Continue to proceed, and was presented with a warning that "SIXTELN" would be erased and all its files deleted. I pressed "continue" and then I was confounded as the WININSTALL volume that was created showed 322 GB available, and an error message appeared in Boot Camp Assistant saying that it could not continue.

That was when I realized the truth:

Boot Camp Assistant had erased the entire USB hard disk including both both partitions, one of which contained the Windows 7 ISO file that I had selected to install from! The installation could not complete because it could not find the Windows 7 ISO file anymore! The software never warned me it was going to erase the Volume entitled "Velcro" nor "VelcroWin". It shouldn't have done so anyway, since the ISO file was on "Velcro"!

Software should never delete a file it is planning to read from, then try to read from it. Ever. For example, Disk Utility will not allow you to reformat your startup volume, because it's impossible, since Disk Utility depends on files that are on the startup volume! Boot Camp Assistant should not ever reformat the volume containing the Windows ISO file that has been selected to install from.

I suspect an error in the code of Boot Camp Assistant (like using the wrong variable) resulted in the software formatting the wrong drive. I'm certain, because I had named the volume for installation, "SIXTELN" and when I selected it, I switched to the finder to open it and look at its contents, then switched back. Then it said basically, "Are you sure you want to reformat the volume, SIXTELN, which will delete all its contents?" And I said yes to this.

From what I have read on the Apple forums today, many people have had many problems trying to install Windows 7 onto MacBook Airs and Mac Minis due to their lack of DVD drives. There are a ton of bugs in Boot Camp Assistant and this whole process is confusing and not clearly documented. Personally with all due respect, in the case of MacBook Airs then I can understand the omission of a DVD drive. But in the case of Mac Mini, I cannot understand it at all. Macs are supposed to be simple to use; read this other thread and witness the complexity that users have had to go through just to get Boot Camp running on a MacBook Air or Mac Mini.

Further I cannot understand why Apple makes Macs that require booting from a USB stick to install Windows 7, but that do not allow users to simply install from an external USB DVD drive. If you're going to remove the DVD drive from the computer then at least give users an alternative solution that is not buggy.

Also see this thread about how to properly install Windows 7 on Lion if you have a Mac Mini or MacBook Air without the optical drive, without a DVD drive. An external DVD drive will not work.
 

prasetyo

macrumors newbie
Oct 4, 2011
2
0
I have the same experience, I tried to install Windows 7 using bootcamp assistant 4 into my new macbook air 2011. My windows 7 iso file was stored in one of two partition of my external 500 GB hard drive. I was also using a 8GB usb drive to store the "windows drivers" which supposedly downloaded during the installation process.

I plugged the external hard drive in one MBA's usb slot and the usb on another slot, initiated the process.

I think the process happens for around 10 minutes or so when an error message showed up. I thought the problem was simply failure to mount/copy the iso file to the usb drive. But I then realized that my entire 2 partition 500 GB external hard drive was wiped clean into a single wininstall partition.

I am now on my second days running a hard drive recovery program in windows trying to get my data back.
 

darkgoob

macrumors 6502
Original poster
Oct 16, 2008
315
305
one of the post in this thread https://discussions.apple.com/message/16239130#16239130 suggest that the ISO file should be placed in a desktop before load it from bootcamp. Is this an advisable method? will the bug erase the desktop hard drive when it try to loading the iso file?

It worked when I put the ISO file on the internal hard drive first. DO NOT have an external hard drive connected -- only the USB stick -- when creating the WININSTALL partition!!

I believe the bug comes from the fact that the Bootcamp Assistant uses Spotlight to find where the drive is, but it misidentifies it because it doesn't count the extra FAT32 partition or something. I don't really know though.

Try using Data Rescue 3 -- it worked for me and seems to have recovered all the files from my Mac partition, and a lot of the ones from the Windows partition. It even got the creation dates and folder structure!

-=DG=-

Sorry this happened to you, man. It sucks. Especially because people on Apple discussions will tell you that you're crazy and it's your fault etc.
 

Emyee

macrumors newbie
Sep 3, 2012
1
0
Data Rescue for Mac or Windows

Same thing just happened to me. :( I spent the last 24 hours thinking I had done something wrong, trying to figure out how I could have been dumb enough to select the wrong menu option and reformatted the wrong drive.

Now I'm trying to figure out how to recover my external hdd. I see you were able to do it using Data Rescue 3. I'm wondering whether you used the Mac version, or the Windows version, or if it matters. If it makes a difference, my external hdd was originally formatted as FAT32 so it would be readable by both my PC and Mac, but I have primarily used it with a PC.

I'd be super grateful for any guidance you can provide. Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.