LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-02-2003, 11:37 PM   #1
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
yet another dual boot question...but with a twist


Ok, here is the deal. I have 2 hard disks; one has XP, the other RH8. Currently i am able to boot from either OS by changing the drive order in BIOS. I am aware of my 2 possibilities: chainloading in GRUB or editing boot.ini in XP. but here is the twist, somehow when i installed my XP a looooooong time ago, i installed onto a logical partition instead of a primary one. i believe that this is what is giving me problems. when i try to boot XP from grub i get a various assortment of errors depending on the numbers i enter for root(hd0,x) Chainloader + Y
i have tried every combinatoin of number for x and y in that above equation, all result in varying GRUB errors.
now someone correct me if im wrong, but in order to dual boot with the boot.ini way, grub has to be installed on the /boot partition and not the MBR of the disk. i have it installed on the MBR. so my questions are this:

can i just install grub on the /boot part. as well and do the boot.ini method?
or does the fact that XP is on a logical disk have any impact on the errors i get when using the root() chainload method in GRUB?

thnx for any helps
 
Old 04-03-2003, 12:03 AM   #2
paneless
LQ Newbie
 
Registered: Mar 2003
Distribution: Debian Woody
Posts: 18

Rep: Reputation: 0
If grub is located on the MBR of the hard drive where WinXP isn't (probably IDE1), you'll probably have to add the following lines to your XP boot stanza in grub.conf:

map (hd0) (hd1)
map (hd1) (hd0)

Insert these lines before

rootnoverify (hd1,X)

I have 2 drives with grub on the MBR of the "slave" drive, multibooting with XP on hda1
/boot = /dev/hdb1
Win98 = /dev/hdb2
data = /dev/hdb3
/ = /dev/hdb5
etc... etc...

it was tricky setting up, but each drive retains "boot independence". If hdb screws up, I can change the BIOS to boot to IDE0 and at least boot into XP, and likewise with Win98 and Debian on hdb IDE1.
 
Old 04-03-2003, 11:49 AM   #3
lost_bob
LQ Newbie
 
Registered: Mar 2003
Posts: 7

Rep: Reputation: 0
which hdd is the master and which is the slave? i had the same problem but i found out that you have to have xp as the master drive...i tried the mapping but still didn't work....

make sure your grub is loaded on the MBR of your xp hdd if it's the master on the ide.....i don't think that xp being on a logical drive will matter
 
Old 04-03-2003, 01:10 PM   #4
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
xp is the master and linux is slave. grub is loaded on the slave. i will try the map method when i get home and let u know the result.

edit: hmmm, still a no go. either error 13 or error 1. or an infinite loop spitting out LI depending on the variations of root that i use! here are my grub.conf and some other files, perhaps u will see something i cant:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hdb
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,0)
kernel /vmlinuz-2.4.18-14 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.18-14.img

title WinXP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,1)
chainloader +1
---------------------------------------------------------------------------------------------
Device Boot Start End Blocks Id System
/dev/hda1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/hda2 6375 9731 26965102+ f Win95 Ext'd (LBA)
/dev/hda5 6375 9731 26965071 7 HPFS/NTFS
----------------------------------------------------------------------------------------------
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 676 5325547+ 83 Linux
/dev/hdb3 677 773 779152+ 82 Linux swap
/dev/hdb4 774 3323 20482875 c Win95 FAT32 (LBA)
-----------------------------------------------------------------------------------------------




Last edited by infamous41md; 04-03-2003 at 06:31 PM.
 
Old 04-03-2003, 06:25 PM   #5
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
bump i edited above... heh i thought edit would bump it :0

what i think prob maybe is this: on my Windows Drive(hda) xp is located on hda5, but hda2 is what contains hda5 b/c it is a logical drive. so i think that when i use chainloader it can only access the partition that is specified in the root() statement, correct? but the boot loader for the windows drive seems to be on hda1 as it says when i list the drive specs. IS that making sense? that chainloader needs to access the first sector of hda1, but the XP os is actually on hda5 ??

Last edited by infamous41md; 04-03-2003 at 06:29 PM.
 
Old 04-03-2003, 10:22 PM   #6
paneless
LQ Newbie
 
Registered: Mar 2003
Distribution: Debian Woody
Posts: 18

Rep: Reputation: 0
Quote:
or an infinite loop spitting out LI
This is a lilo symptom, did lilo overwrite grub somehow?

If you can boot to the "grub>" prompt, try typing in commands as they appear in your "grub.conf" file. If grub is on the MBR of the slave disk try:

map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,2) #if grub doesn't see the ntfs partition, try (hd1,5)
makeactive
chainloader +1
boot

A hint: When grub boots from hdb, it assumes that it is on the master hard drive (hd0, in grub-speak). You have to adjust all the partition pointers accordingly. Thus, your xp drive becomes hd1. That's why you need the "map" arguments and point it to hd1...

It's confusing, I know, took me awhile to sort it all out, but typing the commands from the grub> prompt was how I discovered this. I had been booting from a grub floppy for some time and didn't have a clue that I'd have to completely reverse the drive designations to get it to boot from hd1. The "boot" command is required if running from the command line, in grub.conf it's assumed and you don't need it. I "googled" for days and couldn't find an explanation of how to boot with grub on the MBR of the slave drive...
 
Old 04-03-2003, 11:05 PM   #7
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
haha yea googling will not take u very far with a lot of this stuff... as i have had to learn the hard way. so this is very strange, i will try changing around the drive orders, heh i never woulda guessed that one. one correction i think:
rootnoverify (hd1,2) #if grub doesn't see the ntfs partition, try (hd1,5)
that shoud be (hd1,1) and (hd1,4) correct? b/c the drives start at 0 and not 1 ?? i will try all these variations and get backs to u . thnx again.
 
Old 04-03-2003, 11:19 PM   #8
paneless
LQ Newbie
 
Registered: Mar 2003
Distribution: Debian Woody
Posts: 18

Rep: Reputation: 0
yea, drives as well as partitions start at 0.

This is the main advantage I see of grub over lilo, one can troubleshoot grub from the grub> prompt.
 
Old 04-03-2003, 11:54 PM   #9
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Original Poster
Rep: Reputation: 30
shit man, root(hd1,0) worked liike a charm!! i was amazed when winxp loading screen came on first try!! good lookin out on that one.. damn grub, who does it think it is playing tricks like that
so how u figure that out? divine inspiration? this book i got is worthless in troubleshooting, Red Hat Linux Bible, sheesh, what a bunch of crap this thing is, some Bible, actually wait, maybe Bible is an appropriate name for it since it is full of semi true information and has lead to much pain and suffering on my part
 
Old 04-04-2003, 12:13 AM   #10
paneless
LQ Newbie
 
Registered: Mar 2003
Distribution: Debian Woody
Posts: 18

Rep: Reputation: 0
Just lucky, I guess...



Actually, I'm a newbie to linuxquestions, but not to computers... used to run unix in the "old days"...

Glad to have helped...
 
  


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
Dual boot question Dreamcatcher Linux - Software 3 08-21-2004 04:26 PM
Dual boot with BIOS twist Question Dobie Linux - Newbie 6 06-12-2004 08:13 AM
The old scroll wheel question, with a twist. Flaystus Linux - Newbie 2 02-22-2004 10:03 PM
Dual boot MD9.1 / Win2k with a twist Dobie Mandriva 1 11-30-2003 10:48 PM
Another Dual Boot QUestion goodwyne Linux - General 8 12-03-2002 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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