Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
SUSE / openSUSE This Forum is for the discussion of Suse Linux.


  Search this Thread
Old 07-03-2013, 09:38 AM   #1
LQ Newbie
Registered: Jun 2013
Location: Venezuela
Distribution: Debian 7.7 Wheezy
Posts: 17

Rep: Reputation: 0
Unhappy grub2 can't see my win 7 partition and yast2 bootloader can't reinstall grub2

Hi everybody

I have a AMD Athlon PC in my office, with 4GB of RAM and a 500 GB hard disk. Installed Win 7 HP-64 and openSUSE 12.3 and everything went fine -except for a network connection issue i've already solved myself. My Win 7 installation just crushed a few days later so i had to reinstall Windows. Of course, the MBR was overwritten by the Windows setup wizard so i had to boot into my openSUSE partition via a linux rescue cd. I ran the Yast2 bootloader module as root and reinstall Grub2, making no effect at all -my pc just boot directly into Win 7.

I tried this fix from the openSUSE Forum

I managed to recover the grub2 menu, but no Win 7 entry shows on the menu. I checked all grub2 configuration and script files:

/boot/grub2/grub.cfg -just checked without editing it

and the scripts in /etc/grub.d directory are all in executable mode. So they are all fine. One more time i tried to setup grub2 -via command line as root- and nothing happend: there wasn't any Win 7 in the grub menu. So i ran the boot repair CD and restore MBR. The recovery utility in the cd could detect the windows partition.

After all this long explanation my questions are as follows:

Isn't the grub2 script 30_os-prober detecting my windows partition?
Is the Yast2 bootloader module working in the wrong way?
Is this an openSUSE bug?

My hard disk has four partitions: three primary and one extended:

sda1, primary, NTFS, with Win 7, 116.5 GB aprox
sda2, extended, 116.5 GB aprox
sda5 swap 2 GB
sda6 / 20 GB aprox
sda7 /home 94 GB aprox
sda3, primary, NTFS, 116.5 aprox
sda4, primary, NTFS, 116.5 aprox

The sizes in sda2 sums to 116.5 GB aprox.
Old 07-03-2013, 10:39 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,647
Blog Entries: 11

Rep: Reputation: 220Reputation: 220Reputation: 220
Just a guess. Check out /etc/default/grub if it exists (debian has it). Dunno for SuSe. Maybe the option to check on other operation systems is commented out. Else you could add a entry for Win7 by hand.

Other things to try.
Boot into suse.
Move /boot/grub/grub.cfg to some place safe
grep -i "Win" /boot/grub/grub.cfg
(if found then you'd be good.)
1 members found this post helpful.
Old 07-03-2013, 06:06 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,908

Rep: Reputation: Disabled
A long time ago i gave up on forcing MS Windows
-- this solved a lot of problems and hair pulling

with Win7 and opensuse i removed the OEM's hidden "recovery" partition
installed win7 on the First partition of the first drive ( i have 3 )
then installed opensues on the next partitions
making a /boot partition for grub ( the FIRST linux partition )
then opensuse's on the nest linux partitions

sda1 Win7 C:\\ - MBR
sda2 /boot -- grub
sda3 SWAP
sda4 -- EXTENDED
sda5 /
sda6 /home

this leaves the microsoft bootloader intact !!! - very important
set /sda2 ( /boot) as the boot partition in the bios .

The opensuse installed automatically set up grub's "windows7" entry to point and chainload to sda1
-- all i had to do was write "windows 7" in the space for it's name during install

windows can replace the MBR to it's harts content and it will NEVER effect grub

Last edited by John VV; 07-03-2013 at 06:17 PM.
1 members found this post helpful.
Old 07-03-2013, 10:53 PM   #4
LQ Newbie
Registered: Jun 2013
Location: Venezuela
Distribution: Debian 7.7 Wheezy
Posts: 17

Original Poster
Rep: Reputation: 0
I checked /etc/default/grub and everything just look fine. The option for checking other OS isn't commented, but in /boot/grub2/grub.cfg there isn't any line for Win 7; i tried "grep -i "Win"" on grub.cfg as zhjim suggested and nothing happend.

The hard disk doesn't have a recovery partition or any other kind of hidden partition made for Windows to work. I removed them and created my own partitions as i described in my previous message, but is a good approach if i decide to install everything again. Thanks John VV.

By the way, today while checking the options you both gave to me, my internet connection suddenly stop working although the K-NetworkManger daemon was up and working: the Network icon was up, the wired connection was "active", and eth0 interface setup looks good.
Old 07-04-2013, 01:25 AM   #5
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,908

Rep: Reputation: Disabled
most cable boxes are but together by the LOWEST bidder and the software is wrote by the LOWEST bidder

ram issues are normal ( they should NOT happen but it is VERY common )
-- i wonder just how many times they had to force the compiler to ignore the " no deconstructor " error

push the reset button on the cable box .

Last edited by John VV; 07-04-2013 at 01:28 AM.
Old 07-07-2013, 11:38 PM   #6
LQ Newbie
Registered: Jun 2013
Location: Venezuela
Distribution: Debian 7.7 Wheezy
Posts: 17

Original Poster
Rep: Reputation: 0
After a few days struggling with grub2, yast2, and a couple more unexplainable issues with my openSUSE installation, I decided to make a fresh installation of Ubuntu Linux. I will try openSUSE at some other time. Thanks for the help guys!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kcm-grub2 - No valid GRUB2/BURG installation could be detected cristi92b Linux - Newbie 2 06-14-2012 09:01 AM
Configuring GRUB2 Bootloader kory.l.hansen Linux - Desktop 6 01-12-2012 08:33 PM
[SOLVED] GRUB2 - Boot to Partition with Custom Bootloader snmcdonald Linux - General 2 01-04-2012 04:21 PM
[SOLVED] How to start Grub2-bootloader from extlinux-bootloader? floppy_stuttgart Linux - Newbie 13 11-13-2011 07:43 PM
[SOLVED] GRUB2 after a minor update of GRUB2 /boot prefix no longer needed?? wikapuki Linux - Software 1 10-24-2010 03:39 PM

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration