Introduction: How to Dual Boot Ubuntu 10.04 and Windows 7!

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. 

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
initrd.img-2.6.18-3-686 memtest86+.bin

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'.

(hd0) /dev/sda

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

Then enter

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

Comments

author
Tonyisme made it!(author)2010-08-17

I know your on about installing Win7 after Ubuntu but I did it the other way, with no need for vm/partition's etc. You can try it from here-http://wubi-installer.org/ The more I use Ubuntu the more I like it, nice instructable :-D

author
kvasani made it!(author)2010-08-23

yeah, and you dont need to partition & do all the low level stuff, when you are already having win7 running

author
UwgvpwigpB made it!(author)2016-02-16

Guys need windows 7 that i suggest you go site www.funkinyes.com to got. My key got here and after i used is works properly. Hope can help you.

author
The+nerdling made it!(author)2012-12-19

i used daemon tools and mounted the iso and ran the install

author
thekid made it!(author)2010-11-02

Yah I know it is really easy to install windows first but I had ubuntu with a bunch of files and settings so I did it the hard way. :-)

author
Sorunome made it!(author)2010-10-06

I love that movie!

author
Shadowhunter111 made it!(author)2010-08-15

Is Ubuntu a form of Linux?

author
kvasani made it!(author)2010-08-23

Yes

author
luvit made it!(author)2010-08-11

hi does i lose potential by using netbook edishun? think you.

author
thekid made it!(author)2010-08-12

no i think it just comes with different programs by default and it might have different screen options

author
luvit made it!(author)2010-08-12

that;s grood, and thanks.

author
thewizard42 made it!(author)2010-08-12

First pic is win :D

About This Instructable

21,635views

14favorites

License:

More by thekid:How to dual boot Ubuntu 10.04 and Windows 7!how to get a windows password with ophcrackHow to improve an old laptop!
Add instructable to: