MY KERNEL IS COMPILING

Page 8 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
BTW i think i figured out why i never got my USB mouse to work

I FORGOT TO MOUNT /BOOT AT STARTUP!!! so whenever i copied bzImage to /boot it never reached my boot partition

I'm learning at least. ;)
 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
I don't think you're supposed to mount /boot -- grub should know on what physical partition your boot stuff resides. At least I think.
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
Originally posted by: GigaCluster
I don't think you're supposed to mount /boot -- grub should know on what physical partition your boot stuff resides. At least I think.
cp /usr/src/linux/arch/i386/boot/bzImage /boot

that would need /boot mounted, right?
 

manly

Lifer
Jan 25, 2000
13,286
4,060
136
Originally posted by: NuclearFusi0n
Originally posted by: GigaCluster
I don't think you're supposed to mount /boot -- grub should know on what physical partition your boot stuff resides. At least I think.
cp /usr/src/linux/arch/i386/boot/bzImage /boot

that would need /boot mounted, right?
I don't think so because the 2nd stage boot loader has to find the kernel file before it could boot it.

How could the kernel mount a filesystem before it (the kernel) was ever loaded? :p
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
Originally posted by: manly
Originally posted by: NuclearFusi0n
Originally posted by: GigaCluster
I don't think you're supposed to mount /boot -- grub should know on what physical partition your boot stuff resides. At least I think.
cp /usr/src/linux/arch/i386/boot/bzImage /boot

that would need /boot mounted, right?
I don't think so because the 2nd stage boot loader has to find the kernel file before it could boot it.

How could the kernel mount a filesystem before it (the kernel) was ever loaded? :p
From the gentoo install guide, fstab section:
"Warning: Please notice that /boot is NOT mounted at boot time. This is to protect the data in /boot from corruption. If you need to access /boot, please mount it!"
 

Chaotic42

Lifer
Jun 15, 2001
34,798
1,981
126
Originally posted by: NuclearFusi0n

"Warning: Please notice that /boot is NOT mounted at boot time. This is to protect the data in /boot from corruption. If you need to access /boot, please mount it!"

Maybe Gentoo is different, I would for sure make /boot part of /

fstab doesn't take effect until near the end of booting.

 

pac1085

Diamond Member
Jun 27, 2000
3,456
0
76
Gentoo has you make /boot a seperate partition.(It isnt nessecary though, but they dont tell you that.) Its a good idea, actually, if /boot is part of /, and your computer crashes, its possible to loose data (read: kernel image), but this way with it normally unmounted, it lowers the risk of loosing your kernel image by alot. You tell grub to run on your /boot partition...
hd0,1 is my /boot partition

grub> root (hd0,1)
grub> setup (hd0)

You just need to mount /boot when you copy your kernel image to it, and setup grub.
 

pac1085

Diamond Member
Jun 27, 2000
3,456
0
76
Originally posted by: NuclearFusi0n
ARGH FCK YOU GRUB FCK YOU IN YER GRUBBY BUTT!!!

emerge grub works fine
then i run "grub" and it just dies on me, spits out an error message, and forces me to hit the reset button (the cursor keeps flashing, but no amount of keyboard input will do anything)
i took a picture of the error....

It's done this twice!!

What cflags are you compiling with? If you are using something radical, change them to something like "-mcpu=i386" and recompile grub.
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
nothing radical.
it actually worked fine when i compiled with
CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3
-pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop
-frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"

now i'm using
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
and it doesn't work :(



i think it's gone crazy, i actually tried to ctrl+alt+del in the middle of an installation at the command prompt and it spit out that error again. I'll check stability tomorrow.
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
YAY it installed this time! :D

emerge xfree is doing its thing now.
I think my USB mouse is working...i forgot to check...
 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
Originally posted by: NuclearFusi0n
Originally posted by: GigaCluster
I don't think you're supposed to mount /boot -- grub should know on what physical partition your boot stuff resides. At least I think.
cp /usr/src/linux/arch/i386/boot/bzImage /boot

that would need /boot mounted, right?

Yes, copying the new kernel would require /boot to be mounted. However, booting does not require mounting since grub ignores /etc/fstab.
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
Originally posted by: GigaCluster
Originally posted by: NuclearFusi0n
Originally posted by: GigaCluster
I don't think you're supposed to mount /boot -- grub should know on what physical partition your boot stuff resides. At least I think.
cp /usr/src/linux/arch/i386/boot/bzImage /boot

that would need /boot mounted, right?

Yes, copying the new kernel would require /boot to be mounted. However, booting does not require mounting since grub ignores /etc/fstab.
...so everytime i recompiled the kernel, i never actually installed it over the old one.

:eek:
 

Derango

Diamond Member
Jan 1, 2002
3,113
1
0
Originally posted by: Chaotic42
Originally posted by: NuclearFusi0n

"Warning: Please notice that /boot is NOT mounted at boot time. This is to protect the data in /boot from corruption. If you need to access /boot, please mount it!"

Maybe Gentoo is different, I would for sure make /boot part of /

fstab doesn't take effect until near the end of booting.


Its a good idea to put /boot on a seperate partition. Grub/lilo dosen't care about fstab. You point them at the partition your kernel image is at, and then pass the kernel the device associated with your root partition.

Anyway, on pretty much every distro I've seen, file systems get mounted pretty much right after your kernel loads, not towards the end of the boot :) Otherwise, it wouldn't have access to anything that would allow it to actually boot ;)

never, ever mount /boot unless you happen to be using it. Why? If you start randomly deleting things on you hard drive by accident, you won't delete your kernel :)
 

NuclearFusi0n

Diamond Member
Jul 2, 2001
7,028
0
0
Guess who has a working USB mouse!! :D

hey notfred, i guess the reason it wasn't working was the fact that I never actually installed the new kernel. ;)

emerge kde is doing its thing, hopefully it will be done tonight.
 

Goosemaster

Lifer
Apr 10, 2001
48,775
3
81
Originally posted by: NuclearFusi0n
I'll probably just grab some Linux ebooks later and pour over them. :p

Reinstalling Gentoo - again.
Hopefully it'll work this time. ;)
edit: SAME ERROR AGAIN WTF!!

Anybody want to bother to help me set up a non-root user? I know you aren't supposed to run as root all the time, but I have no idea how to make myself a user account that balances power with safety correctly. =\

emerge superadduser


run it
 

Apathetic

Platinum Member
Dec 23, 2002
2,587
6
81
Originally posted by: Ameesh
you compiled some code that you didnt write and you're proud enough to post about it? you are not a 1337 h4x0r , you are n00b lamer.

Ditto that. Script kiddie maybe. 1337 hacker? Not even close.

Dave