Installing Windows 7 on a Mac without Superdrive with VirtualBox

Posted on février 3rd, 2012 in Non classé | 3 Comments »

Hello everyone,

I’ve been trying to install Windows 7 on my MacBook Pro that doesn’t have a superdrive and it’s been quite painful. But I’ve found a solution that works perfectly. I’ve written this post in French, but it seems legit to have a world wide audience for that solution that I hope will work for your too!

I’ve tried several tutorials on the web, but none has really worked. To do this one, I’ve been inspired by this article, which is really great… but didn’t do the trick to me!

If you are lucky, try Part 2 directly, it might work for you if you have a 2011 MacBook Pro. For others, start at Part 1!

What you’ll need:

The 3 big steps:

  • Create a « Generalized » Windows 7 installation
  • Create a BootCamp partition
  • Clone the « generalized » Windows 7 image onto the BootCamp partition

Let’s Go !
 

Part 1 – Create a « Generalized » Windows 7 image

First, we are going to create a Windows 7 installation that will not take into account the hardware on which it’s running. Indeed, when Windows is installing itself, it takes into account the hardware it’s running on to configure only the drivers it needs. But in this first step we’re installing it on a Virtual Machine, which is not a real PC, so we need to say to Windows : Ok, next time you boot, check the hardware and install whatever driver is necessary.

Step 1: Install Windows 7 on the Virtual Machine

  1. Download and install VirtualBox
  2. Add a new virtual machine and name it Win7 (easier when prompting commands later), add how much RAM you want
  3. Add a VDI hard drive of type and then, choose dynamically allocated that use 10 Gb (you’ll need less, but it is to be sure, and you can choose more, but it’s going to take longer in the last part of this tutorial)
  4. Launch the virtual machine and choose the ISO image of Windows 7 installer
  5. It’ll take two reboots to finish the installation

First step is done. Let’s start tricking Microsoft!
 

Step 2: Delete the « System reserved » Partition

Truth is, Windows has created two partitions when installing, to prepare the use of the built-in encryption technology called BitLocker. And this little partition is considered as the principal, which means Windows will eventually boot on this one and not the one we’d like to. This is why we need to delete this partition.

Just go and use this great article from Terabyteunlimited to do the trick. You’ll only need part 1 and 3 and to reboot the system between these two steps.

Step 3 : Generalize the Windows 7 installation with sysprep

I must say this step was the most painful to me, because I didn’t have any tutorial and needed to find why things didn’t work by myself !
What we’ll basically do here is create an installation of Windows that is independent of the hardware it’s booting on with the help of sysprep.

    1. Reboot your virtual machine (we’re never too safe…)
    2. Don’t ask me why BUT we need to stop the Windows Media Player Service
      1. Click on Start
      2. in the search box, type « cmd »
      3. On the application that has been found, right click and select « Use as an Administrator »
      4. Type this command « net stop WMPNetworkSvc » without the quotes
    3. Go to the directory C:\Windows\System32\sysprep
    4. In this directory, create a file and name it « unattend.xml« , without the quotes. If you don’t have the rights to create a file, then, go to the desktop and then copy it when the next steps are done
    5. Copy-Paste this into the file:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
     <settings pass="generalize">
          <component name="Microsoft-Windows-Security-Licensing-SLC"
processorArchitecture="x86" publicKeyToken="31bf3856ad364e35"
language="neutral" versionScope="nonSxS"
xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SkipRearm>1</SkipRearm>
          </component>
      </settings>
</unattend>
  1. Save it (and copy it in the sysprep folder)
  2. Double click on sysprep app and select these options: (complementary info)
    1. In the « System Cleanup Action list » list, select « System Out-of-Box Experience (OOBE)« 
    2. Select the « Generalise » check box
    3. In the  »Shutdown Options » list, select « Shutdown« 
    4. Click OK

 
If your virtual machine stops, you can be proud of yourself because you’ve done the most difficult part! Congrats!

If you get the painful error : « A fatal error occurred while trying to Sysprep the machine.« , well, you’re screwed… But you can be helped by opening the log file that can be found in that folder: C:\Windows\System32\sysprep\Panther. At the end of the log, you’ll find the error ID. Google might help you with it!

