LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2005, 01:17 PM   #1
Steve2001
LQ Newbie
 
Registered: Sep 2004
Location: England
Distribution: Suse 9.1
Posts: 19

Rep: Reputation: 0
Using Grub to boot Win from 2nd harddrive


I am trying to make my PC dual boot but have got stuck, may be some here can help me:

I have a PC running Suse 9.1 Professional. The PC has two hardrives:

First IDE channel has a 4GB hardrive (master) with Suse Linux installed and a CD as slave.

Second IDE channel has 40GB harddrive (master) with Windows 2000 Pro installed. nothing as slave on this

IDE channel.

With both hardrives connected, the machine boots up and displaye the GRUB memu if SuSe is chosen all is

fine and Suse starts, however, if I choose Win 2000 from the Grub menu I get this errror:

Error 13 Invalid or unsupported executable format.

the grub script for the Win 2000 menu choice is:

title Win 2000
map(hd0,0)(hd1,0)
map(hd1,0)(hd0,0)
rootnoverify (hd1,0)
chainloader +1


Thinking it was an error in the Win installation I have tried turning off the PC, disconnecting the

ribbon cable from the Linux drive and then re-booting and in this case the PC boots in to Win 2000.
So I am convinced that the installation of Win 2000 on the second hard drive is correct but that the

Grub script is not correct.

What should the correct grub commands be to boot into Win 2000 on the second drive?
 
Old 01-30-2005, 02:06 PM   #2
Steve2001
LQ Newbie
 
Registered: Sep 2004
Location: England
Distribution: Suse 9.1
Posts: 19

Original Poster
Rep: Reputation: 0
Fixed!


After the error I played arround with some commands line instructions to Grub and eventually got it to boot.

My Win 2000 Grub script is now:



map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1
boot


This seems OK, although I'm not sure why the boot is needed as what I have says that Grub should automatically add this when executing boot menu selections.
 
Old 02-05-2005, 11:33 PM   #3
Juerg
LQ Newbie
 
Registered: Feb 2005
Location: Bangkok
Posts: 3

Rep: Reputation: 0
Hi

I got something similar, it help to follow the advise of SUSE to change the IDE-HD from AUTO-detection to LBA. It boots smooth now.

Regards
Juerg
 
Old 02-06-2005, 11:58 PM   #4
Nechos
Member
 
Registered: Sep 2003
Location: Italy
Distribution: Ubuntu 13.10
Posts: 304

Rep: Reputation: 30
I had the similar problem some time ago, and tried/learned "all" the grub options and command line combinations without success...I'm pretty sure I screwed up winxp boot before that (so I had no chance of repairing it). Anyway, I'm pretty sure you can do without the two "map...." lines, because what 'map' does is shange the order or naming of harddisks/partitions (hd0 means hda, hd1 hdb, second number is number of partition on that hd)...The 2nd map line practically switches back o original (default) partition order

Could you tell me where did you put your bootloader (grub)? MBR, / or /boot?
 
Old 02-07-2005, 12:41 AM   #5
Juerg
LQ Newbie
 
Registered: Feb 2005
Location: Bangkok
Posts: 3

Rep: Reputation: 0
I have a system with (Celeron 1.7, 750Mb)

HD C, 1st partition:
Win98 (20Gb)

HD C 2nd partition:

Linux SUSE 9.1 (20Gb)

HD D: 1 partition

Win XP (80 Gb)

After the installation of SUSE I applied the patch, to no avail, it kept telling me

hd(0,0)
Chainloader +1

SUSE says that somehow GRUB can not autodetect this LBA and it fails loading. Since I'm a newbie I didn't understand it well but changed (HD C) from AUTO to LBA, and it works as before.

Juerg
 
Old 02-07-2005, 12:56 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,959

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally posted by Steve2001
This seems OK, although I'm not sure why the boot is needed as what I have says that Grub should automatically add this when executing boot menu selections.
The boot should be unnecessary if using the grun.conf
Manually entering the commands requires the boot command to initiate.

Both map commands *are* required - they are directives to grub, and refer to separate (physical) entites.
Seen a couple of these posts with "bad" mappings recently - so much for automation.
 
  


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
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 10:33 AM
seeing a 2nd harddrive. keegan Linux - Newbie 2 01-06-2004 03:05 PM
how to boot windows on 2nd harddrive using lilo? kublador Linux - Newbie 11 10-08-2003 10:18 AM
Dual boot with win 2nd hd Skiny Linux - Newbie 1 06-20-2003 07:44 AM
Grub doesn't boot Win XP peterjmag Linux - General 8 05-03-2002 06:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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