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:
- Code: Select all
/dev/hdb1 /usr/src ext3 defaults 1 2
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. :)