LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-07-2003, 02:36 PM   #1
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Rep: Reputation: 15
Grub hdb2


Ok, I have a grub question. My linux is on hda1,2,3, and primary master (jumpers), and my windows xp is on a separate hard drive, hdb2, primary slave.

I edited the grub.conf file to include this as

rootnoverify (hd1,1) <- the 1,1 = second drive, and second partition, right?

well when I use it, it says it can't load that disk, it doesn't exist.

then i load linux, and it is mounted in /mnt/win automatically.

so what do I put in the rootnoverify deal with my above configuratioin?

I have changed it directly from grub to 1,0... 1,2... 0,2... no help.

thanks,

phil
 
Old 09-07-2003, 02:40 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Look at:
/boot/grub/device.map

This will tell you how the drives are refferenced.

Did you use map in your config?
title Windoze XP Pro
rootnoverify (hd1,1)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
 
Old 09-07-2003, 02:41 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I am no Windows expert but I think that Windows insists on being booted from the first disk.
 
Old 09-07-2003, 02:42 PM   #4
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
thanks, ill try it
 
Old 09-07-2003, 02:51 PM   #5
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
i tried the map thing, and I think that I needed to do that, but it still won't work.

When I look at the /boot/device/grub.map it doesn't list the second hard drive at all. just hda...

Do I simply add hdb ?

thanks

phil
 
Old 09-07-2003, 03:01 PM   #6
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
well I simply added, it, checked, its still there, but it still doesn't think it exists.
 
Old 09-07-2003, 03:19 PM   #7
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To make it easier for us to help you,
can you post the contents of grub.conf and device.map
 
Old 09-07-2003, 03:34 PM   #8
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
i will, but i don't know how.

I tried to cut and paste in the vi editor, but it doesn't work.

How can I do that?
 
Old 09-07-2003, 03:36 PM   #9
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
as root user

gedit /etc/grub.conf

or


cat /etc/grub.conf

(copy and paste into a text file) etc etc
 
Old 09-07-2003, 03:37 PM   #10
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Open a terminal (console) and type:
Code:
more /boot/grub/device.map
more /boot/grub/grub.conf
 
Old 09-07-2003, 03:42 PM   #11
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
ok thanks, here it is

GRUB.CONF

# 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/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$3J3OHsY.$q4MxwxRpcF1kOKV9UwnwO1
title Red Hat Linux (2.4.20-20.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-20.9.img
title Windows XP
rootnoverify (hd1,1)
makeactive
map (hd0)(hd1)
map (hd1)(hd0)
chainloader +1



DEVICE.MAP

# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb


The (hd1) at the end of the device map was added by me.
 
Old 09-14-2003, 12:42 PM   #12
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
I still need help, if anyone can help...

My grub.conf, and my device.map are listed above, and my hard drive setup looks correct, but it says the drive doesn't exist when I try to boot to windows.

Thanks for any help.

phil
 
Old 09-14-2003, 01:48 PM   #13
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
I don't know if this will work, so don't quote me.
Try mapping the partitions.
Code:
title Windows XP
map (hd0,0)(hd1,1)
map (hd1,1)(hd0,0)
rootnoverify (hd1,1)
chainloader +1
 
Old 09-14-2003, 02:32 PM   #14
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
Ok, thanks to all who helped, I succeeded. I tried many different options, and most of the editing was from the grub screen, not a text editor.. Then when I gave up, it said I had an error, so I re-booted, then when I selected XP it worked.

It has successfully booted back to RH9 (thank god!) but I have yet to check to see if it will again boot to XP.

here is my successful grub.conf




# 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/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
password --md5 $1$3J3OHsY.$q4MxwxRpcF1kOKV9UwnwO1
title Red Hat Linux (2.4.20-20.9)
root (hd0,0)
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi
initrd /initrd-2.4.20-20.9.img
title Windows XP
rootnoverify (hd1,1)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
 
Old 09-18-2003, 02:05 PM   #15
xjphil
Member
 
Registered: Aug 2003
Location: Collierville, TN
Distribution: Red Hat 9.0
Posts: 58

Original Poster
Rep: Reputation: 15
well I spoke too soon, apparently it worked that once, and no more.

I guess the edits I did from the grub program didn't save themselves, and they self-destructed when it loaded Windows. I have tried all configurations again, and cannot duplicate what worked.

The files above are still current, and don't work.

If anyone can help, let me know, please.

Is there a way to run the config again, so it will detect my set up by itself, like it would have done in the beginning if my windows hard drive was connected when I installed?

If not, is there anyone who has 2 drives, win xp on the slave, and what is your grub.conf???

thanks!

phil
 
  


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
hda2 went to hdb2 aral SUSE / openSUSE 21 08-13-2005 09:34 AM
Cfdisk doesn't make a hdb1 on Slack10 install, goes straight to hdb2 Baix Slackware 9 09-01-2004 05:26 PM
reading hda2 (win) from hdb2 (linux) PhilTR Linux - Newbie 8 06-09-2004 06:11 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
SWAP partition /dev/hdb2 fails to detect/mount after memory upgrade. Sgaileach1 Linux - Hardware 2 02-06-2004 03:29 PM

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

All times are GMT -5. The time now is 06:29 PM.

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