This guide is for installing Windows 7 AFTER Ubuntu is installed. For installation instructions on how to install Ubuntu On a Windows computer see this Instructable. I believe Ubuntu (all Linux distros really) to be better then Windows but I want to play games and Windows is still king in that respect.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Disclamer
OK, I have to give this out because if some one wipes their hard drive because they didn't listen and they want to sue me. This is the world we live in.
This Instructable involves repartitioning your hard drive which is a Mundane task but still has a tiny chance to break something so Be careful and don't do anything dumb :-) OK? Also installing OS's can delete all of your data if you don't pay attention to what your doing. I take no responsibility to what you do.
Step 2: Things You Need
1. Computer (kinda important)
2. Ubuntu Live CD (it can be found here)
3. Windows OS you want to install
4. usb drive (don't need but might come in handy)
5. 1-2 hours
6. another computer can come in handy if you need to use the internet during the process
7. good movie to pass time
Step 3: Partitioning
We need to partition the hard drive for space on it for Windows. I use Gparted, which is the one on the Ubuntu live CD. So just pop in the live CD, Live usb or just use the Gparted OS. You want ~40 GB. I tried using 20 GB and filled that up in a day or two.
Step 4: Installing Windows
Insert the Installation CD and follow the steps, use the partition you set aside. this could take a while. MOVIE TIME!!! (Avatar is amazing!!!!!!)
Step 5: Fixing
OK now the only hard-ish part. OK so Windows (7 any ways, IDK about the other OS's) just loads and doesn't let you boot into Ubuntu. The way to fix this is Boot up You'r Ubuntu live CD and open a terminal (Applications->accessories->terminal). Type in grub-install -v If it says something like grub-install (GNU GRUB 1.98-1ubuntu7). All you have to worry about is the numbers if they are bigger then 1.96 then you are good if they are lower then you are running grub legacy and you should read this guide.
Step 6: Fixing... CONTINUED
OK now that we got our version we can do the only hard part. the hard part about this is copying and pasting. (a Note you can use Ctrl-v in terminal you have to right click and select paste.) Mount your Ubuntu partition by going to places and selecting it. now type in mount | tail -1 in the terminal. You should get some thing like
/dev/sda2 on /media/0d104aff-ec8c-44c8-b811-92b993823444 type ext4 (rw,nosuid,nodev,uhelper=devkit)
all you need to copy to a note pad is the parts i bolded. The first one is where it is mounted and the second one is the serial "name" of the hard drive.
To make sure this is indeed the Ubuntu boot partition, run ls /media/"serial name of hard drive with out quotes"/boot. you should get a list of Folders including
config-2.6.18-3-686 initrd.img-2.6.18-3-686.bak System.map-2.6.18-3-686
grub lost+found vmlinuz-2.6.18-3-686
Now just run this in the terminal including the info that you copied down earlier
sudo grub-install --root-directory=/media/"serial name of hard drive with out quotes" "space"/dev/"sda1, sda2 or what ever address you wrote down before."
If all went well, you should see something like this:
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
Step 7: Update Grub Menu
OK remove the Ubuntu Live CD and boot up in to Ubuntu (Hard drive) and open your terminal and type in sudo update-grub and you should see it list the OS's. now reboot the computer.
Step 8: Make It Pretty!!
Now power off the computer and boot up and you should see a boot menu, select which ever OS you want. But do you see how ugly the boot screen is? Go into Ubuntu and open a... GUESS WHAT!!!! A TERMINAL!!!! YAY!!! and enter
sudo add-apt-repository ppa:bean123ch/burg
sudo apt-get update && sudo apt-get install burg-pc burg-themes burg-emu
Follow the instruction and you will have installed BURG. Now reboot.
When you see the boot screen hit T and you can select the theme you want to use :-)
Step 9: END
Need help? Confused? Have any Ideas for a Instructable you want to share? Have any advice on how to improve this or my other Instructables? You can leave a comment or E-Mail me at Jhnlambert171@Gmail.com