Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I currently have a laptop which has been set up to dual-boot Windows 7 and Ubuntu. I want to add Windows 8 on top of this (I do not want to upgrade my copy of Windows 7).

I know that installing Windows 7/Vista on a dual booted computer destroys grub, which is why one installs Windows first and Ubuntu later while setting up a dual boot.

How should I install Windows 8 on my laptop? I'm open to reinstalling grub, though I'd prefer to use a method in which I don't have to do that.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

In searching, it appears there's a better method than my old one.

You can use Boot-Repair. It's an official Ubuntu way of doing this and much safer than my convoluted method from years ago.

share|improve this answer

I have a computer which grub broke on many times and setup a system for repairing grub anytime that died thanks to the wonderful folks over at #grub on irc.freenode.net.

To do this, you'll need to boot to a live Ubuntu environment for your respective version.

Since my commands are aging, and I haven't done them in quite some time, please do not do the "OPTIONAL" marked ones unless you know of some good reason to do them.

Here are the commands I run:

  1. mount /dev/sda1 /mnt (for your partition)
  2. mount -B /dev /mnt/dev
  3. mount -B /proc /mnt/proc
  4. mount -B /sys /mnt/sys

    /--------------- OPTIONAL ---------------\
    grub-install /dev/sda --root-directory=/mnt
    \--------------- -------- ---------------/
    
  5. chroot /mnt
  6. update-grub
  7. update-initramfs -ck all

    /--------------- OPTIONAL ---------------\
    - apt-get install grub-pc
    - grub-mkconfig -o /boot/grub/grub.cfg
    - grub-install /dev/sda
    - grub-install --recheck /dev/sda
    \--------------- -------- ---------------/
    
  8. umount /mnt/sys
  9. umount /mnt/proc
  10. umount /mnt/dev
  11. umount /mnt
  12. reboot

Use sudo where necessary.

Sources:

share|improve this answer

I recently installed Windows 8 Pro to an extra hard drive on my PC. My system which runs Ubuntu primarily and boots up through GRUB couldn't seem to find the new OS after I installed it. So I searched and read all of these solutions involving manually re-configuring GRUB system files, uninstalling and re-installing Windows, etc. All of these are terrible solutions. The best solution is so, so easy. All you have to do is run this update command for GRUB from a terminal window within your Linux distro:

$ sudo update-grub

It searches your hard drives for new kernels and OSs. Problem Solved. Enjoy!

share|improve this answer

Your Answer

 
discard

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.