Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Adding Win 7 to GRUB
New Posts  All Forums:Forum Nav:

Adding Win 7 to GRUB

post #1 of 9
Thread Starter 
So I decided to give Ubuntu another try now that 12.10 has better support for uefi, and went through the install the normal way. It didn’t detect my windows install like it does, but I moved on, chose erase and install on sdc (windows is sda, and a have a data drive thats sdb). I restart and Ubuntu boots up just fine, but I cant get to windows, and update-grub doesn’t work. Boot repair thinks i have a RAID array and I don't and recommended repair doesnt work anyway. I generated a boot info script though, http://paste.ubuntu.com/1317998/

Any help would be apperciated
The Lie v2
(18 items)
 
  
CPUMotherboardGraphicsRAM
i5 4690k ASRock z97 Extreme 4 EVGA GTX 1070 Crucial 
Hard DriveHard DriveHard DriveCooling
Crucial MX300 WD Caviar Blue 500 Gb Crucial MX300 Corsair H100i 
OSOSMonitorKeyboard
Manjaro Win10 lg29um58 Ducky One TKL RGB 
PowerCaseMouseMouse Pad
OCZ Modxtreme 600w INWin 303 Logitech G602 Rubber 
AudioOther
HD598 Lots of fans 
  hide details  
Reply
The Lie v2
(18 items)
 
  
CPUMotherboardGraphicsRAM
i5 4690k ASRock z97 Extreme 4 EVGA GTX 1070 Crucial 
Hard DriveHard DriveHard DriveCooling
Crucial MX300 WD Caviar Blue 500 Gb Crucial MX300 Corsair H100i 
OSOSMonitorKeyboard
Manjaro Win10 lg29um58 Ducky One TKL RGB 
PowerCaseMouseMouse Pad
OCZ Modxtreme 600w INWin 303 Logitech G602 Rubber 
AudioOther
HD598 Lots of fans 
  hide details  
Reply
post #2 of 9
I have yet to figure out how to get grub to load windows with uefi. However, on my laptop I installed a dual boot with uefi and to switch between windows and linux I have to do it through the bios and switch the boot order. Granted, this isn't the ideal way to do but it does work for me and I really dont find it all that inconvenient. However, we may have installed things a bit different so it may not work for you.
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
post #3 of 9
sudo apt-get install os-prober && sudo update-grub
post #4 of 9
Thread Starter 
Quote:
Originally Posted by Shrak View Post

sudo apt-get install os-prober && sudo update-grub

worked just fine, thanks a lot! thumb.gif
The Lie v2
(18 items)
 
  
CPUMotherboardGraphicsRAM
i5 4690k ASRock z97 Extreme 4 EVGA GTX 1070 Crucial 
Hard DriveHard DriveHard DriveCooling
Crucial MX300 WD Caviar Blue 500 Gb Crucial MX300 Corsair H100i 
OSOSMonitorKeyboard
Manjaro Win10 lg29um58 Ducky One TKL RGB 
PowerCaseMouseMouse Pad
OCZ Modxtreme 600w INWin 303 Logitech G602 Rubber 
AudioOther
HD598 Lots of fans 
  hide details  
Reply
The Lie v2
(18 items)
 
  
CPUMotherboardGraphicsRAM
i5 4690k ASRock z97 Extreme 4 EVGA GTX 1070 Crucial 
Hard DriveHard DriveHard DriveCooling
Crucial MX300 WD Caviar Blue 500 Gb Crucial MX300 Corsair H100i 
OSOSMonitorKeyboard
Manjaro Win10 lg29um58 Ducky One TKL RGB 
PowerCaseMouseMouse Pad
OCZ Modxtreme 600w INWin 303 Logitech G602 Rubber 
AudioOther
HD598 Lots of fans 
  hide details  
Reply
post #5 of 9
Quote:
Originally Posted by Shrak View Post

sudo apt-get install os-prober && sudo update-grub

When I do this it generates the grub.cfg and says "Found Windows 7 (loader) on /dev/sda3". However, I believe that the loader is actually either /dev/sda1 or /dev/sda2

Labels in gparted read ...
/dev/sda1 SYSTEM
/dev/sda2 unknown
/dev/sda3 OS
then the linux partitions
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
post #6 of 9
Quote:
Originally Posted by piday View Post

When I do this it generates the grub.cfg and says "Found Windows 7 (loader) on /dev/sda3". However, I believe that the loader is actually either /dev/sda1 or /dev/sda2
Labels in gparted read ...
/dev/sda1 SYSTEM
/dev/sda2 unknown
/dev/sda3 OS
then the linux partitions

The loader is usually on the OS portion for Windows drives. Seldomly have I seen it on SYSTEM/RECOVERY and other partitions.

So best I can say is to try the new option that got added and see if it works. If not, while in grub press e and change the partition number till you get it right, then we'll work on getting it to be permanent on that partition number.
post #7 of 9
So I have tried it on all 3 by pressing 'e' in grub

if it helps here is what it says in edit...

setparams 'Windows 7 (loader) (on /dev/sda3)'

insmod part_gpt
insmod ntfs
set root='(hd0,gpt3)'
search --no-floppy --fs uuid --set=root (There are some numbers...)
chainloader +1
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
post #8 of 9
Are there any other ideas how i can get the Win 7 loader to work in Grub?

Also, this is for my asus Laptop if that makes a difference.
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
MAIN RIG
(9 items)
 
  
CPUMotherboardGraphicsCooling
FX 8350 ASUS Sabertooth 990fx MSI twin Frozer 2 560ti H80 
OSOSMonitorPower
Linux Mint Maya Windows 7 Auria  Corsair GS 700 
Case
Antec 900 
  hide details  
Reply
post #9 of 9
Did you change the " (on /dev/sda3) " or the " set root='(hd0,gpt3)' " as the later is the proper one to change, the first is just a label.

hd0 means the first disk drive
gpt3 means the 3rd gparted partition, so you want to change it to 1, then try to boot, if it doesn't work change it to 2 and try to boot again.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Adding Win 7 to GRUB