View previous topic :: View next topic |
Author |
Message |
jamespf n00b
Joined: 23 Apr 2003 Posts: 6
|
Posted: Wed Apr 23, 2003 2:45 am Post subject: grub error after install |
|
|
I'm a linux n00b. I spent about 2 days installing gentoo from the stage one tarball on a amd 500mhz machine. I followed the installation instructions at http://www.gentoo.org/doc/en/gentoo-x86-install.xml as close as I could. I thought I had it... but it looks like I screwed up.
here is what grub says after it tries to boot:
---------------------------------------------------
---------------------------------------------------
Booting command-list
root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/bzImage root=/dev/hda3 hdb=ide-scsi
Error 2: bad file or directory type
Press any key to continue...
---------------------------------------------------
---------------------------------------------------
I felt pretty comfortable following the directions until the grub part. I don't understand what bzImage is, and I'm not very confident with the whole grub config file in general. But I thought I did everything exactly as instructed.
Oh, and I somehow messd up the grub config file where you tell it to use a specific background file. Cause I just get a black CLI grub prompt. But that's a minor issue...
I would really appreciate any help you guys can give me.
Last edited by jamespf on Wed Apr 23, 2003 2:55 am; edited 1 time in total |
|
Back to top |
|
|
handsomepete Guru
Joined: 21 Apr 2002 Posts: 548 Location: Kansas City, MO
|
Posted: Wed Apr 23, 2003 2:48 am Post subject: |
|
|
Assuming you didn't make a typo in your post, try hdb=ide-scsi in your .conf instead of hdb-ide-scsi That's at least a good thing to try first. |
|
Back to top |
|
|
jamespf n00b
Joined: 23 Apr 2003 Posts: 6
|
Posted: Wed Apr 23, 2003 2:56 am Post subject: |
|
|
typo corrected
as per the installation guide, I have one HDD with a boot(hda1), swap(hda2), and root(hda3) partitions. Plus a cd-rw as master secondary ide, and a CD-rom as slave on secondary IDE. So that last part of the kernel line is my attempt to make the cdrw work. I assumed that secondary master is hdb. But I'm not excatly clear as to what's going on. It's more of a quess than anything. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Apr 23, 2003 3:21 am Post subject: |
|
|
Try this from the GRUB prompt :
Code: | > root (hd0,0)
> kernel /bzImage
> boot |
|
|
Back to top |
|
|
StuBear Apprentice
Joined: 26 Feb 2003 Posts: 157 Location: Melbourne,AUSTRALIA
|
Posted: Wed Apr 23, 2003 3:47 am Post subject: Re: grub error after install |
|
|
jamespf wrote: |
I felt pretty comfortable following the directions until the grub part. I don't understand what bzImage is, and I'm not very confident with the whole grub config file in general. But I thought I did everything exactly as instructed. |
bzImage is the kernel that you compiled (you did compile a kernel didn't you?). You should of copied it from /usr/src/linux/arch/i386/boot/bzImage to your /boot - make sure that /boot is mounted, this is a common mistake.
ls /boot should show you the following files
boot, bzImage, grub
boot and grub are directories (actully boot is soft link back to /boot) if you don't have a bzImage file in /boot then you must have skipped a step
hope this helps
good luck and happy gentooing |
|
Back to top |
|
|
jamespf n00b
Joined: 23 Apr 2003 Posts: 6
|
Posted: Wed Apr 23, 2003 3:51 am Post subject: |
|
|
cyrillic wrote: | Try this... |
The first two commands execute without errors. The third restarts the machine. |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Apr 23, 2003 3:53 am Post subject: |
|
|
What type of CPU do you have ?
I'm asking because compiling the kernel for the wrong CPU type can cause a reboot like this. |
|
Back to top |
|
|
jamespf n00b
Joined: 23 Apr 2003 Posts: 6
|
Posted: Wed Apr 23, 2003 4:08 am Post subject: |
|
|
I have
boot bzImage grub lost+found
on the boot partition
I'm using an AMD k6-2 500Mhz processor.
parts of my make.conf look like this
---------------------------------------------
---------------------------------------------
CHOST="i586--pc-linux-gnu"
CFLAGS="-march=k6-2 -03 -pipe"
ACCEPT_KEYWORDS="x86"
--------------------------------------------
-------------------------------------------- |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Apr 23, 2003 4:14 am Post subject: |
|
|
The kernel uses its own settings (/etc/make.conf is for everything else)
In "make menuconfig"
Code: | Processor type and features --->
(K6/K6-II/K6-III) Processor family |
Press <enter> to change this option (the default is pentium3) |
|
Back to top |
|
|
jamespf n00b
Joined: 23 Apr 2003 Posts: 6
|
Posted: Wed Apr 23, 2003 4:23 am Post subject: |
|
|
I booted from the boot cd so I could get to the files. I mounted the partitions and when I try to make menuconfig in /usr/src/linux it says comand not found.
can you tell me how far I have to go back in the instructions to enable make?
Also, will the options I picked the first time still be there? If they are I can just check it, and if it's right I'll be good. but if I can't check it, I'll have to recompile again... hours and hours and hours
the more I think about it, the more I don't remember anything about k6/k6 II processor family...
damn.
at what point do I need to start over in the instructions to re-compile the kernel?
And once that's done, do I have to do the rest of the instructions over again in a linear fashion, or can I skip stuff? |
|
Back to top |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Apr 23, 2003 4:34 am Post subject: |
|
|
After you boot from the CD.
Mount your partitions the same way you did the first time. (make sure /boot gets mounted too.)
chroot, env-update, source /etc/profile
Then skip down in the instructions to the kernel part.
cd /usr/src/linux, make menuconfig
Your old settings will still be there.
Good luck, and Good night. (1:30am here)
ps. You only need to recompile the kernel, copy it to /boot, then unmount everything, and boot your new kernel. (the rest of your system should be good to go) |
|
Back to top |
|
|
jamespf n00b
Joined: 23 Apr 2003 Posts: 6
|
Posted: Wed Apr 23, 2003 10:52 pm Post subject: |
|
|
the kernel was set for a pentium processor That option didn't have a place for a star next to it like the others did, so I didn't think it was selected...
Anyway, it's compiling as I type. |
|
Back to top |
|
|
|