Well done to the ones that have gone so far, the end is near !
 

Part 2 – Create a BootCamp partition

I know that I’m giving the hardest solution here, and I hope it’ll go painlessly for you, but I had to do all these steps. If you can create the Bootcamp partition without these steps, you can go to the Third Part (the easiest!).

Step 1: Create the BootCamp partition

Well, I must say that I’ve done that a long time ago, so I can’t recall everything, but these are the main steps.
As explained before, I don’t have a super drive. So I need to make the BootCamp Assistant think I’m a Mac with rights to boot on a USB drive. To do that :

  1. Go to Applications/Utilities
  2. Right click on Boot Camp Assistant and select  »Show Package Contents« 
  3. Open the Contents folder
  4. Open Info.plist with TextMate or TextEdit. If you don’t have permission to do that, copy the file on your desktop. Once you’ve made the changes, copy back this file in the folder.
  5. Click on the top left Apple menu of your Mac, go to About this Mac. In the opened window, click « More Info« 
  6. In Hardware:
    1. Find Model Identifier (Mine is MacBookPro6,2)
    2. Find Boot Rom Version (Mine is MBP61.0057.B0C)
  7. In the previously opened Info.plist, copy paste the previous info on top of the list in the correct field:
      1. In « <key>DARequiredROMVersions</key>« , add a string that matches your Boot ROM Version. For instance, mine was:
    <key>DARequiredROMVersions</key>
       <array>
          <string>MBP61.0057.B0C</string>
          <string>IM41.0055.B08</string>
      1. Go to « <key>USBBootSupportedModels</key>« , and add a string that matches your model. It’s a bit tricky here, but you need to find the right model. For instance, I have a MacBookPro6,2, so I had to write: MBP61. If you have a MacBook Air3,2, you would have: MBA31 etc… You can try several times if it doesn’t work. Here is what I added:
    <key>USBBootSupportedModels</key>
       <array>
           <string>MBP61</string>
           <string>IM130</string>
  8. Once the info.plist has been saved (and copied where it was before), double click on Boot Camp Assistant, the greyed check box « Create a booting USB drive » shouldn’t be anymore.
  9. You should also check « download the last drivers« , you’ll need it later
  10. At last, create your BootCamp partition

What happened next was that the Mac rebooted, couldn’t boot on the USB drive, and couldn’t find how to boot on the Mac partition neither. Don’t panic, just press the hard button and reboot it again, plugging out your USB drive.

Congrats, you’re really near to have your Windows! Great job.
 

Part 3 – Clone the Virtual Machine Hard Drive onto BootCamp

This is the easiest part and the one that works every time!
In a few minutes, you’ll have your Windows 7!

Step 1: Prepare the Virtual Machine Hard Drive

    1. Download and open VirtualBox
    2. Go to the File menu and click on « Media Manager« 
    3. Click to select the partition that matches your virtual machine
    4. Click on Copy, a wizard should appear
    5. Choose Fixed size. (Really important)
    6. And then rename the file as: Win7_copy. (will be easier when prompting in Terminal)
    7. Once the copy is done, open Terminal (Applications/Utilities), go to the folder where your previously copied file is (to do that use the command « cd path/to/the/file ») and paste this command: (this command wil create a raw file that can be understood by the Mac as a partition)
    VBoxManage internalcommands converttoraw Win7_copy.vdi win7.raw
  1. Once the copy is done, you’ll need to mount this partition. Enter this command:
hdiutil attach -imagekey diskimage-class=CRawDiskImage win7.raw

 
If everything went well, you should have a disk image called « Untitled » on the desktop. And the end is pretty near!
Last step!
 

Step 2 - Clone the virtual machine onto the Boot Camp partition

This is the last step.

  1. Download and launch WinClone
  2. On the « Image » Tab:
    1. Source: Choose the partition « Untitled » that matches your virtual machine (should be disk2 or disk3)
    2. Click on Image and choose a folder to copy the files
  3. Once the copy is done, click on the Restore Tab:
    1. Restore Image: Choose the image that has just been done
    2. Destination: « BOOTCAMP »
  4. Click on Restore

