LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-04-2005, 09:22 AM   #1
laubster
LQ Newbie
 
Registered: Jan 2005
Posts: 3

Rep: Reputation: 0
Question Help dual booting XP and SUSE 9.2 w/ GRUB


I am having trouble with GRUB. Currently I have 2 hard drives -- the first has suse linux professional installed and the second has windows installed. When I boot my computer, GRUB loads fine. From there I can boot into linux, but when I choose the windows option form the GRUB menu, the screen goes blank and then returns me to the GRUB menu.

Here is my /boot/grub/menu.lst file:

# Modified by YaST2. Last modification on Tue Jan 4 04:37:12 2005


color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,1)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.2
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 vga=0x317 selinux=0 splash=silent console=tty0 resume=/dev/hda1 desktop elevator=as showopts
initrd (hd0,1)/boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
root (hd1,0)
chainloader +1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.2
kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off iommu=noforce maxcpus=0 3
initrd (hd0,1)/boot/initrd



Any suggestions???
 
Old 01-04-2005, 01:41 PM   #2
keyfitter
LQ Newbie
 
Registered: Sep 2004
Location: Texas
Distribution: Vector Linux
Posts: 26

Rep: Reputation: 15
Your menu looks ok. One thing I can think of at this time is to try reinstalling your
bootloader off of the install CD. Choose the repair option.
 
Old 01-05-2005, 01:34 AM   #3
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Woah, hold it! Windows doesn't like being anywhere except the primary master drive. No matter what boot loader you use, you will need to trick Windows temporarily into thinking that it is on the primary master or it will not boot. I'm kinda supprized that SuSE didn't set this up correctly.

First, you may want to change "root" to "rootnoverify" (though I don't think you need to.)

Add this before your chainloader command:

Code:
map (hd0) (hd1)
map (hd1) (hd0)
This will temporarily switch the primary master and primary slave drives in bios. Any time you want to boot Windows from Grub on any secondary drive you will need this. I think you keep the root command pointed at (hd1,0).
 
Old 01-05-2005, 05:34 PM   #4
keyfitter
LQ Newbie
 
Registered: Sep 2004
Location: Texas
Distribution: Vector Linux
Posts: 26

Rep: Reputation: 15
Bootloaders

Quote:
Woah, hold it! Windows doesn't like being anywhere except the primary master drive. No matter what boot loader you use, you will need to trick Windows temporarily into thinking that it is on the primary master or it will not boot. I'm kinda supprized that SuSE didn't set this up correctly.

Currently I use Windows on each hard drive (2). I have SuSE installed on my first drive along with one of the Windows operating systems. The first stage of GRUB is installed in the MBR
of Windows on the primary master. I can go into either Windows
installation from GRUB. I have been through several installs with
SuSE 9.1 Personal, SuSE 9.1 Pro, SuSE 9.2 Pro and Mandrake 10.1. Some of these extra installs were from me messing up the
Linux OS. (I'm new too). I never had a problem with not getting into Windows. The only thing that SuSE can improve on is giving the bootloader back to Windows on an uninstall like Mandrake
does.
 
Old 01-05-2005, 09:45 PM   #5
gd2shoe
Member
 
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835

Rep: Reputation: 49
Re: Bootloaders

Quote:
Originally posted by keyfitter
...The only thing that SuSE can improve on is giving the bootloader back to Windows on an uninstall like Mandrake
does.
Ah, now there's the trick. With operating systems there is not / should not be any concept of uninstalling (only upgrading and erasing). What you would like to do is install grub stage1 to the boot sector of your boot partition, and set that partition as active. (if /dev/hda1 holds your boot partition, then tell SuSE to install the boot loader there instead)

I'm curious, what version of Windows do you have on that second drive? I didn't think there were any exceptions to the problem. I know that XP has a problem with it. The map command was the only way I could get my XP to boot from the primary slave (that's what the map command is intended for).
 
Old 01-09-2005, 08:53 PM   #6
keyfitter
LQ Newbie
 
Registered: Sep 2004
Location: Texas
Distribution: Vector Linux
Posts: 26

Rep: Reputation: 15
Re: Re: Bootloaders

Quote:
Originally posted by gd2shoe
Ah, now there's the trick. With operating systems there is not / should not be any concept of uninstalling (only upgrading and erasing). What you would like to do is install grub stage1 to the boot sector of your boot partition, and set that partition as active. (if /dev/hda1 holds your boot partition, then tell SuSE to install the boot loader there instead)

I'm curious, what version of Windows do you have on that second drive? I didn't think there were any exceptions to the problem. I know that XP has a problem with it. The map command was the only way I could get my XP to boot from the primary slave (that's what the map command is intended for).
I am using Win XP Pro on both drives. One for normal use and the other one for just applications that have had a problem with service pack 2. I
have enough to do in my spare time besides downloading patches to fix the problems. I rarely go into Windows for anything as SuSe takes care
of most of my computer needs.
 
Old 01-10-2005, 01:58 PM   #7
intenzity513
LQ Newbie
 
Registered: Jan 2005
Posts: 1

Rep: Reputation: 0
WinXP & Suse 9.2 Dual Boot -/- GRUB

I am having problems trying to get SUSE 9.2 to dual boot with XP using GRUB. Below is the hardware config.

Disk 1: P ATA 100GB WD - SUSE 9.2 - CH0 Primary Master (HD0,hdd)
Disk 2: P ATA 200GB WD - NTFS Volume - CH1 Secondary Master (HD1,hdc)
Disk 3: S ATA 080GB WD - SFS / XP Boot Volume - CH2 Primary Slave (HD2,sda)

Windows XP was installed on to the SATA CH2 PS.
Suse 9.2 was installed on to the PATA CH0 PM volume and grub was also installed on to the PATA volume on to the MBR.

BIOS is set to boot from the PATA CH0 PM drive. Grub loads, and Suse will boot.

If I change the boot drive priority in the BIOS to boot from SATA CH2 PS, Windows XP will boot.

Is there a way to setup GRUB to boot XP from the SATA drive without installing GRUB on the SATA/XP boot drive MBR/Boot Sector?

I have tried adding the following lines to the GRUB menu.lst with no success:
___________________________________________________
title Microsoft Windows XP Professional
rootnoverify (hd2,1)
chainloader +1
___________________________________________________
title Microsoft Windows XP Professional
map (hd2,1) (hd0,1)
rootnoverify (hd0,1)
chainloader +1
___________________________________________________

I receive: Error 13: Invalid or unsupported executable format

Is this setup possible, or will I have to install GRUB onto the MBR/Boot Sector of the SATA/XP Drive to get this to work?

Last edited by intenzity513; 01-10-2005 at 02:19 PM.
 
  


Reply



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
Dual-booting using grub damasta55r Linux - Newbie 13 11-20-2005 07:02 AM
Dual booting with Grub - installing Win 2000 from CD-Rom with an existing SuSe 9.1 Steve2001 Linux - Newbie 3 01-19-2005 10:15 AM
Grub dual booting assatron Linux - Software 9 11-09-2004 09:11 AM
Dual booting and GRUB jfrye Linux - Newbie 1 10-09-2003 09:48 AM
GRUB, and dual booting sammyballz Linux - General 9 10-14-2002 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:51 AM.

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