LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Add more then one kernels ? (https://www.linuxquestions.org/questions/linux-software-2/add-more-then-one-kernels-11211/)

hitesh_linux 01-06-2002 12:02 AM

Add more then one kernels ?
 
Hello Friends,


1) During Redhat linux Istallation.I didn't install lilo.After installation i want to install Lilo.

Q: How can i install?

2) How can i add more than one kernels in to Lilo.conf?
and how can i boot differnt kernel?(with other distribution)

3) How can i add Password protection to a partition.

4) When lilo start, how can gather the information about Hardware.(I/O)
Exp: If more then one hardware is attached ,how lilo will deceted.


-----------------------
Thanks
Hitesh

Aussie 01-06-2002 12:08 AM

The lilo How-To has most of the answers you need. And here is a section of my lilo.conf showing two kernels,
Code:

# Linux bootable partition config begins
image = /vmlinuz
  root = /dev/hda1
  label = slack
  read-only
#old linux
image = /vmlinuz.old
  root = /dev/hda1
  label = slack.old
  read-only


DMR 01-06-2002 01:07 AM

As Aussie said, the lilo HOWTO is full of good information. Also read the man pages for lilo and lilo.conf.
Basically, you'll have to create the config file /etc/lilo.conf if it doesn't exist already (in Redhat it might be /etc/conf.lilo, I forget). It contains global booting options, as well as (in a multi-boot situation) subsections pertaining to each OS or kernel you want to boot. The resources above describe the details. After properly configuring /etc/lilo.conf, run "/sbin/lilo", at which point lilo will install itself acording to the parameters contained in lilo.conf.

When booting more than one kernel/distro, you use the "image=" lines to point to the desired kernel. I like to keep the kernels for each distro in a single /boot directory, making sure each has a unique name. Here's lilo.conf for my dual-boot Mandrake/Redhat box:
Code:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
vga=normal
default=Mandrake
keytable=/boot/us.klt
lba32
prompt
timeout=600
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.4.3-20mdk
        label=Mandrake
        root=/dev/hda6
        vga=788
        read-only
image=/boot/vmlinuz-2.2.14-5.0
        label=Rh6.2
        root=/dev/hdb8
        vga=788
        read-only
image=/boot/vmlinuz
        label=failsafe
        root=/dev/hda6
        append=" failsafe"
        read-only

As far as getting hardware information, what exactly do you mean? Lilo is just the bootloader; it isn't responsible for detecting or configuring your hardware.
However, you can always type "dmesg|less" at any command prompt to review boot-up information regarding system initialization and device detection. There are other ways to view hardware information, but how to do it varies depending on what specific hardware you are referring to.

As far as password-protecting a single partition, I haven't run across a way to do that without, perhaps, installing a third-party utility. Remember, though, that some partitions can't really be password protected, because they need to be mounted automatically at boot, without user intervention. You could always restrict partition access using user/group permissions, if that would be enough to serve your needs.

hitesh_linux 01-06-2002 02:37 AM

RE:Add more then one kernels ?
 
Thanks Aussie and DMR,

I got it, but where can get other kernels and where do i install in linux system.i mean in dere.so i can easly boot other kernels.

Thanks again,
Hitesh

Aussie 01-06-2002 02:56 AM

You can download the latest kernels from the kernel archive, to install them you have to compile them your self, the kernel How-To has the info on that job, and if you do a search of the forum you'll find lots of threads on the subject.

DMR 01-06-2002 02:59 AM

You can get the latest kernel sources from kernel.org. There's a lot of information out there on compiling kernels (including lots of useful tips right here, just search past posts), but the first thing to check out is probably the Kernel-HOWTO at the Linux Documentation Project.

Obviously, if you install another entire distro on your box, the kernel will usually live in the /boot directory for that distro.

hitesh_linux 01-06-2002 03:24 AM

Which kernels?
 
Thanks Again,

i suff this site.but i confused which kernels belongs to which distribution.so send me perfet URL.which through i can download diffrent Distrib like suse,mandrake,Caldera whet ever .

Thanks
Hitesh

DMR 01-06-2002 03:36 AM

OK,

Full distros can be downloaded from Linuxiso.org. Although some of the distros can be downloaded and installed straight from a hard drive, the usual approach is to download the iso images and then burn them to CDs. Remember that you can't just copy the iso files to a CD, you must burn them as an image. There is a page at linuxiso.org with more information on that if you need it.

hitesh_linux 01-06-2002 03:51 AM

Kernels Distri ?
 
Hello DMR,

Thanks Again,i visit that page,but it show me
for Suse:
1)Intel 7.3 Live Evaluation iso (runs from cd only) ~640megs

2) Sparc SuSE-7.3-CD2.iso Binaries

3) Sparc SuSE-7.3-CD4.iso Sources only

any three of it which thing i should download.and same thing in Debain .so please send it.

Thanks Hitesh

Aussie 01-06-2002 03:56 AM

The Sparc cd's are no good for an ix86 intel compatable machine. Suse don't provide download iso's of their latest distro, you might be able to find an older version though, otherwise if you want Suse you have to buy it. For Debian the 2.2r4 iso's are tha latest stable release and the "woody" iso's are the test version for the next release.


All times are GMT -5. The time now is 05:03 AM.