DONE !

Once the copy is done, reboot your Mac and maintain pressure on the alt button just before the « Dong » sound. You should have your Windows partition. Windows will then initialize with two restarts. You’ll need your CD key again.
You have your Windows !

I hope that I’m clear enough, and I can help some of you in the comment section. Hope you’ll make it !

Cheers.


Partager

[Jeu] Invisible Cursor, la souris qui disparait

Posted on juin 3rd, 2010 in lol | 3 Comments »

Bonjour à tous,

Je vous propose un petit moment de détente ce matin avec ce jeu Invisible Cursor qui est très marrant je trouve. Le principe est clair, vous devez vous déplacer dans un labyrinthe avec votre souris, mais celui-ci disparait au bout de quelques secondes si vous ne passez par sur les checkpoints noirs.

Ca m’a bien pourri une petite heure de ma soirée alors à vous maintenant !!

[Cliquer ici pour accéder au jeu]

Mon meilleur score c’est 48 000. Et vous ?

Petite astuce, lorsque vous perdez, cliquez sur menu puis play, comme ça vous recommencez au début et les premiers niveaux permettent de gagner pas mal de points non négligeable pour battre mon super record !

Excellente journée à tous.

Partager

[Note] Liste des plugins de ce blog

Posted on juin 2nd, 2010 in Non classé | 2 Comments »

Bonjour à tous,

Juste un petit post rapide pour vous dire que j’ai ajouté une nouvelle page qui s’appelle « Mes Plugins » et qui comme son nom l’indique donne une liste des plugins que j’utilise sur ce blog.

Alors, rien de bien important, mais le plugin Plugins List est fait pour lister tous les plugins que vous utilisez sur votre blog !

Voir la page mes plugins

Je conseille à tous les blogueurs de faire pareil, car il faut avouer que c’est très pratique pour trouver une fonctionnalité qu’un autre blog utilise !

Excellente journée à tous

Source : geekeries.fr

Partager

[Geek] Les perles des statuts facebook

Posted on mai 15th, 2010 in lol, Web | 2 Comments »

Bonjour à tous,

On n’entend que des mauvaises choses sur facebook en ce moment et j’ai allègrement participé à en dire du mal dans ce billet, mais facebook n’est pas seulement le mal, c’est aussi une mine de créativité et de gros fou rires grâce à tous les statuts updates que peuvent poster les kikoolol mais aussi les geeks. Du coup, je vous mets les meilleurs statuts updates de facebook.

On commence par un petit retour à l’époque des Pokémon avec ce wall fabuleux de la Team Rocket. Pour tous ceux qui ont oublié la fameuse arrivée de la pire équipe de méchants de l’histoire du dessin animé, voici la vidéo :

Du coup, Jessie, James, Sacha et Pikachu n’ont rien trouvé de mieux que de pourrir le statut d’un mec qui n’avait pas qu’à se faire repéré par la Team Rocket.

Source : stupidbook

C’était une petite mise en jambe. On passe maintenant au plus geek et c’est forcément les personnages de Star Wars qui remportent la palme avec 5 excellent status updates à mourir de rire, dont voici mon préféré :

Des statuts facebook avec des perles, on en a tout les jours dans notre news feed et un site vous permet de les partager avec le reste du monde et en français, c’est stupidbook. Ce site, c’est l’assurance de se tapper un bon fou rire en voyant les statuts improbables que certains peuvent écrire. Et les plus forts à ce jeu là, ce sont forcément nos amis les kikoulol, c’est bêtes de foire qui ont comme caractéristiques principales de n’avoir jamais appris/lu/écrit le français, d’agrémenter chaque phrase par minimum un « lol/pdtr/xptdr/mdr/hihi » et surtout d’écrire des messages qui ne veulent rien dire.

Chaque fois que je vais sur ce site, j’ai les yeux qui brulent tellement le français et parfois même la phonétique sont barbarisés, mais quel bonheur une fois la traduction effectuée.

Je vous montre ici mes quelques préférés, accrochez-vous :

Ca veut dire quoi « wall »

Le plagiat

Le français est une langue morte

