Compiling t3h Kernel
Compiling t3h Kernel
Mkay i just need someone to verify this, if i follow void's red hat tip on compiling the 2.4.20 kernel in Mandrake i would just do it the same right? I mean a Linux kernel is a Linux kernel regardless of the Distro?
Or is there soomething different im meant to do with the modules or anything like that? anything at all that is different?
Or is there soomething different im meant to do with the modules or anything like that? anything at all that is different?
The kernel won't compile. :) It's not actually the kernel devel you need, it's the tools used in compiling the kernel. I don't know anything about the latest Mandrake so I don't know what the easiest method is to ensure you have the right stuff installed. Easiest way is to start the instructions and if it says it can't find needed commands then you need to install more stuff.Doogee wrote:how would i know if ive got the kernel devel packages installed?
Yeah, it will fill up tempfs as well as your normal disk so as you delete more things it will flush the unwritten data to your real disk partition until no more cached writes are in tempfs, then you'll see some free space opening up on your hard drive. You should just be able to rerun the last "make" command that you ran when the disk filled up and it will pick up where it left off.
I usually do a "rpm -qa | grep devel" and delete as many *-devel RPMs as I can which will give you some space back. Look through /tmp and /var/tmp, don't just delete everything there or you'll be sorry, but if there is anything there you know can go delete it. There are several other places that you can gain some space. If you never look at your docs under /usr/share/doc or /usr/doc you can blow that stuff away (or archive it).
But your best bet is to find another hard drive and shove in there. Having a second drive is good for compiling anyway as it won't slow you down as much when you try to do other things while the kernel compiles.
But your best bet is to find another hard drive and shove in there. Having a second drive is good for compiling anyway as it won't slow you down as much when you try to do other things while the kernel compiles.
The 1GB drive would be perfect. Stick it in there and make the mount point "/usr/src" point to it.
I would move the kernel code somewhere outside of /usr/src (and any other source you have there) and then stick the drive in. If it shows up as "/dev/hdb" then create a partition on it, and add a line to your /etc/fstab:
Before mounting it create a file system on it and remove the directories under the existing /usr/src:
Delete existing partitions and create a Linux partition to take up the entire drive:
# fdisk /dev/hdb
Then create a file system:
# mkfs.ext3 /dev/hdb1
NOTE: Before doing the following command make sure you don't need anything under /usr/src, if you do move it out as I said
# cd /usr/src
# rm -rf *
I believe the one directory structure you'll want to move out is /usr/src/RPMS (in Red Hat this is /usr/src/redhat, not sure in Mandrake). Move it back after mounting the new drive.
Mount the new partition:
# mount /usr/src
Now extract the kernel source under /usr/src and follow my tip page as normal. The kernel source will be on the new drive. If the drive shows up as something other than "/dev/hdb" then replace "hdb" anywhere above with what the new drive name is.
But that's just what *I* would do. :)
I would move the kernel code somewhere outside of /usr/src (and any other source you have there) and then stick the drive in. If it shows up as "/dev/hdb" then create a partition on it, and add a line to your /etc/fstab:
Code: Select all
/dev/hdb1 /usr/src ext3 defaults 1 2
Delete existing partitions and create a Linux partition to take up the entire drive:
# fdisk /dev/hdb
Then create a file system:
# mkfs.ext3 /dev/hdb1
NOTE: Before doing the following command make sure you don't need anything under /usr/src, if you do move it out as I said
# cd /usr/src
# rm -rf *
I believe the one directory structure you'll want to move out is /usr/src/RPMS (in Red Hat this is /usr/src/redhat, not sure in Mandrake). Move it back after mounting the new drive.
Mount the new partition:
# mount /usr/src
Now extract the kernel source under /usr/src and follow my tip page as normal. The kernel source will be on the new drive. If the drive shows up as something other than "/dev/hdb" then replace "hdb" anywhere above with what the new drive name is.
But that's just what *I* would do. :)
i know it's not that elevant to the question at hand, but you might want to take a quick look at beltorak's kernel recompiling howto as well:
http://www.angelfire.com/realm/beltorak ... ompile.txt
http://www.angelfire.com/realm/beltorak ... ompile.txt