LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-10-2005, 07:56 PM   #1
scoob8000
Member
 
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64

Rep: Reputation: 15
grub dual boot, dual drives...


Trying to dual boot with two drives, bios is set to boot to scsi first, hence I'm using grub as my boot loader. Problem is when trying to boot windows, after chanloader +1, the system hangs..

/dev/hda = Windows
/dev/sda = CentOS 4



Code:
fdisk /dev/hda -l
Disk /dev/hda: 20.8 GB, 20847697920 bytes
255 heads, 63 sectors/track, 2534 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         892     7164958+   7  HPFS/NTFS
/dev/hda2             893        2534    13189365    7  HPFS/NTFS

fdisk /dev/sda -l

Disk /dev/sda: 4512 MB, 4512701440 bytes
255 heads, 63 sectors/track, 548 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14         548     4297387+  8e  Linux LVM
And here is my grub.conf

Code:
default=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title CentOS 4.0 (2.6.9-5.0.3.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-5.0.3.EL ro root=/dev/VolGroup00/LogVol00
        initrd /initrd-2.6.9-5.0.3.EL.img
title Windows XP
        rootnoverify (hd1,0)
        chainloader +1
 
Old 04-10-2005, 09:09 PM   #2
idontdowindough
LQ Newbie
 
Registered: Mar 2004
Location: N. Idaho
Distribution: Libranet, SuSE, Knoppix
Posts: 15

Rep: Reputation: 0
Smile

Hi!
Problem is your "root" device is wrong. It probably should be sda0,0 That is supposed to be your Linux root device (your main linux file system, not your swap or home or?) where your menu.lst and devicemap are, not where your windoughs drive is. Hope this helps. I've made this mistake too in grub, so if that is the problem don't feel bad.
 
Old 04-10-2005, 11:06 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,747

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
According to your grub.conf, windows is installed on the second hard drive ((hd1,0) = (hdb,1)).
But, elsewhere in your post, you indicate that windows in on /dev/hda.
If windows is in fact on /dev/hda, then edit grub.conf to correctly reflect that situation ((hd0,0) = (hda,1)).
 
Old 04-11-2005, 12:23 PM   #4
scoob8000
Member
 
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64

Original Poster
Rep: Reputation: 15
((hd0,0) = (hda,1)).

I think thats my issue.. but if root (hd0,0) is wrong, why is it my linux boots okay.

I think I'm confused with grubs device naming convention..

(hd1,0) is not the same as (hda,1)?
 
Old 04-11-2005, 12:47 PM   #5
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Quote:
(hd1,0) is not the same as (hda,1)?
No, it isn't. hd1 already means hdb actually. Take a look here: http://www.gnu.org/software/grub/man...g%20convention for Grub namings conventions.
 
Old 04-11-2005, 06:54 PM   #6
scoob8000
Member
 
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64

Original Poster
Rep: Reputation: 15
Ah ha! Thanks for the link Harken!

Got it, heres what I had to do:

Code:
title Windows XP
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1,0)
        chainloader +1
Works like a charm.

cp /etc/grub.conf grub.backup.and.dont.forget
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot grub Mandriva WinXP separate drives McNider Linux - General 2 06-17-2005 04:49 AM
Dual Boot...Dual Hard Drives? jc_firestorm Suse/Novell 6 04-24-2005 04:54 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
Dual boot, dual drives. Where to put GRUB? rgbrock1 Linux - Newbie 5 10-02-2004 10:56 AM
dual boot SuSE / XP on seperate drives with GRUB uploadjoe Linux - Software 2 02-20-2003 11:37 PM


All times are GMT -5. The time now is 01:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration