LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2006, 11:11 PM   #1
trbelmore
LQ Newbie
 
Registered: Oct 2006
Posts: 11

Rep: Reputation: 0
Broken Grub


I tried to make GRUB work for dual boot SUSE 10.1 on sda XP on sdb.
The Linux option works fine, but the XP option does work worth flip. Here is the meun.lst file. Is there another file that I need to modify?

# Modified by YaST2. Last modification on Mon Oct 30 06:21:10 CST 2006
color white/blue black/light-gray
default 0
timeout 30
gfxmenu (hd0,1)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.1
root (hd0,1)
kernel /vmlinuz root=/dev/sda3 vga=0x31a resume=/dev/sda1 splash=silent showopts
initrd /initrd

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.1
root (hd0,1)
kernel /vmlinuz root=/dev/sda3 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
initrd /initrd

###Don't change this comment - YaST2 identifier: Original name: WinXP###
title Windows XP
rootnoverify (hd1,0)
map (hd0,1) (hd1,0)
map (hd1,0) (hd0,1)
makeactive
chainloader (hd0,1)+1
 
Old 10-31-2006, 11:51 PM   #2
PipeDreams
Member
 
Registered: Dec 2005
Distribution: Mandriva 2006 x64
Posts: 161

Rep: Reputation: 30
I had xp on my second sata disk awhile back and I had to change my xp entry in grub to (hd0,0) instead of the correct location (hd1,0) for it to boot properly.

I guess win likes to think its first all the time.Ha!

Actually I think my problem was a hardware issue.My board has 2 sets of sata connections using different controllers.I was using both sets of connections.

I eventually corrected this with bios settings.
 
Old 11-01-2006, 05:50 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The map commands are wrong--there should not be any partition numbers.

It should look more like this:
Quote:
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
Also note that the root command goes after the map

Last edited by pixellany; 11-01-2006 at 05:51 AM.
 
Old 11-01-2006, 06:09 AM   #4
sadiqdm
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: openSUSE, Ubuntu
Posts: 358

Rep: Reputation: 35
I agree. I have Suse 10.1 and Windows on 2 machines. My laptop menu.lst file looks like this:

==== quote ====
menu.lst
# Modified by YaST2. Last modification on Wed Sep 27 14:07:25 BST 2006
color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,3)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE Linux 10.1
root (hd0,3)
kernel /boot/vmlinuz root=/dev/hda4 vga=0x314 resume=/dev/hda8 splash=sile
initrd /boot/initrd

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE Linux 10.1
root (hd0,3)
kernel /boot/vmlinuz root=/dev/hda4 vga=normal showopts ide=nodma apm=off a
initrd /boot/initrd
===========

Be careful when doing mods to XP that might make changes to the boot sector of the disk. I've had scandisk trash GRUB, by "fixing" the MBR and thus removing GRUB!
 
Old 11-01-2006, 04:04 PM   #5
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Quote:
Originally Posted by pixellany
The map commands are wrong--there should not be any partition numbers.
Also note that the root command goes after the map
Yes, I am pretty sure that this is the problem. Try these commands that pixellany suggested and it will probably work.
 
Old 11-01-2006, 09:16 PM   #6
trbelmore
LQ Newbie
 
Registered: Oct 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Grub still broken

Hey all,
I posted last night and got some good ideas, unfortunately, none of them worked.
I have Suse 10.1 on sata drive sda, XP on sata drive sdb. Below is my menu.lst file, with yesterday's suggestion incorporated.

The message I get when I boot into Windows is "Error 13: Invalid or unsupported executable format."

Any more ideas?

# Modified by YaST2. Last modification on Mon Oct 30 06:21:10 CST 2006
color white/blue black/light-gray
default 0
timeout 30
gfxmenu (hd0,1)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.1
root (hd0,1)
kernel /vmlinuz root=/dev/sda3 vga=0x31a resume=/dev/sda1 splash=silent showopts
initrd /initrd

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.1
root (hd0,1)
kernel /vmlinuz root=/dev/sda3 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
initrd /initrd

###Don't change this comment - YaST2 identifier: Original name: WinXP###
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
 
Old 11-01-2006, 10:11 PM   #7
uosg
LQ Newbie
 
Registered: Sep 2006
Posts: 2

Rep: Reputation: 0
Nice to work

Quote:
Originally Posted by trbelmore
I tried to make GRUB work for dual boot SUSE 10.1 on sda XP on sdb.
The Linux option works fine, but the XP option does work worth flip. Here is the meun.lst file. Is there another file that I need to modify?

