problems with dual-boot windows7 and openSUSE 11.2.

Hello!

I’m complete newbie to Linux but i thought i could manage a dual boot installation. But I didn’t:|

First problem (sorry to Linux enthusiasts) is that I can’t start Windows from grub menu , because it says the bootmgr is missing.Probably something i did wrong during instalation…

Second problem is that linux won’t load, it hangs through the loading, probably some drivers problem or something.It loads in failsafe mode though…

I would be very glad, if anyone could help me, because i really don’t know what to do …

Thanks

i ****ed everything up a little bit more … i changed in yast2 windows 7 boot properties to make active when booted, so now i don’t even have a list of options to boot … i used supergrub disk and tried to to fix this and i chose !Linux! (1) Auto option but from there i couldn’t boot into linux, it was saying no such partition or partition error or something like this.
Could you please help me to edit the grub code so that it will be booting properly?

okay … now i fixed everything with supergrubdisk and writing into grub command-line a bit … but how do i now get to load windows?
i found this tutorial: GRUB Boot Multiboot openSUSE Windows (2000, XP, Vista) using the Grub bootloader. but just to make sure i would want to ask you if this is the right way because i don’t want to mess everything again …

Please open a terminal and become su

Now post the output of the following:

fdisk -l
cat /boot/grub/menu.lst

Just in case you don’t know what su is
Become su in Terminal - HowTo - openSUSE Forums


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x88388cbe                     

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.                   
/dev/sda2   *          13        7833    62814208    7  HPFS/NTFS
/dev/sda3            7834       13054    41937682+   f  W95 Ext'd (LBA)
/dev/sda4           13055       60801   383527777+   7  HPFS/NTFS      
/dev/sda5            7834        8095     2104483+  82  Linux swap / Solaris
/dev/sda6            8096       10099    16097098+  83  Linux               
/dev/sda7           10100       13054    23736006   83  Linux               
linux-g60a:/home/matija # cat /boot/grub/menu.lst                           
# Modified by YaST2. Last modification on pon feb 15 00:41:09 CET 2010      
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
gfxmenu (hd0,5)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6 resume=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part5 splash=silent quiet showopts vga=0x317
    initrd /boot/initrd-2.6.31.5-0.1-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
    initrd /boot/initrd-2.6.31.5-0.1-desktop

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 7
    rootnoverify (hd0,1)
    makeactive
    chainloader +1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Disketa
    rootnoverify (fd0)
    chainloader +1

here is the output and thanks for helping :slight_smile:

What currently happens when you select windows 7 from the boot menu?

it says that BOOTMGR is missing …

I suspect that sda1 is a boot partition and that is where the windows code is, so we can try editing the menu to this

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title windows 7
    rootnoverify (hd0,0)
    makeactive
    chainloader +1

To edit the file use the command/s below to match if you use kde or gnome

kdesu kwrite /boot/grub/menu.lst
gnomesu gedit /boot/grub/menu.lst

Enter one of the above in a normal user terminal
Enter password when requested
Save

reboot and try

yes i was thinking the same way but i don’t know where the windows 7 bootloader resides … sda1 is System reserved partition of windows 7 and sda2 is partition where windows are installed … if it helps or should i just try what you suggested?

Can you examine the contents of those partitions from suse?
Look for
bootmgr

If necessary we can make it so you can access them.
I need

cat /etc/fstab

for that

Copy/paste this code in a file and execute it in a terminal :

#! /bin/bash

dev=/dev/sda
 "$1" ] && dev=/dev/$1 

if  -b $dev ] ; then
        dd if=$dev bs=512 count=1 2> /dev/null | grep -q GRUB && echo "Grub found in MBR"
        dd if=$dev bs=512 count=1 2> /dev/null | grep -q NTLDR && echo "NT Loader found in MBR"
        for pt in `fdisk -l $dev | awk '/^\/dev/ { print $1 }'` ; do
                dd if=$pt bs=512 count=1 2> /dev/null | grep -q GRUB && echo "Grub found in $pt"
                dd if=$pt bs=512 count=1 2> /dev/null | grep -q NTLDR && echo "NT Loader found in $pt"
        done
fi

/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part5 swap                 swap       defaults              0 0                                                                                  
/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6 /                    ext4       acl,user_xattr        1 1                                                                                  
/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part7 /home                ext4       acl,user_xattr        1 2                                                                                  
/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part4 /windows/podatki     ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=sl_SI.UTF-8 0 0
/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part2 /windows/win7        ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=sl_SI.UTF-8 0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

here’s what you asked … so you think i should look for a file called bootmgr in either of windows partitions?

With the entries there you should already be able to read the folders in your file manager
But only sda2 and your additional ntfs partition are listed

Just try changing the boot entry I gave earlier in the /boot/grub/menu.lst

it worked … thank you very much … i still have the problem that i can load linux only in failsafe mode and even then it sometimes freezes during loading of drivers … so probably this is the problem?
i suppose i need drivers for graphics and i have enabled wireless but it doesn’t seem to detect wireless network …
any suggestions if you have a moment or two?
i have hp 4710s notebook and ati radeon hd 4330 graphic card

Good to know that worked with the bootloader.

================================
Re; Your other issues.

Post result of this from a su terminal

lspci -v

If you want to put the output to pastebin, it will take less room here

here you are:

link to pastebin

Yep. NT, 2000, XP … I didn’t know about the others, just assumed they would be NT based. Which string should I look for in Vista and Windows 7 bootsector? so I could finalize this script.

So you have an ATI Mobility Radeon HD 4300 Series

ATI drivers - openSUSE

More help here
openSUSE Graphic Card Practical Theory Guide for Users - openSUSE Forums

Networks devices:

Network controller: Broadcom Corporation BCM4312 802.11b/g

and

Ethernet controller: Marvell Technology Group Ltd. Device 436c

Broadcom
http://download.opensuse.org/repositories/home:/broumbroum23/openSUSE_11.2_oss/HCL-WIFI.ymp
But there are also drivers for Broadcom in Packman
The Marvel, I’m not sure about.

You might actually be better starting a new thread in the wireless section, asking for confirmation on the broadcom and any info on the Marvel.

Post your section detail for those devices in the thread you start.

hello!
i have some new questions … when i updated opensuse he modified grub loader so that i didn’t have linux available for loading … i used opensuse installation dvd to repair (which loaded only with settings that has failsafe mode linux boot) and i managed to restore the previous state …
this is menu.lst.old:

default 0
timeout 8
gfxmenu (hd0,5)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6 resume=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part5 splash=silent quiet showopts vga=0x317
    initrd /boot/initrd-2.6.31.5-0.1-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.2 - 2.6.31.5-0.1
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
    initrd /boot/initrd-2.6.31.5-0.1-desktop

this is my current menu.lst:

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,5)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6    repair=1 apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe resume=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part5 splash=silent quiet showopts vga=0x317
    initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Zanesljiv zagon -- SUSE LINUX 
    root (hd0,5)
    kernel /boot/vmlinuz root=/dev/disk/by-id/ata-ST9500420AS_5VJ2335M-part6 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x317
    initrd /boot/initrd

the entry for windows is the same i’m only worried about different vmlinuz files …

Please post result of this

uname -a