Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install Windows 7 on an Ubuntu PC (and remove Ubuntu), but this PC doesn't have any CD reader. How can I accomplish this?

share|improve this question

migrated from stackoverflow.com Apr 1 '12 at 13:21

This question came from our site for professional and enthusiast programmers.

1  
Buy a CD reader. :D – Shomz Apr 1 '12 at 13:17
    
:) I may have an option with the USB drive, but haven't found the tool to build an ISO with Ubuntu – Matthieu Apr 1 '12 at 13:19
    
Seriously now, it will give you a lot of trouble, especially if you plan to remove Ubuntu afterwards. – Shomz Apr 1 '12 at 13:20

This is a good walkthrough

So the steps:

  1. Download grub4dos
  2. Create a NTFS partition and mount the ISO (sudo mount /path/to/your/iso /mnt -o loop)
  3. Edit the grub according to your partition
  4. Reboot from the NTFS partition.

    grub>find --set-root /bootmgr

    grub>chainloader /bootmgr

    grub>boot

  5. Run setup.exe

share|improve this answer
    
Welcome to SuperUser. While it may be a great link, could you summarize what the OP needs to do rather than just linking? You should keep the link as a source, of course. – Raystafarian Apr 1 '12 at 14:51
    
Thanks but it doesn't work for me : I have only one partition (linux) and the usual swap partition with it. So I can't create a new partition without deleting the linux one (not allowed). – Matthieu Apr 2 '12 at 21:04

Well, if (as you've said) you have the boot-from-USB option in the BIOS, it should be easy to write the Windows ISO (assuming you have one) onto a USB stick. You can use the built-in software usb-creator

In case you don't have it, type in terminal sudo apt-get install usb-creator-gtk

Then from the Windows install menu, you can easily format the whole drive and install Windows as a single partition.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .