Dual boot: replace XP with ubuntu

Asked by Robert L. Kolesar Sr.

I am running Windows 7 professional with XP as a second bootstrap. Since Windows 7 Professional includes XP I don't need the XP bootstrap. I would like to replace it with Ubuntu 10.04. What is the best way and how do I do it?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
Robert L. Kolesar Sr.
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
delance (olivier-delance) said :
#1

Download Ubuntu CD ISO image (32 bits or 64 bits) and burn it.
Boot on Ubuntu CD with option "Try but don't install".
System->Administration->Gparted, remove XP partition. So Ubuntu installer will propose you to install in free space.
Click on icon "Install".
At partitioning page, choose "install in free space" (and NOT use whole disk).
Then install will continue.
At end, Windows partition boot sector will be detected.
At reboot, Grub (Gnu bootloader) will display a menu with Seven and Ubuntu.

If you wait one month, you will get the new Ubuntu version 10.10.

Revision history for this message
Robert L. Kolesar Sr. (register2) said :
#2

Thanks delance, that solved my question.

Revision history for this message
Robert L. Kolesar Sr. (register2) said :
#3

When I boot my computer, ubuntu loader is the default bootstrap, and windows is last. How can I change it so Windows 7 is default?

Revision history for this message
delance (olivier-delance) said :
#4

Go to folder /etc/grub.d.
You will find files of form <number>_<operation>.
One of them is like 40_os_prober, rename it by replacing number by 15 (not sure of number, important is os_prober).
Then the usual
   sudo update-grub
and reboot.

Revision history for this message
Robert L. Kolesar Sr. (register2) said :
#5

I originally had windows vista on my computer, and since updated to windows 7. Unfortunately, the vist loader is still installed, so the first item on the boot list is windows vista loader. I checked inside os-prober, and it contains the lines listed below. I assume that if I eliminated Vista*| from the line, that this would solve the problem. How can I edit it? I am new to ubunto, and haven't used linux since before it went GUI. I am now a neophyte.

      case ${LONGNAME} in
 Windows\ Vista*|Windows\ 7*)
 ;;
 *)
   cat << EOF
 drivemap -s (hd0) \${root}
EOF

Revision history for this message
Robert L. Kolesar Sr. (register2) said :
#6

I found a solution to my problem on Question #90229
do this
1. sudo chmod +w /boot/grub/grub.cfg
2. sudo gedit /boot/grub/grub.cfg
3. place # in front of the menuentry you don't want to see at the boot screen

Revision history for this message
delance (olivier-delance) said :
#7

Temporary solution. Next time update-manager will download a new kernel, grub.cfg will be rebuilt, and you will have to fix again!

Revision history for this message
Robert L. Kolesar Sr. (register2) said :
#8

Thanks for the info. Do you know of a permanent fix?

--------------------------------------------------
From: "delance" <email address hidden>
Sent: Tuesday, October 05, 2010 2:52 AM
To: <email address hidden>
Subject: Re: [Question #126089]: Dual boot: replace XP with ubuntu

> Your question #126089 on ubiquity in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/ubiquity/+question/126089
>
> delance posted a new comment:
> Temporary solution. Next time update-manager will download a new kernel,
> grub.cfg will be rebuilt, and you will have to fix again!
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.862 / Virus Database: 271.1.1/3178 - Release Date: 10/05/10
> 02:34:00
>

Revision history for this message
delance (olivier-delance) said :
#9

Please, when you post, don't include previous message. It makes forum difficult to read.
In folder /etc/grub.d, rename file 30_os-prober to 09_os-prober and run "sudo update-grub". Now Windows will be installed in menu before Linux kernels at first place.