LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 12-27-2004, 11:08 AM   #1
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Rep: Reputation: 30
Modify grub.conf


Hi, currently i have windows 2000 installed as my primary OS in primary partition of harddisk 1. I have installed linux into a logical partition also in harddisk 1 but when i select linux in the boot menu, it gives me error. So i look at my grub.conf, is this causing error ? pls advise

Default=0
Timeout=0
Splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Redhat Linux (2.4.7-10)
root (hd0,5)
Kernel /boot/vmlinuz--2.4.710 ro root=/dev/hda6 hdd=ide-scsi
initrd /boot/initrd-2.4.7-10 img
title Windows
rootnoverify (hd1,0)
chainloader +1

Rgds
Daniel
 
Old 12-27-2004, 12:36 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You designate the root location twice: you can probably delete root (hd0,5) because you have it named in the kernel line (root=/dev/hda6).
Next, edit the kernel line to read:
kernel (hd0,5)/boot/vmlinuz-2.4.7-10 instead of kernel /boot/vmlinuz-2.4.710.
or,
kernel (hd0,5)/vmlinuz-2.4.7-10.
Complete the line with the remaining boot options.
One of these should work.
 
Old 12-27-2004, 12:43 PM   #3
Vijairaj
LQ Newbie
 
Registered: Aug 2004
Location: India
Distribution: Debian, Fedora
Posts: 25

Rep: Reputation: 15
Re: Modify grub.conf

Quote:
Originally posted by DanielTan

Splashimage=(hd0,5)/boot/grub/splash.xpm.gz
root (hd0,5)
Rgds
Daniel
If your are able to boot win2000 normally then try root (hd1,5)
 
Old 12-31-2004, 12:33 PM   #4
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Re: Re: Modify grub.conf

Hi Vijairaj, i was not able to boot into windows also. Windows and linux is in the same harddisk, why need root(hd1,5) ?

Rgds
Daniel

Quote:
Originally posted by Vijairaj
If your are able to boot win2000 normally then try root (hd1,5)
 
Old 12-31-2004, 12:35 PM   #5
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, thank for reply. Btw i also couldn't start windows 2000, any problem with windows section ?

Rgds
Daniel


Quote:
Originally posted by bigrigdriver
You designate the root location twice: you can probably delete root (hd0,5) because you have it named in the kernel line (root=/dev/hda6).
Next, edit the kernel line to read:
kernel (hd0,5)/boot/vmlinuz-2.4.7-10 instead of kernel /boot/vmlinuz-2.4.710.
or,
kernel (hd0,5)/vmlinuz-2.4.7-10.
Complete the line with the remaining boot options.
One of these should work.
 
Old 12-31-2004, 12:54 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
When you say harddisk1,is windows and redhat on the same drive? Looks like you installed grub to hda6,Is that right?If you could do a
Code:
fdisk -l
and post it it would help,I install grub to the MBR.Windows may work with this;
Code:
title Windows
rootnoverify (hd0,0)
chainloader +1
The splashimage come's up O.K?
From the grub manual
Code:
Note: If you want to install GRUB in a certain partition instead of the MBR, you have to alter the setup command so it points to the right partition. For instance, if you want GRUB installed in /dev/hda3, then the command becomes setup (hd0,2). Few users however want to do this.

Last edited by comprookie2000; 12-31-2004 at 01:07 PM.
 
Old 01-01-2005, 01:48 AM   #7
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, i mean that fist drive but not same partition. i installed grub to MBR. So u mean the windows section code is wrong in my grub.conf ? The splash screen didn't comes out either. Btw whats the fdisk -1 does ?

Rgds
Daniel


Quote:
Originally posted by comprookie2000
When you say harddisk1,is windows and redhat on the same drive? Looks like you installed grub to hda6,Is that right?If you could do a
Code:
fdisk -l
and post it it would help,I install grub to the MBR.Windows may work with this;
Code:
title Windows
rootnoverify (hd0,0)
chainloader +1
The splashimage come's up O.K?
From the grub manual
Code:
Note: If you want to install GRUB in a certain partition instead of the MBR, you have to alter the setup command so it points to the right partition. For instance, if you want GRUB installed in /dev/hda3, then the command becomes setup (hd0,2). Few users however want to do this.
 
Old 01-01-2005, 04:29 AM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Need to see your partition layout,fdisk -l will show us that.
 
Old 01-01-2005, 07:21 AM   #9
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Where should i type it in ? During the linux setup it also shows the partition layout , is it same ?

Rgds
Daniel

Quote:
Originally posted by comprookie2000
Need to see your partition layout,fdisk -l will show us that.
 
Old 01-02-2005, 11:35 AM   #10
DanielTan
Member
 
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340

Original Poster
Rep: Reputation: 30
Hi, thanks for your help. It works after doing some modifying to the grub. Now i can dual boot linux and windows 2000. Btw how do i make adsl connection to the internet ? I have setup adsl account in linux internet settings. Pls advise

Rgds
Daniel


Quote:
Originally posted by DanielTan
Hi, thank for reply. Btw i also couldn't start windows 2000, any problem with windows section ?

Rgds
Daniel
 
  


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
Modify named.conf file pkrishna10 Linux - Networking 3 10-22-2004 01:03 PM
How to modify grub.conf george_mercury Linux - Newbie 1 06-14-2004 09:16 AM
Need to modify - modules.conf lowlifeboy Debian 3 02-22-2004 02:52 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
How to modify PAM.d conf. files sunnycn Linux - General 0 05-20-2002 10:47 AM

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

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