• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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.
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. 😉
 
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.
 
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?
 
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? 😛
 
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? 😛
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!"
 
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.

 
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.
 
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.
 
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.
 
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.
 
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.

😱
 
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 🙂
 
Guess who has a working USB mouse!! 😀

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.
 
Originally posted by: NuclearFusi0n
I'll probably just grab some Linux ebooks later and pour over them. 😛

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
 
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
 
Back
Top