Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 already have Ubuntu installed on the machine and a spare NTFS partition.

share|improve this question
up vote 9 down vote accepted

If you just install Windows onto your new machine it will overwrite your bootloader, so you won't be able to boot into Ubuntu anymore. Generally it's better to first install Windows and then Ubuntu, as Ubuntu recognizes your Windows Installation and creates a Grub-Entry to start it.

However, this way around works too.

You will need some sort of Live-CD (Like the Ubuntu Install-CD). Boot it.

Mount your Ubuntu partition: (REPLACE X and Y)

sudo mount /dev/sdXY /mnt

sudo grub-install --root-directory=/mnt /dev/sdX

Now restart your computer. Grub should now load normally, without an entry for Windows. As soon as you are back into your system type

sudo update-grub

to add Windows to your bootmenu.


share|improve this answer
I wonder if it is not necessary to bind mount /dev, /proc and /sys to update-grub. – enzotib Oct 8 '10 at 12:33
Check my reference, scroll up half a page. It looks like you only have to mount them when you have to grub-install, but that's not the case. – sBlatt 1 hour ago – sBlatt Oct 8 '10 at 14:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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