2015年10月31日 星期六

Installing Windows 7 on Macbook Late 2008

http://zhen.org/blog/installing-windows7-on-macbook-late-2008/

Installing Windows 7 on Macbook Late 2008


Over the weekend I wanted to install Windows in a bootcamp partition so the kids can use it to do their Chinese homework. The Chinese homework CD unfortunately only works in Windows so I had no choice!! I guess I could have taken other routes, like installing Windows in a VM or something, but I figure that Mac has this awesome tool called bootcamp, why not use that?
Well, how wrong I was! I went through a whole day of head-scratching, temper-inducing, word-cussing, USB-swapping and machine-rebooting exercise of getting Windows installed in the bootcamp partition. I almost went as far as buying a replacement superdrive for the macbook, but at the end I finally was able to get Windows 7 onto the Macbook.
To start, my laptop is a Macbook, Aluminum, Late 2008 (MB467LL/A) with a busted optical drive (superdrive). I originally had Mavericks running on it but before this exercise I wiped it clean and installed Yosemite on it. Because the optical drive is busted, I cannot use the Windows 7 DVD, so I had to do this using a USB flash drive.
Below are the steps I took to make this work. I can’t guarantee that these steps will work for you, but it’s probably good as a reference. Having seen a ton of articles on the problems people had with bootcamp, I hope no one has to go through the troubles I went through.
  1. It took me a while to figure this out (after reading numerous online posts), if your Mac has an optical drive, Boot Camp Assistant will NOT create a USB flash drive-based install disk. The only way to trick the system to do that is to do the following: (Though it turns out at the end that this step is quite useless, since the USB install disk created by Boot Camp Assistant couldn’t boot! So you could really skip this step.)
    1. Modify Boot Camp Assistant’s Info.plist as described here.
    2. After the modification, you need to resign Boot Camp Assistant, or else it will keep crashing. To do that, following the instructions here. For the impatient, run the command sudo codesign -fs - /Applications/Utilities/Boot\ Camp\ Assistant.app.
  2. Start “Boot Camp Assistant”, and select the options “Download the latest Windows Support”, and “Install Windows 7 or later versions”.
    • Note I am not selecting the option to create a Windows install disk. It turned out the USB install disk didn’t boot. I keep getting the “non-system disk, press any key to continue” error, and basically that’s the end.
    • In any case, these two tasks should download the bootcamp drivers onto a USB drive, and also partition the Mac’s HD into two partitions. One of the parititions is the BOOTCAMP partition, which will be used to install Windows 7.
  3. Once that’s done, I needed to create a bootable Windows 7 USB Flash drive.
    • If you search the web, you will find that most people run into two problems. The first is the bootcamp-created flash drive giving the “non-system disk” error, and the second is the boot up hangs with a blank screen and a flash underscore cursor at the top left corner. I’ve ran into both. You will also find some articles that explain how to make the flash drives bootable using fdisk, but that didn’t work for me either.
    • Finally I found a post online that pointed to the Windows USB/DVD Download Tool. It’s a Windows program that can create a bootable USB flash drive from a Windows 7 or 8 ISO file.
    • Note though, not all the USB flash drives are created equal. The PNY 16GB drive I used didn’t work. WUDT ended with an error that says it couldn’t run bootsect to create the boot sectors on the flash drive. The one that worked for me was Kingston Data Traveler 4GB.
  4. Now that I have the bootable USB flash drive, I plugged that into the Mac and started it up. This time the installation process got started.
  5. When Boot Camp Assistant created the BOOTCAMP partition, it did not format it to NTFS. So the first thing I noticed was that when I select the BOOTCAMP partition, the installer said it cannot be used because it’s not NTFS.
    • The option to format the partition is not immediately obvious, but I had to click on “Drive options (advanced)” and select the option to format the partition.
    • Once that’s done, I encountered another error that says the drive may not be bootable and I need to change the BIOS setting. Yeah at this point I was pretty ticked and the computer heard a few choice words from me. Doesn’t matter what I do it doesn’t seem to let me pass this point.
    • I did a bunch more readings and research, but nothing seem to have worked. I finally decided to turn the computer off and come back to it. Magically it worked the second time I tried to install it. I was no longer getting the non-bootable disk error. My guess is that after the NTFS formatting, the installer needs to be completely restarted.
  6. In any case, at this point, it was fairly smooth sailing. The installation process took a bit of time but overall everything seemed to have worked.
  7. After the installation, I plugged int the bootcamp flash drive with the WindowsSupport files, and installed them.
I am still not a 100% yet. The trackpad still doesn’t behave like when it’s on the Mac. For example, I can’t use the two finger drag to scroll the windows, and for the life of me, I cannot figure out how to easily (and correctly) set the brightness of display. But at least now I have a working Windows 7 laptop!

Installing Windows 10 on (Old) Mac using Bootcamp No USB Windows 7 or later version Mac Book Air

https://tomstechnotes.wordpress.com/2015/01/26/installing-windows-10-on-old-mac-using-bootcamp/


Installing Windows 10 on (Old) Mac using Bootcamp


So the Windows 10 technical preview is out and i was eager to test it out on my MacBook Pro. I am discussing only installation through bootcamp. While following the instructions that found on the web, i had to encounter many issues. Hence i am trying to consolidate everything i know or did, in this post.
1. Register for Windows 10 technical preview. https://insider.windows.com
2. Download the Windows 10 technical preview ISO file from the windows website. http://windows.microsoft.com/en-sg/windows/preview-iso
3. Lauch Bootcamp Assistant (Applications > Utilities > Bootcamp Assistant) and click continue.
Basically it should look like this:
Screen Shot 2015-01-26 at 2.17.02 pm
4. “Create a Windows 7 or later version install disk”
If this option is available, you can use the ISO file directly in the next step and continue with the installation.
If this option is not available you are left with two choices:
a. Enable the option
Close the application. In Finder, go to Applications > Utilities. Right click on Boot Camp Assistant, select ‘Show Package Contents’
Right click the “Contents” folder, select ‘Get Info’. In ‘Sharing & Permissions’ section, enable ‘read & write’ for all and add one more entry admin with ‘read & write’ privilege. [For this you need to unlock the folder by clicking the lock symbol and prompt for the password will appear. You can use your admin password to unlock]
Once you have updated the permissions for “Contents” folder, open the folder and do the same ‘Sharing & Permissions’ changes for the “Info.plist” file.
Now open the “Info.plist” file using TextEdit or Xcode application. You need to make modifications in below sections:
<key>DARequiredROMVersions</key> : Here you need to add you computer’s Boot ROM Version. You can find this by clicking the apple icon (top left corner) on the finder window, select ‘About this Mac’, then ‘System Report’, then ‘Hardware’
Screen Shot 2015-01-26 at 2.40.27 pm
Note down the ‘Model Identifier’ and ‘Boot ROM Version’
In Info.plist file section add you computer’s Boot ROM Version like below: (Please ensure its in the logical order)
<key>DARequiredROMVersions</key>
 <array>
 <string>IM41.0055.B08</string>
 <string>IM42.0071.B03</string>
 <string>MB11.0061.B03</string>
 <string>MBP12.0061.B03</string>
 <string>MBP71.0039.B0E</string>
 <string>MM11.0055.B08</string>
 </array>
<key>PreESDRequiredModels</key> : Here do the similar addition. Instead of Boot ROM Version you add the Model Identifier (MacBookPro7,1) /first section of your Boot ROM version (MBP71).
<key>PreESDRequiredModels</key>
 <array>
 <string>MacBook7</string>
 <string>MacBookAir5</string>
 <string>MacBookPro7,1</string>
 <string>MacBookPro10</string>
 <string>MacPro5</string>
 <string>Macmini6</string>
 <string>iMac13</string>
 </array>
<key>PreUEFIModels</key> : Here also add Model Identifier or first section of Boot ROM Version as suited.
 <key>PreUEFIModels</key>
 <array>
 <string>MacBook7</string>
 <string>MacBookAir5</string>
 <string>MacBookPro7,1</string>
 <string>MacBookPro10</string>
 <string>MacPro5</string>
 <string>Macmini6</string>
 <string>iMac13</string>
 </array>
<key>USBBootSupportedModels</key> : Do similar addition in this section too.
Note: If you file has PreUSBBootSupportedModels as the section, remove the ‘Pre’
 <key>USBBootSupportedModels</key>
 <array>
 <string>MacBook7,1</string>
 <string>MacBookAir3,2</string>
 <string>MacBookPro7,1</string>
 <string>MacPro5,1</string>
 <string>Macmini4,1</string>
 <string>iMac12,2</string>
 </array>
<key>Win7OnlyModels</key> : Remove this section
Save the file. Now saving the file just won’t get the work done. You need to sign the file. For that goto to Applications > Utilities > Terminal
Run the command:
sudo codesign -fs – /Applications/Utilities/Boot\ Camp\ Assistant.app
You will be prompted to enter the password. Do the same and click enter. Now your boot camp assistant is updated. Reopen the application and try.
b. Create a installation disk and use it.
You can create an install disk for Windows 10 using the Disk Utility application in Mac. (Applications > Utilities > Disk Utility) Choose the burn option and select the ISO image and burn it to the dvd. This will be your installation disk.
5. Continue with the instructions on screen the Boot Camp Assistant, plugin the USB drive that you are going to use. (Remember this drive will be formatted during the installation) The USB drive can be of size 8GB or more.
Insert your flash drive and then select the ISO file’s location. Boot Camp will then download all the necessary drivers to run Windows and transform your USB drive into a boot disk. This step takes a while, so be patient.
You’ll then be asked to partition your hard drive. This is a critical step, as you can’t expand or shrink the storage later on. Instead, you’ll have to wipe that part of the drive and start from scratch. It is recommended you select at least 20GB, but 30GB or more is best, as Windows 10 itself will take up a sizable chunk.
Screen Shot 2015-01-26 at 3.04.58 pm
Partitioning will take time as well as installation.
When you’re done, click Install to start installing Windows 10.Computer might restart several times during the installation and you don’t have to worry about it. If for some reason your computer boots back to OS X, reboot and hold the Option key. This brings up a menu where you can select which operating system to launch.
Enjoy trying Windows 10.