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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
12-27-2004, 12:08 PM
|
#1
|
Member
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340
Rep:
|
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
|
|
|
12-27-2004, 01:36 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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.
|
|
|
12-27-2004, 01:43 PM
|
#3
|
LQ Newbie
Registered: Aug 2004
Location: India
Distribution: Debian, Fedora
Posts: 25
Rep:
|
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)
|
|
|
12-31-2004, 01:33 PM
|
#4
|
Member
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340
Original Poster
Rep:
|
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)
|
|
|
|
12-31-2004, 01:35 PM
|
#5
|
Member
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340
Original Poster
Rep:
|
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.
|
|
|
|
12-31-2004, 01:54 PM
|
#6
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
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 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 02:07 PM.
|
|
|
01-01-2005, 02:48 AM
|
#7
|
Member
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340
Original Poster
Rep:
|
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 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.
|
|
|
|
01-01-2005, 05:29 AM
|
#8
|
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Rep:
|
Need to see your partition layout,fdisk -l will show us that.
|
|
|
01-01-2005, 08:21 AM
|
#9
|
Member
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340
Original Poster
Rep:
|
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.
|
|
|
|
01-02-2005, 12:35 PM
|
#10
|
Member
Registered: Sep 2004
Location: Malaysia
Distribution: FC6, Solaris
Posts: 340
Original Poster
Rep:
|
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
|
|
|
|
All times are GMT -5. The time now is 11:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|