LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-12-2004, 01:20 AM   #1
Sergnsk
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Dual boot again - XP and suse


Hello all!

I have 2 operation systems on 2 HDD.
HDD-0 is WinXP and it is Primary Master
HDD-1 is Suse with Grub and it is Secondary Master

I installed Suse on HDD and WinXp separately.

Then I set in BIOS boot from HDD-1 and start Linux, it works fine. But I want boot winxp from linux as well.

I rewrite config:

# Modified by YaST2. Last modification on Fri Oct 8 07:15:27 2004


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 Linux
kernel (hd0,1)/boot/vmlinuz root=/dev/hdc2 vga=0x317 splash=silent desktop resume=/dev/hdc1 showopts
initrd (hd0,1)/boot/initrd

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe
kernel (hd0,1)/boot/vmlinuz root=/dev/hdc2 showopts ide=nodma apm=off acpi=off vga=normal noresume nosmp noapic maxcpus=0 3
initrd (hd0,1)/boot/initrd

title WindowsXP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1

but i get error when try to boot winxp from linux
Error 13: Invalid or unsupported executable format.

I tried to set rootnoverify (hd0,1), (hd0,0), (hd1,1) without success/

In my device.map I write
(hd0) /dev/hdc
(hd1) /dev/hda
(fd0) /dev/fd0

Can you halp me? or may be swapping disks in BIOS make this problem so hard?

Thanks
 
Old 10-12-2004, 11:20 AM   #2
basix
Member
 
Registered: Dec 2003
Distribution: Red Hat Linux 9, Fedora Core 1, *Fedora Core 2*
Posts: 74

Rep: Reputation: 15
Code:
#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1

# For booting GNU/Hurd
title  GNU/Hurd
root   (hd0,0)
kernel /boot/gnumach.gz root=hd0s1
module /boot/serverboot.gz

# For booting GNU/Linux
title  GNU/Linux
root (hd1,0)
kernel /vmlinuz root=/dev/hdb1
#initrd /initrd.img

# For booting Mach (getting kernel from floppy)
title  Utah Mach4 multiboot
root   (hd0,2)
pause  Insert the diskette now!!
kernel (fd0)/boot/kernel root=hd0s3
module (fd0)/boot/bootstrap

# For booting FreeBSD or GNU/KFreeBSD
title  FreeBSD / GNU/KFreeBSD
root   (hd0,2,a)
kernel /boot/loader

# For booting NetBSD or GNU/KNetBSD
title  NetBSD / GNU/KNetBSD
root   (hd0,2,a)
kernel --type=netbsd /netbsd

# For booting OpenBSD
title  OpenBSD
root   (hd0,2,a)
kernel --type=netbsd /bsd

# For booting OS/2
title OS/2
root  (hd0,1)
makeactive
# chainload OS/2 bootloader from the first sector
chainloader +1
# This is similar to "chainload", but loads a specific file
#chainloader /boot/chain.os2

# For booting Windows NT or Windows95
title Windows NT / Windows 95 boot menu
rootnoverify (hd0,0)
makeactive
chainloader  +1
# For loading DOS if Windows NT is installed
# chainload /bootsect.dos

# For installing GRUB into the hard disk
title Install GRUB into the hard disk
root    (hd0,0)
setup   (hd0)

# Change the colors.
title Change the colors
color light-green/brown blink-red/blue
Heres my menu.lst for grub. BTW i think the problem is grub is not written to the MBR.
 
Old 10-12-2004, 11:30 PM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
basix is correct in saying that so far you have grub in the linux hard drive and if you make the XP boot first, then you have yet to put grub in the XP mbr drive.

But you are right to know there are bios choices.
If you change bios to boot the linux drive first you may not have forced grub to see your new device map file so choosing XP takes you back to the incorrect LINUX partition. error 13 would suggest this. But you mention your linux boots so wt?

Anyhow lets not put grub into your XP drive until we can safely get things working on a floppy first ok?

If you have a floppy drive lets set up grub
mount a formatted floppy and make directories so that its
/mnt/floppy/boot
/mnt/floppy/boot/grub

copy only the stage 1 and 2 files into the floppy grub folder

copy a new menu.lst file into floppy grub folder
###########contents of menu.lst

timeout 5
default 0
fallback 1

title XP is default zero
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

title XP is fallback
rootnoverify (hd0,1)
makeactive
chainloader +1
###########end of file

Setup floppy by opening a terminal and typing su to get root password then type
grub --device-map=/boot/grub/device.map #####to force your device map to be used

prompt changes to grub
root (fd0)
setup (fd0)

should give you some messages and as long as the last line shows succeeded we don't care.


so we have a boot disk that has stage1 in the floppy mbr and a menu list file that will attempt to boot xp one way and then the other without risking your current mbr. Assuming that the fallback kicks in, it means grub did not think XP was on hd1 or your bios is still not set to boot the slave first?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack and suse dual boot. boot error cormack Slackware 4 05-24-2006 01:10 AM
Dual boot SUSE/XP But SUSE wont let me boot or see boot menu Hairulfr SUSE / openSUSE 9 08-17-2005 12:57 PM
Dual-boot WinXP / Suse 9, keeps crashing after installing Suse MagNiTek Linux - General 2 07-08-2005 12:39 PM
Dual Boot - XP & Suse 9.1 - Need help with boot.ini johnnytriumph Linux - Newbie 1 04-05-2005 06:18 AM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:15 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