Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Possible Duplicate:
How can I install Windows 7 after I've installed Ubuntu?

I have dual-boot Ubuntu 12.04 and windows 7 32 bit and I want to format my windows 7 partition to put windows 7 64 bit.. How can I do this?

PS: I have the windows 7 64 bit ready in my dvd!

share|improve this question
    
Also see this link askubuntu.com/q/157144/61218 –  Anwar Shah Sep 16 '12 at 15:26
1  
I don't think this should be considered a duplicate of either of those (and at this point, Anwar might write a separate answer to this that addresses the differences). See discussion starting here. –  Eliah Kagan Sep 16 '12 at 16:10
    
it's borderline. if you can reinstall windows at all, the original(other) gets you passed re-installing grub. so the ubuntu related part is duplicate. how many ways can we ask how to re-install grub and how much windows problem is going to get handled on an ubuntu QA board –  hbdgaf Sep 24 '12 at 8:50
add comment

marked as duplicate by Anwar Shah, Web-E, Ringtail, Mitch, hbdgaf Sep 18 '12 at 20:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 5 down vote accepted

If you want to replace the old Windows 7 32-bit with a new Windows 7 64-bit installation, follow this procedure:

0. Edit volume label on existing Windows system

You should first boot to Windows and give a name to your windows partition. That will help you to identify the old Windows partition in the partitioning phase (described below).

1. Install Windows 7

  1. Insert the Windows 7 64-bit DVD and restart your PC.

  2. Press the appropriate keyboard button to enter into boot device selection menu. In Phoenix BIOS (used by Dell machines and some others as well), it is F12. If you press this button, you will be presented with some devices from which you can boot. Your DVD drive should be listed as one of the bootable devices.

    • Some BIOSes don't provide this boot device selection menu. In that case, you must enter the BIOS setup. To do so, Press F2 in a Phoenix BIOS. These key may be different on other BIOS. Some common keys are DEL, F2, and F12. There should be also a message telling you this kind of messages : "To change BIOS configuration, Press ...". Look at those messages and Try use that key.
  3. After booting to Windows 7 DVD, Go to the Installation phase. Select Custom Install option. Don't choose upgrade option.

  4. After accepting EULA and completing some other installation steps, you will be presented with the partitioning page. Click on Drive options (advanced), then select the previous Windows 7 partition. Choose to format the partition and then Click Next.

  5. Now a new Windows 7 64 bit will be installed replacing the old installation.

    Please note that Windows 7 64-bit will automatically replace the old one since you've chosen to format the old partition.

See these articles on Microsoft's website for help with Windows 7 installation:

2. Re-install and repair GRUB using an Ubuntu live CD/DVD/USB

  1. Get a Ubuntu live CD/DVD or live USB. To have a CD, you just need to burn the .iso image to a blank CD:

    To get a Live USB, See these links:

  2. Boot the Ubuntu live CD/DVD or USB flash drive that you just created. Select the appropriate entry from the boot device menu in BIOS. Select the Try Ubuntu option (not Install Ubuntu) when you presented to choose an option.

  3. When the desktop comes up, reinstall and repair GRUB. Get help from the below links:

    Use this method if you don't have Internet connection in the live CD/DVD/USB system. But if you have a good, working Internet connection, this way is quicker.

    Note that in that answer, although it says to use GParted to see the partition's UUID, you can also use sudo blkid command for this.

Now, restart your PC from the menu at the upper-right corner of the live system's desktop. Remove the CD/DVD or USB flash drive when told to do so. (You don't want to accidentally boot from it again.) You should now have a machine with your original Ubuntu system and the newly installed 64-bit version of Windows 7 (which replaced the 32-bit version).


The essential difference between the installation of Windows 7 system while you already have Ubuntu (but not Windows) and installing a new Windows 7 system replacing an old one is, in the latter case you don't need to create and specify the partition for new Windows 7. You can just select the old Windows partition, select it to format and Click next to proceed to the installation. See this article for an official statement.

share|improve this answer
add comment

You can install Windows as you should always do, but be sure of selecting the C:\ partition while installing (it should be tagged on the installer's partition editor with something as MASTER and should be NTFS) and formatting it for installing Windows there, but don't touch Ubuntu's partitions (swap or ext2/3/4).

After installing it, you should download SuperGrub2 disk. Burn it on a CD as you'd do with a linux distribution, and boot from it. Select Detect any operating system and select the entry where Ubuntu appears.

It will boot Ubuntu for you, because the GRUB was erased when you installed the new Windows 7. But with this you can boot to ubuntu! So, after booting ubuntu with SuperGrub, run a Terminal and enter this command:

sudo grub-install /dev/sda

(Changing /dev/sda for the place where you want to install grub, should be the MBR). Then, restart and, without booting from the SuperGrub CD that you won't need anymore, you'll see GRUB again, and it should have the Ubuntu entry and the Windows 7 entry.

I hope it works to you, and tell us soon!

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.