Page 1 of 1

Change bootloader to bootload windows 7 RC

PostPosted: Thu May 14, 2009 3:59 am
by LMH1
I have Ultimate Edition 2.1 (upgraded to 9.04 with update software) and windows 7 RC on one computer.

But if i install windows 7 RC first and then Ultimate Edition 2.1 is windows 7 not detected on bootloader.

But i can go to windows folder (c:\) so I have not deleted windows 7.

I have try to install windows 7 RC again, but now can i not run ultimate edition.

How can i fix this? (I can not see boot.ini files on windows 7 RC).

Re: Change bootloader to bootload windows 7 RC

PostPosted: Fri May 29, 2009 10:43 pm
by artifacts
Nick wrote:Welcome LMH1 <BREW> Courtesy o fGoogle & http://ubuntuforums.org/showthread.php?t=1035999



“How to” Dual boot Ubuntu and Windows 7 (Ubuntu installed first)

I have recently seen many posts from people trying to dual boot Ubuntu and Windows 7 beta, but not succeeding. So I found a solution.
Index
1. Obtain a copy of Windows7.
2. Partition your disk with gparted.
3. Install Windows7.
4. Re-install Grub.
5. Edit Grub to List Windows 7.
6. Have Fun. :D
__________________________________________________ ________________________________

1. Obtain a copy of windows 7.

Official Microsoft Link - http://download.microsoft.com/downlo...FRE_EN_DVD.iso

*This Link Is Now DEAD but next month there may be a public release of the RC*

*You can also find a torrent of this but for legal reasons I cannot provide a link. *


2. Partition your disk

**This does go wrong in some cases, if in doubt back up your valuable data.**

Boot from a Ubuntu live cd or a gparted live cd.
Start up gparted, If ubuntu is on the whole disk you need to re-size it by at least 8 gb for Windows 7. (Make sure windows 7 is on the second partition to make it easier for grub) You will be left with some unallocated space on your hard disk if you want you can partition it to NTFS or you can do it later on the windows install.

3. Install Windows 7

Follow the on screen instructions, Select the un-partitioned space to format and install windows on, or if you already made it NTFS choose your NTFS partition.

**It will ask for a product key but you have 30 days to do that. Note: Beta keys will work with the RC**


4. Re-install GRUB

Now you have windows 7 but it has completely eaten your boot loader so you need to re-install grub.
Boot from the ubuntu live cd and go to terminal.
Type in terminal:

"sudo grub"
"grub> find /boot/grub/stage1"

That should return your Ubuntu partition in the form of (hdX,Y), use that:

grub> root (hdX,Y)
grub> setup (hd0)
grub> quit

(you don’t need to type the grub> bit)

That has re-installed grub but you can no longer see windows7

5. Edit grub.
Go to terminal from normal ubuntu and type :

“sudo gedit /boot/grub/menu.lst”

A large text file will open and at the bottom leave a line and add this:

title windows 7 beta (Loader)
root (hd0,1)
savedefault
makeactive
chainloader +1

(Do not type this line but if that does not work on re-boot try “hdo,0 or hd0,2” and so on until it works.)

Now that is done you can re-boot into windows 7 and ubuntu happily

******************Edit***********************
Hi
I have noted that if you also have vista installed on your machine when you in install 7, that windows 7 will add itself to the vista boot-loader.

So You will need to point grub to the vista partition so it will load the vista loader and give you the option for 7 and vista.

Also To work out what partition number your 7 partition is use gparted it will give you results like "Windows 7 sda2" that means hda0,2 or if you have two internal hard drives than change the tab in the top right to the appropriate disk. Then take note of the sda2 but as it is on the 2nd drive it will be hda1,2. And so on........


Very nice tutorial. <BREW>

LMH1 wrote:I have Ultimate Edition 2.1 (upgraded to 9.04 with update software) and windows 7 RC on one computer.

But if i install windows 7 RC first and then Ultimate Edition 2.1 is windows 7 not detected on bootloader.

But i can go to windows folder (c:\) so I have not deleted windows 7.

I have try to install windows 7 RC again, but now can i not run ultimate edition.

How can i fix this? (I can not see boot.ini files on windows 7 RC).


Here some guides that can help ya -

1. Here is a in dept GRUB Info Page - Here

2. Ubuntu : Add Windows 7 to Grub Menu - Here

3. Clean Up Ubuntu Grub Boot Menu After Upgrades - Here

Hope this helps :)

Re: Change bootloader to bootload windows 7 RC

PostPosted: Sat May 30, 2009 12:21 am
by SaddleTramp
ya'll got everything right EXCEPT: sda2 is NOT hd0,2...it's hd0,1 (hd0,0 is hd drive 1, partition 1..and so on..) ...so in plain terms, the 1st PARTITION of any drive is 0...2nd is 1...and so on, so sda2 would be hd0,1... ;) 8-)