LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-22-2001, 09:22 PM   #1
rdaves@earthlink.net
Member
 
Registered: May 2001
Location: Full-time traveler I live where I am.
Distribution: I use Red Hat V 7.1
Posts: 297

Rep: Reputation: 30
mkbootdisk and mkinitrd


I want to make a bootdisk which will boot my recompiled kernel, which I have called "mykernel"
So I want my syslinux.cfg to say:
Quote:
default mykernel
prompt 1
display boot.msg
timeout 100
label mykernel
kernel mykernel
append root=/dev/hde5
and I want an image of "mykernel", not "vmlinuz" on this disk.

but, when I type
Code:
lilo
I get all the stuff that would boot vmlinuz, instead of mykernel.

How do I fix this. There are some references to "mkinitrd" in "man lilo", but I can't decipher the technobabble. Do I need to put something in the "mkinitrd" command stream to make "mykernel" be reflected on the floppy? Or is there something else I need to do?
 
Old 09-23-2001, 12:23 PM   #2
rolf
Member
 
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187

Rep: Reputation: 33
FWIW

Hi,

I have done something similar (install second kernel, make initrd image) but different (Mandrake, GRUB bootloader), so I will make an argument by analogy.

The only configuration file I had to edit was /boot/grub/menu.lst, which is a menu of options to boot. The analogy, I believe, would be /etc/lilo.conf for lilo bootloader. I just followed the syntax of the original kernel entry and changed the numbers/names to suit the new kernel. You also have man lilo.conf for syntax.

I needed an initrd because I was using reiserfs and this aspect of my kernel required the initrd so I had to make one. If your original kernel requires one, it will be in /boot and, if your mykernel has the same function(s) that make(s) your original kernel need an initrd, you will need to make one.

From man mkinitrd:

mkinitrd [-fv] [--with=module] [--preload=module]
[--omit-scsi-modules] [--omit-raid-modules]
[--version] [--fstab=fstab] image
kernel-version

I think what you would do, in /boot, with your mykernel image in /boot is:

# mkinitrd --ifneeded mykernel.img mykernel

and add the entry to lilo.conf.

There is also HOWTO stuff about this at Tom Berger's MandrakeUserOrg Doc Section that might be close enough to what you need to help.

Good luck.

Eh?? What??? You want mkbootdisk???? oh.

Well, I've never done that but, since I'm here anyway, I'll carry the analogy one step further and suggest (might as well be in /boot):

# mkbootdisk mykernel --mkinitrdargs --ifneeded mykernel.img mykernel

I'll go quietly, now
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mkbootdisk for CDs RJEmery Linux - Newbie 7 04-13-2005 10:25 AM
mkbootdisk mickeyboa Fedora 3 02-21-2005 06:47 AM
mkbootdisk not making marlaina1 Linux - Newbie 3 01-24-2004 07:21 PM
i need a new mkbootdisk !! osiris777 Red Hat 3 10-08-2003 10:08 AM
mkbootdisk not found!!! emjay Linux - Newbie 4 10-29-2002 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration