LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Modify grub.conf (https://www.linuxquestions.org/questions/linux-newbie-8/modify-grub-conf-270808/)

DanielTan 12-27-2004 11:08 AM

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

bigrigdriver 12-27-2004 12:36 PM

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.

Vijairaj 12-27-2004 12:43 PM

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)

DanielTan 12-31-2004 12:33 PM

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)

DanielTan 12-31-2004 12:35 PM

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.


comprookie2000 12-31-2004 12:54 PM

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.

DanielTan 01-01-2005 01:48 AM

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.


comprookie2000 01-01-2005 04:29 AM

Need to see your partition layout,fdisk -l will show us that.

DanielTan 01-01-2005 07:21 AM

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.

DanielTan 01-02-2005 11:35 AM

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 08:05 AM.