Kernel Install

You should still be inside the linux2 system with it mounted.
Create a directory called linux1 by typing mkdir /mnt/linux1
Next, mount the linux1 system from linux2 by typing mount /dev/hda3
/mnt/linux1 (You substitute hda3 for where your normal linux1 system
is).
You substitute hda3 for where your normal linux1 system is.
Now, we are going to install the kernel source. Copy the downloaded kernel
tar file from linux1 to /usr/src on linux2.
Note, I'm not interested in actually making a new kernel now, I just
want to get a few symlinks setup that are necessary for the next chapter.
Compiling a false kernel is just a sneaky way of doing so. I guess that's
what I get for reading directions every now and then because that's where
I learned this trick.
Unpack the tar file.
Remove the tar file from /usr/src
Now, let's create some necessary symlinks. Change directories to /usr/include
then type the following:
ln -s ../src/linux/include/asm asm
ln -s ../src/linux/include/linux linux
Now, assuming you copied the m4 and sed file from me earlier, go to the
/usr/bin directory and change the permissions of these files to make them
executable by typing the following:
chmod 755 m4
chmod 755 sed
Next, goto /usr/src/linux and type make config
Answer n to as many questions as possible. This will setup the rest of
the symlinks automatically.
That's all we are doing for the kernel for now, we'll remake the kernel
for real in a later chapter.
Kernel Install: Time for another backup
Ok, let's save all your hard work to this point again. We'll need to
boot back to Linux1 but first, let's unmount everything. Do a cd / to
get to the root directory. Next, type umount /mnt/linux1. Next, type mount
-o remount,ro /. Now go ahead and issue a reboot -f. This will reboot
you. Once your back in Linux1, mount linux2 and goto the /mnt/linux2 directory.
Type the following:
tar cvf backup2.tar *
This will make a backup of the contents of the /mnt/linux2 directory
called backup2.tar
You should also compress this file with gzip because it's huge by typing:
gzip backup2.tar
Move this file off of linux2 afterwards to where you keep your downloaded
files on linux1.
|