# Modified by YaST2. Last modification on Mon Oct 30 06:21:10 CST 2006
color white/blue black/light-gray
default 0
timeout 30
gfxmenu (hd0,1)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.1
root (hd0,1)
kernel /vmlinuz root=/dev/sda3 vga=0x31a resume=/dev/sda1 splash=silent showopts
initrd /initrd

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

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.1
root (hd0,1)
kernel /vmlinuz root=/dev/sda3 vga=normal showopts ide=nodma apm=off acpi=off noresume edd=off 3
initrd /initrd

###Don't change this comment - YaST2 identifier: Original name: WinXP###
title Windows XP
rootnoverify (hd1,0)
map (hd0,1) (hd1,0)
map (hd1,0) (hd0,1)
makeactive
chainloader (hd0,1)+1
 
Old 11-01-2006, 11:11 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by uosg
What is your point?
 
Old 11-01-2006, 11:25 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Not supposed to start a new thread---bad dog!!

I did not see in the other thread anything that confirms what partition on sdb has the Windows install---and I 'm not going to go back there to check. The error message means that grub is getting where we sent it and finding no executable code.

Suggest you post the output of fdisk -l so we can see to whole picture.

One of these threads may get closed--so watch both and get your answer in the open one....
 
Old 11-02-2006, 12:46 AM   #10
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Discussion continues here.
 
Old 11-02-2006, 03:30 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I have merged your two threads on the same topic; for future reference:
please don't start a new thread if you still have one active. More specifically,
re-read our rules; you're NOT supposed to start more than one thread
on the SAME topic.


Cheers,
Tink
 
Old 11-02-2006, 08:35 PM   #12
trbelmore
LQ Newbie
 
Registered: Oct 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Partition Info, per pixellany request

/dev/sda 74.5GB
/dev/sda1 5.0GB swap
/dev/sda2 5.0GB /boot
/dev/sda3 10.0GB / (root)
/dev/sda4 54.5GB Ext
/dev/sda5 15.0GB /usr
/dev/sda6 10.0GB /tmp
/dev/sda7 15.0GB /home
/dev/sda8 8.0GB /opt
/dev/sda9 6.4GB /var
/dev/sdb 74.5GB
/dev/sdb1 39.0GB HPFS/NTFS
/dev/sdb2 35.4GB Ext
/dev/sdb5 35.4GB HPFS/NTFS
/dev/sdc 233.7GB
/dev/sdc1 33.7GB FAT32 /photos
/dev/sdc2 200GB EXT
/dev/sdb5 50GB FAT32 /data1
/dev/sdb6 50GB FAT32 /data2
/dev/sdb7 50GB FAT32 /data3
/dev/sdb8 50GB FAT32 /data4
/dev/sdd 233.7GB (will use for test distros after dual boot issue ironed out)

hope this helps

Also, sorry about the dual the dual threads
 
Old 11-03-2006, 05:14 PM   #13
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
Which is your C: drive in windows? Is it /dev/sdb1? Or is it /dev/sdb5? I ask because it is possible that the boot data of winxp is on another parition than the one that the WINDOWS/System32 folder is. Usually this data is on C:, so if /dev/sdb1 is not your C: then try to boot from your C:.

If you can't fix it, verify that these three files are in the root directory of /dev/sdb1: ntldr, ntdetect.com and boot.ini. If they aren't there, use the xp cdrom to fix it. I think that the fixboot command does the job.
 
Old 11-03-2006, 05:30 PM   #14
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
trb;

I started a post on this last night, but got side-tracked.
2 Questions:
Do you know for sure that the Windows install on sdb is good--you could swap the 2 drives (either physically or in the BIOS) and then put the Windows boot code in the mbr using the windows boot disk.

But first: Is the Windows partition marked as active in the fdisk output? I don't claim to understand this, but---while Linux does not care---apparently, windows needs this.
 
  


Reply


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
GRUB broken on dual boot laptop matulike Linux - General 3 08-21-2006 04:35 PM
I've broken grub shame Linux - Software 2 05-02-2006 08:19 AM
Broken GRUB on primary HDD? d4w50n Linux - Newbie 1 04-09-2006 01:04 PM
GRUB Loading stage2 Error, hard-disk broken ??? jdevitt Fedora 5 09-15-2005 09:54 AM
broken grub gravesb Linux - Software 5 06-14-2005 12:19 AM


All times are GMT -5. The time now is 05:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration