Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › GRUB to GRUB2 issues, can't boot Win 7
New Posts  All Forums:Forum Nav:

GRUB to GRUB2 issues, can't boot Win 7

post #1 of 11
Thread Starter 
So, I've decided to go back to straight Debian for my Linux uses, and I've eliminated 90% of the issues I was having.

However, there is one that's sticking a bit. When I previously used Debian (Squeeze) I was using grub-legacy - and could boot my Windows 7 installation (on a RAID 0 array controlled by the Intel ICH10R controller) using the following:
Code:
root hd(2,0)
makeactive
chainloader +1

And everything worked fine. Now, the base install uses grub2 - I figure it's about time I made the switch, even though I prefer grub-legacy tremendously. Anyways, grub2 is not detecting my Windows 7 install by default, and I've been unable to manually enter a grub entry that works. The closest I've gotten is by entering:
Code:
menuentry "Windows 7" {
    set root=(hd3,1)                ##Since realizing grub2 uses a base of 1 and not 0 for this
    chainloader +1
}

However, that throws an error of "Cannot set C/H/S values" (or similar). I realize it's not able to gather that information because it's a RAID array. So I'm left with two questions:

1) How can I get grub2 to either detect the installation of Win 7 when running "update-grub", or how can I enter a manual entry that works?
2) Why can't grub2 gather the needed information for the RAID array whereas grub-legacy does it without complaint?
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #2 of 11
sudo apt-get install dmraid
sudo update-grub

had to do this in ubuntu, so i know debian doesn't come with it smile.gif
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
post #3 of 11
***, debian comes with update-grub are you nuts!?

OP, change to:
Code:
menuentry "Windows 7" {
    set root=(hd2,1)      ##Since realizing grub2 uses a base of 1 and not 0 for this
    chainloader +1
}
Try messing with different root #s? Idk, it should auto-detect unless it's having issues with the raid setup.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #4 of 11
Thread Starter 
Quote:
Originally Posted by transhour;15308617 
sudo apt-get install dmraid
sudo update-grub

had to do this in ubuntu, so i know debian doesn't come with it smile.gif

Installed it, and during the installation it ran an update-initramfs, which generated this:
Code:
mdadm: cannot open /dev/md/OverKill: No such file or directory

OverKill is the name of the array - I don't have it mounted however. In fact I have been unable to mount it, nothing in /dev/ references that array - however there is a /dev/md127 which generates a "can't read superblock" error when I attempt to mount it to anything.

Running update-grub still does't detect the Windows 7 install/ RAID array. frown.gif
Quote:
**, debian comes with update-grub are you nuts!?

OP, change to:
Code:
menuentry "Windows 7" {
    set root=(hd2,1)      ##Since realizing grub2 uses a base of 1 and not 0 for this
    chainloader +1
}
Try messing with different root #s? Idk, it should auto-detect unless it's having issues with the raid setup.

I believe he meant dmraid doesn't come with Debian by default - which it didn't, at least for me.

Anyways, I've attempted changing the hard drive and partition numbers in grub, however (hd3,1) is the only one that will lock to a device other than the one my Linux install is on, and like I said it generates an error relating to an unknown disk geometry.
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #5 of 11
i look into it see if i can figure out if i did anyting different, i have a raid0 on the ich10 (not sure it is the r, its whatever p55 is).

just out of complete curiosity did you restart?
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
post #6 of 11
Thread Starter 
Quote:
Originally Posted by transhour;15310754 
i look into it see if i can figure out if i did anyting different, i have a raid0 on the ich10 (not sure it is the r, its whatever p55 is).

just out of complete curiosity did you restart?

Yessir.
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #7 of 11
figured it was a long shot, gosh only if it was ever that easy ya know smile.gif
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
post #8 of 11
what does

fdisk -l

produce in terminal?
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(12 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveHard DriveOSMonitor
250gb Samsung Evo 850 250gb Samsung Evo 850 Windows 10 Samsung 43" 4k MU6300 
KeyboardPowerCaseMouse
Logitech Orion Spark 750w corsair Corsair 230T (Orange) Logitech G700 
  hide details  
Reply
post #9 of 11
Thread Starter 
Quote:
Originally Posted by transhour;15322010 
what does

fdisk -l

produce in terminal?
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005119b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13       96256   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        1472    11718656   82  Linux swap / Solaris
/dev/sda3            1472       16669   122070016   83  Linux
/dev/sda4           16669       69135   421436417    5  Extended
/dev/sda5           16669       69135   421436416   83  Linux

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x10211021

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1      121601   976760001    7  HPFS/NTFS

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2f3c3120

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/sdb: 8162 MB, 8162115584 bytes
82 heads, 49 sectors/track, 3967 cylinders
Units = cylinders of 4018 * 512 = 2057216 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        3968     7969992    b  W95 FAT32

Disk /dev/dm-0: 1000.2 GB, 1000210694144 bytes
255 heads, 63 sectors/track, 121602 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Disk identifier: 0x10211021

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1   *           1      121601   976760001    7  HPFS/NTFS
Partition 1 does not start on physical sector boundary.

Disk /dev/dm-2: 1000.2 GB, 1000202241024 bytes
255 heads, 63 sectors/track, 121600 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 131072 bytes / 262144 bytes
Alignment offset: 98816 bytes
Disk identifier: 0x6e697373

This doesn't look like a partition table
Probably you selected the wrong device.

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-2p1   ?      120528      234814   918008208   4f  QNX4.x 3rd part
Partition 1 does not end on cylinder boundary.
Partition 1 does not start on physical sector boundary.
/dev/dm-2p2   ?      119381      153271   272218546+  73  Unknown
Partition 2 does not end on cylinder boundary.
Partition 2 does not start on physical sector boundary.
/dev/dm-2p3   ?      113202      147075   272087568   2b  Unknown
Partition 3 does not end on cylinder boundary.
Partition 3 does not start on physical sector boundary.
/dev/dm-2p4   ?      177064      177067       27487   61  SpeedStor
Partition 4 does not end on cylinder boundary.
Partition 4 does not start on physical sector boundary.

Partition table entries are not in disk order

The two 500GB drives are my RAID 0. Why it doesn't read the second drive is beyond me.
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Core i7 970 @ 4.0 GHz 1.22 Vcore Asus Rampage II Gene GTX 260 216SP G.SKILL PI 3x2gb DDR3 1600 @ 7-8-7-24 
Hard DriveOSMonitorPower
2x 500gb Seagates RAID 0, 1x 500gb non-RAID Windows 7 Professional x64 ASUS 24'' VH242H / Spectre 24'' WS Corsair 750TX 
Case
Corsair 300R 
  hide details  
Reply
post #10 of 11
You'll like have to clear the Master Boot Record.

Grub installs to the MBR so that when you boot up, you're able to select the operating system BEFORE the BIOS loads one automatically.

When I has Ubuntu installed on my old system, and partitioned the Ubuntu drive, it deleted all related Ubuntu files. This included the GRUB in the Master Boot Record.

As a result I was getting the same "no such file or directory" error, since the GRUB was deleted.

You'll have to google how exactly to CLEAR THE MASTER BOOT RECORD for your specific system configuration.
    
CPUGraphicsRAMHard Drive
4790k EVGA GTX 980 Ripjaws 1866 Intel 730 
CoolingMonitorCase
silent wings ASUS Vga 236h define r5 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
4790k EVGA GTX 980 Ripjaws 1866 Intel 730 
CoolingMonitorCase
silent wings ASUS Vga 236h define r5 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › GRUB to GRUB2 issues, can't boot Win 7