View previous topic :: View next topic |
Author |
Message |
linoleum Tux's lil' helper
Joined: 15 Nov 2004 Posts: 129
|
Posted: Sun Jan 08, 2006 2:25 pm Post subject: Upgrading to Kernel 2.6.14-gentoo-r5 failed[SOLVED] |
|
|
Hi,
I'm trying to update the kernel on my ibm x40 having a strange (for me, stupid man of course) problem. I use genkernel and here what I get when I try to compile the new kernel
Quote: |
Root device is (3, 6)
Boot sector 512 bytes.
Setup is 7048 bytes.
System is 1774 kB
Kernel: arch/i386/boot/bzImage is ready (#1)
* Gentoo Linux Genkernel; Version 3.3.10[0m
* Running with options: --menuconfig all
* ERROR: Could not copy the kernel binary to /boot!
* -- Grepping log... --
* -- End log... --
|
The genkernel.log does not give me other useful error messages.
Ant help on where to start in order to solve this problem?
Thanks
Last edited by linoleum on Mon Jan 23, 2006 2:47 pm; edited 1 time in total |
|
Back to top |
|
|
z3rgl1ng_z Tux's lil' helper
Joined: 06 Jan 2006 Posts: 116 Location: Romania
|
Posted: Sun Jan 08, 2006 2:59 pm Post subject: |
|
|
www.kernel.org
get the latest stable 2.6.xx kernel and put it in /usr/src then untar it like this:
Code: | tar xvjf NAME_KERNEL_FILE |
after that do this:
Code: | ln -s /usr/src/NAME_KERNEL_FOLDER /usr/src/linux |
after that configure the kernel...
and after run
and after
Code: | make modules_install install |
or the simplest way
read README in KERNEL_DIR after you untared it |
|
Back to top |
|
|
linoleum Tux's lil' helper
Joined: 15 Nov 2004 Posts: 129
|
Posted: Mon Jan 23, 2006 8:16 am Post subject: |
|
|
It did not help. Still having the sme problem also with the new 2.6.15 kernel.
Any other suggestion?
Thanks |
|
Back to top |
|
|
Pete M Apprentice
Joined: 30 Apr 2005 Posts: 154
|
Posted: Mon Jan 23, 2006 8:31 am Post subject: |
|
|
Just an observation but may help
Check that your boot partition is mounted with the command "mount" as root on the command line, here's mine
Code: | # mount
/dev/sda3 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw)
/dev/sda1 on /boot type ext2 (rw,noatime)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
usbfs on /proc/bus/usb type usbfs (rw,devmode=0664,devgid=85)
|
The important line is "/dev/sda1 on /boot type ext2 (rw,noatime)"
Might help
Pete |
|
Back to top |
|
|
z3rgl1ng_z Tux's lil' helper
Joined: 06 Jan 2006 Posts: 116 Location: Romania
|
Posted: Mon Jan 23, 2006 9:54 am Post subject: |
|
|
run this:
or sda
depends on you'r hardware
type: p
and hit enter
copy paste the output
and copy paste what is in /etc/fstab |
|
Back to top |
|
|
linoleum Tux's lil' helper
Joined: 15 Nov 2004 Posts: 129
|
Posted: Mon Jan 23, 2006 9:58 am Post subject: |
|
|
Thanks but the /boot partition semms mounted:
Quote: |
/dev/hda5 on /boot type ext2 (rw,noatime)
|
|
|
Back to top |
|
|
linoleum Tux's lil' helper
Joined: 15 Nov 2004 Posts: 129
|
Posted: Mon Jan 23, 2006 10:05 am Post subject: |
|
|
Herethe output of fdisk /dev/hda
Quote: |
Disk /dev/hda: 40.0 GB, 40007761920 bytes
240 heads, 63 sectors/track, 5168 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 4540 34322368+ 5 Extended
/dev/hda2 * 4617 5168 4173120 12 Compaq diagnostics
/dev/hda3 4541 4616 574560 82 Linux swap / Solaris
/dev/hda5 * 1 5 37737 83 Linux
/dev/hda6 6 2589 19535008+ 83 Linux
/dev/hda7 2590 4540 14749528+ 83 Linux
|
and here my /etc/fstab
Quote: |
/dev/hda3 none swap sw 0 0
/dev/hda5 /boot ext2 defaults,noatime 1 2
/dev/hda6 / reiserfs noatime 0 0
/dev/hda7 /home reiserfs noatime 0 0
/dev/sda1 /mnt/usbstick auto noauto,user,rw 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
Thanks for your help |
|
Back to top |
|
|
z3rgl1ng_z Tux's lil' helper
Joined: 06 Jan 2006 Posts: 116 Location: Romania
|
Posted: Mon Jan 23, 2006 10:24 am Post subject: |
|
|
post the error after compiling the kernel manualy... after runing
Code: | make modules_install install |
|
|
Back to top |
|
|
z3rgl1ng_z Tux's lil' helper
Joined: 06 Jan 2006 Posts: 116 Location: Romania
|
Posted: Mon Jan 23, 2006 10:27 am Post subject: |
|
|
after runing
you can copy bzImage from kernel sources folder to boot partition after that edit /etc/lilo.conf to the new kernel bzImage and run:
if you have problems post them here...
and don't use genkernel.. i had some problems with it, i prefer to do it my self |
|
Back to top |
|
|
linoleum Tux's lil' helper
Joined: 15 Nov 2004 Posts: 129
|
Posted: Mon Jan 23, 2006 2:46 pm Post subject: |
|
|
Problem solved, thanks a lot.
Compiling the kernel without genkernel showed the origin of the problem: the /boot partition was full!!
Thanks again |
|
Back to top |
|
|
|