I have Ubuntu 14.04 installed on an SSS running perfectly. Got a new 2TB drive that has Windows 7 installed on it.

How do I add Windows 7 to my grub menu?

This is output of sudo update-grub:

Searching for GRUB installation directory ... 
found: /boot/grub Searching for default file ... 
found: /boot/grub/default Testing for an existing GRUB menu.lst file ... 
found: /boot/grub/menu.lst Searching for splash image ... 
none found, skipping ... 
Found kernel: /boot/vmlinuz-3.13.0-51-generic 
Found kernel: /boot/vmlinuz-3.13.0-49-generic Found kernel: /boot/vmlinuz-3.13.0-24-generic 
Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done

This is the output of sudo os-prober:

sudo os-prober /dev/sdc1:Windows 7 (loader):Windows:chain
  • you will need a new product key if the mobo is not the one originally registered to windows 7 unless w7 was purchased separately and then in some cases it may be licensed to more than one computer. – mchid May 4 '15 at 21:23
  • "can I not just manually tell it to add windows?" answered here: askubuntu.com/a/22632/40581 – LiveWireBT May 5 '15 at 7:41
  • Is /dev/sdc1 in the /etc/fstab ? If not, add it, but with a noauto flag. – s3lph May 8 '15 at 13:59
  • @mchid How is that in any way related to the OPs question? Even an unactivated Windows can be booted. – s3lph May 8 '15 at 14:00
  • @the_Seppi While it is in no way an answer or a solution to the question, it is closely related. Microsoft defines "new computer" as a different mobo in the licensing agreement. – mchid May 8 '15 at 18:14

Run the command sudo update-grub.

If it still does not work try boot-repair. It will attempt to fix the problem, if it can't it will provide a link with all the information we need to further troubleshoot the issue.

| improve this answer | |
  • did that. still nothing. – Darby Gallagher May 4 '15 at 20:40
  • 1
    Make sure os-prober is installed with sudo apt-get install os-prober. – Pabi May 4 '15 at 20:44
  • said that the latest version of os-prober already installed. – Darby Gallagher May 4 '15 at 20:47
  • 1
    I do not talk about update-grub. I am talking about boot-repair which is linked in my answer. – Pabi May 4 '15 at 21:32
  • 1
    @Pabi address your comment with @ + DarbyGallagher at the beginning so that he will receive a notification for it. – mchid May 4 '15 at 21:37

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