View previous topic :: View next topic |
Author |
Message |
mboots n00b
Joined: 10 Jun 2003 Posts: 4
|
Posted: Tue Jun 10, 2003 7:59 pm Post subject: more grubby problems |
|
|
was wondering if anyone can help me out. I'm installing gentoo for the first time (starting at stage 2), and everything was working out good until the first reboot. Grub loads sucessfully, and can boot my windows partition, but when I try to boot Gentoo, my computer reboots immediately without any error messages.
Here's my partition scheme:
/dev/hda1 (hd0,0) Windows (bootable)
/dev/hda2 (hd0,1) Boot partition (bootable)
/dev/hda3 (hd0,2) Swap
/dev/hda4 (hd0,3) Linux root partition
/dev/hda2 is mounted on /boot of root partition.
my grub config looks something like this:
---------------------------------------------->
default 1
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,1)
kernel (hd0,1)/bzImage root=/dev/hda4
title=Windows
root (hd0,0)
chainloader (hd0,0)+1
---------------------------------------------->
again, it boots windows fine, and can find all the files (even the splash logo). I wonder if my kernel is maybe messed up - I'm recompiling it right now. Any help would be awesome.
Thanks guys. |
|
Back to top |
|
|
bashnix n00b
Joined: 23 Oct 2002 Posts: 66
|
Posted: Tue Jun 10, 2003 8:31 pm Post subject: |
|
|
After you are done recompiling the kernel, try it. That may have been the problem. Make sure the partition is mounted before you copy the kernel over. (I know it sounds stupid but it has happened to the best of us.)
If that still doesn't work try running the commands yourself from the grub command line. You can do that by hitting 'c' when the menu first comes up. See if the errors are more visible. |
|
Back to top |
|
|
mboots n00b
Joined: 10 Jun 2003 Posts: 4
|
Posted: Tue Jun 10, 2003 10:27 pm Post subject: step by step |
|
|
ok... here goes:
[entering grub command shell]
Filesystem type is ext2fs, partition type 0x83
Code: | kernel (hd0,1)/bzImage root=/dev/hda4 |
[Linux - bzImage, setup=0xa00, size=0x117375]
(system reboots like before, no error msg)
Still no luck. I think I'm going to try a different kernel source, or try lilo instead. Any other ideas? |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Tue Jun 10, 2003 11:39 pm Post subject: |
|
|
Make sure you set the correct CPU type in menuconfig :
Code: | Processor type and features --->
(Pentium-III/Celeron(Coppermine)) Processor family |
The default setting is for pentium3. Press <enter> to change this. |
|
Back to top |
|
|
MOC n00b
Joined: 08 Jun 2003 Posts: 12
|
Posted: Wed Jun 11, 2003 1:49 am Post subject: |
|
|
Mboots,
I had exactly the same problem. And, like cyrillic mentioned above, go back to menuconfig and make the appropriate changes. But, also take a look of fstab (nano -w /etc/fstab).
Mario |
|
Back to top |
|
|
mboots n00b
Joined: 10 Jun 2003 Posts: 4
|
Posted: Wed Jun 11, 2003 3:48 am Post subject: |
|
|
I tried replacing grub /w lilo, but it does the same thing. It must be my kernel. I'll recompile and double-check fstab tomorrow. For now it's off to bed with me, as my final exams are tomorrow. Thanks for the suggestions everybody. |
|
Back to top |
|
|
idris33 Tux's lil' helper
Joined: 05 May 2003 Posts: 91
|
Posted: Wed Jun 11, 2003 10:49 am Post subject: |
|
|
mboots,
In your grub.conf, instead of :
splashimage=(hd0,1)/grub/splash.xpm.gz and
kernel (hd0,1)/bzImage root=/dev/hda4
try:
splashimage=(hd0,1)/boot/grub/splash.xpm.gz and
kernel (hd0,1)/boot/bzImage root=/dev/hda4 |
|
Back to top |
|
|
methodx n00b
Joined: 11 Jun 2003 Posts: 3
|
Posted: Wed Jun 11, 2003 12:40 pm Post subject: |
|
|
this is just a thought and being the total linux noob that i am im prolly 100% wrong but its just a thought. If (hd0,0) is windows partition its safe to say that is C:\ im guessing...
when u boot up do u even see the grub menu? it might just be booting from the windows partition, if thats the case i think windows 98 uses autoexec.bat and config.sys and all that good crap, windows 2k and XP use "boot.ini" on the C:\. you might have luck if thats the case editing that in notepad. u wont see it from inside windows but it is there. just go to c:\ within notepad's open dialog box and type boot.ini and open it from there, make a backup of the original incase anything gets bunked up. |
|
Back to top |
|
|
idris33 Tux's lil' helper
Joined: 05 May 2003 Posts: 91
|
Posted: Wed Jun 11, 2003 1:25 pm Post subject: |
|
|
methodx wrote: | this is just a thought and being the total linux noob that i am im prolly 100% wrong but its just a thought. If (hd0,0) is windows partition its safe to say that is C:\ im guessing...
when u boot up do u even see the grub menu? it might just be booting from the windows partition, if thats the case i think windows 98 uses autoexec.bat and config.sys and all that good crap, windows 2k and XP use "boot.ini" on the C:\. you might have luck if thats the case editing that in notepad. u wont see it from inside windows but it is there. just go to c:\ within notepad's open dialog box and type boot.ini and open it from there, make a backup of the original incase anything gets bunked up. |
I think he said grub loads and boots windows, but it won't boot linux correctly. If he installed it with the directions in the Gentoo install docs, he just incorrectly listed the path for Linux in his grub.conf |
|
Back to top |
|
|
adrenalin Tux's lil' helper
Joined: 29 Dec 2002 Posts: 129
|
Posted: Wed Jun 11, 2003 1:58 pm Post subject: |
|
|
idris33 wrote: | methodx wrote: | this is just a thought and being the total linux noob that i am im prolly 100% wrong but its just a thought. If (hd0,0) is windows partition its safe to say that is C:\ im guessing...
when u boot up do u even see the grub menu? it might just be booting from the windows partition, if thats the case i think windows 98 uses autoexec.bat and config.sys and all that good crap, windows 2k and XP use "boot.ini" on the C:\. you might have luck if thats the case editing that in notepad. u wont see it from inside windows but it is there. just go to c:\ within notepad's open dialog box and type boot.ini and open it from there, make a backup of the original incase anything gets bunked up. |
I think he said grub loads and boots windows, but it won't boot linux correctly. If he installed it with the directions in the Gentoo install docs, he just incorrectly listed the path for Linux in his grub.conf |
i dont think so cause he stated that grub finds the files. the /boot path should come into play only when the boot device is mounted there, which is not the case when the kernel is loaded by grub. i bet its the kernel compiled for wrong processor type as cyrillic already stated. this was the case in some recent threads btw. |
|
Back to top |
|
|
idris33 Tux's lil' helper
Joined: 05 May 2003 Posts: 91
|
Posted: Wed Jun 11, 2003 3:12 pm Post subject: |
|
|
adrenalin wrote: | idris33 wrote: | methodx wrote: | this is just a thought and being the total linux noob that i am im prolly 100% wrong but its just a thought. If (hd0,0) is windows partition its safe to say that is C:\ im guessing...
when u boot up do u even see the grub menu? it might just be booting from the windows partition, if thats the case i think windows 98 uses autoexec.bat and config.sys and all that good crap, windows 2k and XP use "boot.ini" on the C:\. you might have luck if thats the case editing that in notepad. u wont see it from inside windows but it is there. just go to c:\ within notepad's open dialog box and type boot.ini and open it from there, make a backup of the original incase anything gets bunked up. |
I think he said grub loads and boots windows, but it won't boot linux correctly. If he installed it with the directions in the Gentoo install docs, he just incorrectly listed the path for Linux in his grub.conf |
i dont think so cause he stated that grub finds the files. the /boot path should come into play only when the boot device is mounted there, which is not the case when the kernel is loaded by grub. i bet its the kernel compiled for wrong processor type as cyrillic already stated. this was the case in some recent threads btw. |
That was just my 2 cents. I had the exact same problem the first time I installed Gentoo and the path in the grub.conf was my problem at the time. |
|
Back to top |
|
|
mboots n00b
Joined: 10 Jun 2003 Posts: 4
|
Posted: Wed Jun 11, 2003 8:49 pm Post subject: |
|
|
Thanks for the help guys. I took a look at my kernel config, and sure enough it was compiled for P3-Celeron, instead of my stupid VIA C3. Still waiting for the recompile to finish, but I hope this will fix it. |
|
Back to top |
|
|
|