Solved

kernel compilation

Posted on 1998-07-23
2
368 Views
Last Modified: 2010-04-20
i went through an article about creating a floppy version of linux. it was  somthing that i was looking for . i have  a few doubts before i try that out . i have already a runnig version of slackware version 2.0.X and i had once compiled the kernel for including sound support . so after such a compile , i already have zimage or vmlinuz in that particular directory..

my doubht is now if i compile  wont i lose the earleir one
my questions are :
1. can i keep compling and make different kernels .. and keep it in a personal directory
2. and where should i put the kernel i need to use then ..

after the make config ...etc steps  we would end up with an image in /usr/src/linux/arch/i386/boot right ? i.e repeatedly can i make different kernels and move them from /usr/src/linux/arch/i386/boot  to a private directory and use them when i need by moving them back to /usr/src/linux/arch/i386/boot  at my own will ?


or does compling the source code of kernel not only leave us with a new kernel but also change all our OS settings ?

in a nut shell what all factors come into play when one compiles a new kernel .. is it just the compiler that compiles a big c program giving us an executable which we need to put in the root directory or boot floopy

please , would love toget a clear picture before i venture out . please dont direct me to read some HOWTO . they are really dull
0
Comment
Question by:rajkin
2 Comments
 
LVL 4

Accepted Solution

by:
swwelsh earned 30 total points
ID: 1637606
Yes, you can have as many kernels as you want. Usually the active kernel image is moved to /vmlinuz after a compile so the next compile doesn't trash a good kernel, but you can put them anywhere you want. Just add a section to your lilo.conf file referring to the new kernel, then you can use it when the lilo prompt comes up by hitting shift-tab. This will list all the bootable files in lilo.conf. Remember to rerun lilo after every change to lilo.conf. I usually just move the kernels to / and rename them to oldkernel, scsikernel, or whatever you like. Use dd if=/oldkernel of=/dev/fd0 to make boot disks.

As far as making a floppy version of linux, I have heare there are such things, but you can do most of the same things with a boot/root disk combo. Look on your slakware cdrom for the rescue floppy image. This has a copy of vi on the root disk so you can mount your filesystem and make changes to configuration files
0
 

Author Comment

by:rajkin
ID: 1637607
thank you, before i accept your answer i would appreciate if you could give me some commands to make boot disks from linux env etc . i always fail to copy images to floppy disks after compilation. rawwrite works only for dos right ..
in linux i tried
mcopy  zimage a:\
cp zimage /dev/fd0     never works

the only command that worked was
make zdisk


what are the other commands to copy a bootableimage to the disk  ?

hope to receive an answer soon

0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question