26 April 2009

Install Windows on Macbook Air with no external drive

Normally to install Windows on a Macbook Air through Boot Camp, you require an external SuperDrive. What a pain - I'm not prepared to pay for something I won't use for any other purpose. Of course I could (and have) installed Windows in a VM but it just isn't as speedy; sometimes I need good performance for my Windows apps.

The "normal" way to install apps on a Macbook Air is to use downloaded versions or Remote Disc. Neither will work for your Windows install. However after much experimentation I have come with a solution that will work.

Disclaimer: The solution I am proposing requires you to be both technically literate and careful. You could completely destroy your data if you are not careful so create full backups of everything before you begin. I'm not responsible for anything you do. Additionally, you shouldn't assume that I've done anything the "right" way - this process was created through trial and error, not an expert knowledge of the software or processes in question.


Here's what you need:

  • A Macbook Air with plenty of free hard drive space.
  • A full, legal copy of Windows Vista or Windows 7 (I haven't tried this with XP).
  • Parallels Desktop (A trial version should be enough).
  • A USB drive of any size.
  • Another computer with a DVD drive and Remote Disc software.
  • Your Macbook Air OS X install disc.
To clarify the above, I believe this is more likely to be a success with Vista or 7 because of their image based install process - a generic image is copied to the hard drive and then customised for your system. This process might work with Windows XP but I haven't tried it. If you do feel adventurous enough to try it then let me know how you got on. Additionally, I'll note that although Apple states that only 32-bit operating systems are supported, I have used 64-bit Windows 7 with no problems.

Let's begin.

If you don't have it already, you should download and install Parallels now. If you already have Parallels, be sure to get the latest Parallels updates. Earlier releases don't work with Windows 7, for example.

Now we need to get our Windows installation files onto the Mac. Use another computer to create an ISO disc image of your Windows DVD (unless your Windows is an ISO already). I like ImgBurn (a Windows app) for these purposes. Copy the ISO to your Mac in your favourite way (network, usb drive etc).

Now it's time to launch the Boot Camp Assistant. Follow the process as normal, right up to the point where it's time to start the Windows installation.

At this stage, just quit the installer (⌘+Q).

Hint: Check now that your Boot Camp partition has not decided to mount itself, otherwise Parallels sometimes gets upset. You can unmount it from Disk Utility if needed.
Start up Parallels and create a new virtual machine.
Skip Detection and select your version of Windows. Be sure to choose the Custom option.
 
The defaults are fine until you get to the Hard Disk Options.
As tempting as it is to select Boot Camp Partition, don't do that. Instead, choose No hard disk. Sometimes Parallels seems to set things up wrong when you choose the Boot Camp Partition option here.
Open the configuration for the virtual machine and configure the CD/DVD-ROM. Choose the Windows ISO file you copied over earlier.
 
Click the + button and add a Hard Disk. Now you can choose the Boot Camp Partition option.
 
Last thing to check - choose the Boot Order option and make sure the CD/DVD-ROM is top of the list.
Time to begin! Start your virtual machine.
Hint: Parallels can be really fussy about Boot Camp partitions sometimes. If you get an error when you try to save your configuration or start the VM, a fix that often works is to close Parallels and then run this command in your terminal: mv "/Library/Parallels/Parallels Service.app/Contents/MacOS/BootcampConfigurator" "/Library/Parallels/Parallels Service.app/Contents/MacOS/BootcampConfigurator.old"
Good ol' Windows installer.
Make sure you choose your BOOTCAMP partition. You might find you need to click the Drive Options link then Format your BOOTCAMP partition, depending on the version of Windows your are installing.
Follow the typical installation process but keep your eyes on it. You want it to keep on installing until the first time it tries to reboot. Just as it shuts itself down to reboot, stop the VM!
Quit Parallels.

Here comes the tough part. If you were to reboot now and try to force your Mac to boot Windows it won't work. A typical PC's hard disk has code right at the beginning of the disk which tells it where to find crucial operating system files - the MBR. Windows has gone ahead and installed the MBR but it's installed in its VM, not to the real hard disk. We have to copy this MBR to the real hard disk and at the same time be careful not to mess up the Mac install.

First we need to find the VM's MBR. To do this, locate your Windows VM on your Mac hard drive. Typically this will be in your Documents/Parallels folder. To get to the MBR, right click your VM and choose  Show package contents. Repeat this for your VM hard drive which will share the name of your real hard drive (mine is called SAMSUNG HS082HB.hdd). The PhysicalMbr.hds file is what we need. Copy this to your USB drive.

Now start up Terminal.

We'll use Fdisk to view and modify our MBR as necessary. Let's start by running sudo fdisk -e /dev/disk0. Enter your password.

Type print followed by pressing return to view your current MBR information.

It's important now to note this information, just in case. Note specifically the id column - notice how there's an EE? That's for the GUID Partition Table the Mac uses. You might want to read up about GPT. The takeaway point is that the first sector of the drive is reserved for the MBR, even though we've also got a GPT partition. Note that the Boot Camp partition is listed as Fat-32 despite the fact that I used NTFS on my Windows partition. This is because the real MBR has not been updated with the new partition information.

Type exit and return.

Now we're going to write the new MBR. This part is very dangerous if done incorrectly. Additionally, Mac OS does not allow you to write a new MBR from within the OS. If you try, you will find that access is denied (even for the super user). Instead, we need to boot the Mac OS X Installer and write the MBR from there. So reboot your Mac and use Remote Disc to start the Mac OS X Installer

Hint: Sorry, you can't use your wired ethernet here, only wireless. This is because we have to keep our one USB port free for the USB flash drive. A hub might work if you have one though.


When the OS X installer is ready to go, do not proceed with it. Instead, go to the Utilities menu and open Disk Utility. Click each of your hard drive's partition and unmount each.

Now we will open the Terminal. Make sure your USB drive is plugged in.


Hint: In case you don't know, you must press return after every command in the terminal.

Navigate to your flash drive. To do this, first type

cd /Volumes

Type ls and identify which is your flash drive. Type
cd

The first thing to do is back up your old MBR.

Be very careful entering these commands.
dd if=/dev/disk0 of=backup.mbr bs=512 count=1

This will back up the MBR to a file called backup.mbr on your USB drive.

Now we replace the physical MBR with the one copied from the VM.
dd if=PhysicalMbr.hds of=/dev/disk0 bs=512 count=1


This assumes you didn't rename the VM MBR when you copied it to your USB drive.


Hint: If something bad happens and you need to restore your MBR, type the same command as directly above, but substitute PhysicalMbr.hds for backup.mbr.

Now that we've replace the MBR we need to check it looks ok. Type

fdisk -e /dev/disk0

Type print to view your MBR. The most important thing to check which Windows may have stuffed up is the id of each partition. Your first partition must have an id of EE, your Mac Partition must have an id of AF. If either of these is wrong you must change them (don't worry, this doesn't modify the data on these partitions). For each that is wrong, type setpid n where n is the number of the partition whose id you are changing. Then, when prompted, type the correct id.

When you are done with fdisk, type write and then exit.

You can quit the Mac OS X Installer now.

As the computer boots, just after you hear the chime, hold down the option key on the keyboard. Windows should now be one of the options in your boot menu, so choose it.


Windows should start and continue with installation.


When Windows restarts, remember that you will have to hold down the option key again and choose Windows.

And finally...


Hello Windows.

229 comments:

«Oldest   ‹Older   201 – 229 of 229
HP Printer Assistant said...

hanks for Sharing with nice comment.If you are worried about the problem of HP print doctor. Then come connect to our website. Hp Print & Scan Doctor Software.

Divya roy said...

really good thanks for your info on windows

arasugroups said...

Thank You for sharing this great information....
catering colleges in madurai
catering courses in madurai

Badhiya Hindi said...

Thank you for sharing information about virtual disk . I like your blog.

benefits and routinues exercise bike

Here we see exercise bike routines and benefits. It is useful for our daily routinue. For more information please visit above link.

Divya roy said...

wow very good thanks forwindows

gul ahmed lawn collection 2021 said...

Make sure you choose your BOOTCAMP partition. You might find you need to click the Drive Options link then Format your BOOTCAMP partition, depending on the version of Windows your are installing. black and white salwar kameez designs , black net churidar designs ,

Divya roy said...

good info onapps that are very useful

GURU said...

Hochzeitsfotograf Hamburg / Dortmund / bundesweit. Natürliche Momentaufnahmen. MODERNE FOTOGRAFIE FÜR KREATIVE HOCHZEITEN, PAAR- u. FAMILIENBILDER. => you-me-us.de

SHWETA ARORA said...

Thanks a lot for sharing this post
Gmail Customer Service

kitcbe said...


Shared a good post.Thanks for this useful information...
best colleges for computer engineering

seamoss Bronx said...

You are heard about sea moss gel flavors in The Bronx who is a supplement. You may wonder how you could use sea moss gel flavor. And whether there are other ways to consume their sea moss gel in the Bronx.

seamoss Bronx said...

3. sea moss gel flavors is an alga that has been scientifically proven to promote healthy weight loss. And help build your lean muscle, improve energy. One serving of Sea Moss Gel Flavor provides most of the vitamins and nutrients your body's system needs in a day to keep it healthy.

Eva Jones said...

Yahoo Mail is one of the leading email platforms with over 225 million active users. Over the time, use of Yahoo Mail has significantly increased on smart devices. That said, iPhones are among those devices which when installed with the Yahoo Mail app, can fulfill your emailing requirements on the go.

how to sign in yahoo mail without verification code
Yahoo Mail not receiving emails 2021
yahoo mail for android problems
yahoo mail not working on chrome
yahoo mail delivery error 554

Whatsapp Status said...

Nice Click Watch
Live NetTv Apk
Tea Tv APk
MSNBC Live News
Live Net Tv APk
Chinese new year 2022
Showbox
Whatsappstatus

Nasha Mukti Kendra in Chandigarh said...

Chandigarh's Nasha Mukti Kendra provides detoxification and addiction treatment.
Patients suffering from alcoholism are treated at Nasha Mukti Kender Rehabilitation Center
Alongside those with drug addictions.
In total, Naasha Mukti Kendra has treated more than 4000 drug addicts, providing it with a wide range of experience. 100% of patients have expressed satisfaction with the treatment.
We help you to overcome the addiction to cigarettes, drugs and alcohol.

Anonymous said...

Smm Panel
Smm Panel
İs İlanlari Blog
instagram takipçi satın al
Hirdavatci
beyazesyateknikservisi.com.tr
SERVİS
tiktok jeton hilesi

tripnomadic said...

Thanks for Sharing. Beautiful Places to Chidambaram tourist places, according to Tripnomadic. In Chidambaram, you will be captivated by the charm of the climate, nature's beauty, amazing sceneries, and striking views.

taksi said...

Good content. You write beautiful things.
hacklink
sportsbet
sportsbet
korsan taksi
hacklink
mrbahis
vbet
vbet
mrbahis

mrbahis said...

Good content. You write beautiful things.
vbet
korsan taksi
hacklink
mrbahis
sportsbet
taksi
vbet
sportsbet
hacklink

mobil ödeme bahis said...

Good text Write good content success. Thank you
betpark
kibris bahis siteleri
tipobet
bonus veren siteler
kralbet
poker siteleri
betmatik
slot siteleri

Sedgds said...

binance hesap açma
elf bar
sms onay
UHP8

Malillk said...

betmatik
kralbet
betpark
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
mobil ödeme bahis
GS2R64

Korg said...

betmatik
kralbet
betpark
mobil ödeme bahis
tipobet
slot siteleri
kibris bahis siteleri
poker siteleri
bonus veren siteler
SCUN

Ethem said...

salt likit
salt likit
Q0G

Atalay said...

sakarya
samsun
urfa
uşak
van
yalova
yozgat
384GHH

Lisascott said...

Your bundle deals truly highlight the best in quality and style. It’s evident how much care and effort you put into curating such a fantastic selection. Elevate your payment solutions with a platform designed for convenience and efficiency. Check out and read more to find out how our services can enhance your billing process. Curious to know more?

JulieGrace said...

Your assistance means a lot! Enhance your SFR experience with "en savoir plus" – a platform that simplifies account management beautifully.

Anonymous said...

sridevichart For today’s Sridevi fix single pair and free updates, you will get information on India’s top matka markets, such as Kalyan, Main Milan, and Rajdhani.

Anonymous said...

<a href="https://www.al-mnarr.com/%d8%b4%d8%b1%d9%83%d8%a9-%d8%aa%d9%86%d8%b8%d9%8a%d9%81-%d8%a8%d8%a7%d9%

«Oldest ‹Older   201 – 229 of 229   Newer› Newest»

Post a Comment