Et une tonne d’autres que je vous propose de retrouver ici. Même ceux qui connaissent déjà le site peuvent aller y refaire un tour, car il y a toujours des nouvelles perles à voir.

Enfin, facebook ne serait pas le même sans ses innombrables groupes que facegroupe se charge de recenser. Là encore, les gens sont d’une infinie créativité et il faut avouer que certains sont vraiment drôles. Voici mon petit best of :

  1. Jeanne d’Arc, elle a frit, elle a tout compris !
  2. Toi aussi t’as essayé d’imiter la grosse voix : « EA SPORTS TSEUNEUGUAYME » (aller à ce billet pour apprendre à prononcer correctement le slogan EA Sports)
  3. Tiens Brian Joubert, on parlait de toi, tu tombes bien !
  4. je suis mort(e) plus de 342 fois pour ne pas avoir renvoyé des chaînes.
  5. Un jour les français domineront le monde, mais pas demain, y a grêve.
  6. et beaucoup beaucoup d’autres

Je vous invite d’ailleurs à lire ce billet de bienbienbien à propos des groupes facebook qui est très marrant.

Si vous connaissez d’autres sites qui recense toutes les conneries que l’on peut trouver sur facebook, je suis vraiment preneur, j’ai toujours 10 minutes à perdre !

Excellente journée à tous.

Partager

[lol] La nouvelle Barbie sera Geek et utilisera Linux

Posted on février 25th, 2010 in Actualités, lol | 4 Comments »

Bonjour à tous,

Je ne sais pas si vous avez remarqué, mais il ne se passe absolument rien sur internet en ce moment. Enfin, une fois qu’on a fait le tour du chatroulette-like qui est sortie dans la journée, qu’on a compris que 50 millions de tweets étaient envoyés par mois et que 50% de ces tweets n’étaient écrits dans la langue anglaise, on a suivi toute l’information de la semaine !

Pour ceux qui l’auraient ratée quand même, voici les deux schémas qu’il fallait retenir cette semaine :

Sources : TechCrunch et ReadWriteWeb

Mais bref, ce n’est pas de cela que je voulais parler.
Aujourd’hui, je veux vous parler d’une nouvelle capitale, qui montre bien le changement radical de l’image des geeks. Chaque année, le jouet préféré des petites filles, la Barbie, a une profession et les accessoires qui vont avec. Pour sa 126e édition, Barbie sera informaticienne dans un style « Geek chic » ! Voici une citation de l’article chez Barbie :

To create an authentic look, Barbie® designers worked closely with the Society of Women Engineers and the National Academy of Engineering to develop the wardrobe and accessories for Computer Engineer Barbie®. Wearing a binary code patterned tee and equipped with all the latest gadgets including a smart phone, Bluetooth headset, and laptop travel bag, Computer Engineer Barbie® is geek chic.

En fait, chaque année, la profession de Barbie est choisie par vote des consommateurs (par internet et autres) et cette année, l’information a été très répendue auprès des femmes travaillant dans l’industrie high tech et notamment les femmes informaticiennes du monde entier (exemple ici avec des informaticiennes de Bruxelles).
Autre information essentielle, lorsqu’on regarde les photos de plus près, on observe que la Barbie Geek utilisera un PC sous… Linux ! Et oui, notre petite geekette s’y met à fond et va découvrir les joies des lignes de commande du terminal (le premier qui me dit qu’aujourd’hui sur Linux on ne les utilise plus , je le tue…) Je vous propose donc ces magnifiques photos de notre nouvelle Barbie geek qui, il faut bien l’avouer, est assez sexy !

Moi, je trouve ça très bien qu’elle soit une petite geek car c’est vrai que dans l’imaginaire collectif, être une geekette est un qualificatif mignon. En effet, quand on entend uen fille dire : je suis une geekette, il y a presque un caractère attirant aujourd’hui, alors qu’il y a 5 ans, la geekette, c’était vraiment l’ingénieur informaticienne, qu’on imaginait affreuse, se goinfrant derrière son ordinateur en jouant à WoW (ou similaire) !

Bref, vous la trouvez comment vous la petite Barbie ?

Excellente journée à tous !

Source de l’article : Esprit Libre via @vincentabry

Partager