boot image for new kernel too big for the floppy?

boot image for new kernel too big for the floppy?

Post by Robert Nag » Thu, 01 Nov 2001 02:04:27


Hi, I've compiled a kernel from scratch from kernel.org.

I was able to get it to load correctly. However, I couldn't create a
boot disk (using bzdisk)  that could fit on a single floppy. (and in
fact make bzImage
gave me that warning as well).

Now I tried to choose the minimum of options, but it still ended up
overflowing the floppy disk. Why is this? The bzimage I created looks
to be 1 mb.
However, there are additional files
How are those files that are usually on a boot floppy created?
(initrd.img, etc) Do they reside as files somewhere?

Does mkbootdisk work for creating boot disks for custom kernels? I'm
used to typing
mkbootdisk --device /dev/fd0 2.4.2-2

but obviously for a new kernel it would be different. If this command
is appropriate here, what switches or options would you use. What does
the kernel number in the command above do? Where does the "2.4.2-2"
tell mkbootdisk to look? If I named my boot bzimage "kernel.good" ,
would that be the appropriate value to insert here?

Finally, I'm wondering if a boot floppy for a custom kernel is really
necessary. If I have the boot floppy for the distribution's kernel and
I don't erase that kernel, why would a person need a special floppy
for a particular kernel? Thoughts?

Robert Nagle, Austin, Texas

 
 
 

boot image for new kernel too big for the floppy?

Post by <k.. » Thu, 01 Nov 2001 04:27:53



Quote:> Hi, I've compiled a kernel from scratch from kernel.org.

> I was able to get it to load correctly. However, I couldn't create a
> boot disk (using bzdisk)  that could fit on a single floppy. (and in
> fact make bzImage
> gave me that warning as well).

> Now I tried to choose the minimum of options, but it still ended up
> overflowing the floppy disk. Why is this? The bzimage I created looks
> to be 1 mb.
> However, there are additional files
> How are those files that are usually on a boot floppy created?
> (initrd.img, etc) Do they reside as files somewhere?

You can either run mkinitrd or use the mkbootdisk utility to create the
initial ramdisk file.

Quote:> Does mkbootdisk work for creating boot disks for custom kernels? I'm
> used to typing
> mkbootdisk --device /dev/fd0 2.4.2-2

> but obviously for a new kernel it would be different. If this command
> is appropriate here, what switches or options would you use. What does
> the kernel number in the command above do? Where does the "2.4.2-2"
> tell mkbootdisk to look? If I named my boot bzimage "kernel.good" ,
> would that be the appropriate value to insert here?

The mkbootdisk utility will append the kernel version you specify to
the string "vmlinuz" and look for it in /boot. It will also look for a
/lib/modules/_KERNEL_VERSION_ directory. E.g., running:

 mkbootdisk 2.4.7

 will look for /lib/modules/2.4.7 and /boot/vmlinuz-2.4.7

 To use mkbootdisk you'll need to copy your kernel.good to
 /boot/vmlinuz-_KERNEL_VERSION. You can get the name of the currently
 running kernel with 'uname -r'.

Quote:> Finally, I'm wondering if a boot floppy for a custom kernel is really
> necessary. If I have the boot floppy for the distribution's kernel and
> I don't erase that kernel, why would a person need a special floppy
> for a particular kernel? Thoughts?

> Robert Nagle, Austin, Texas


 
 
 

boot image for new kernel too big for the floppy?

Post by bill davids » Fri, 02 Nov 2001 06:58:11



| Hi, I've compiled a kernel from scratch from kernel.org.

| Finally, I'm wondering if a boot floppy for a custom kernel is really
| necessary. If I have the boot floppy for the distribution's kernel and
| I don't erase that kernel, why would a person need a special floppy
| for a particular kernel? Thoughts?

If it were me I'd edit /etc/lilo.conf, make a boot floppy with lilo, and
run that. You are putting a lot of effort into avoiding using LILO, to
no great gain. All you need is the pointers to the stuff on the hard
drive, if the hard drive is bad you won't boot from anything.

If you really want the untimate, get the `mindi' package and make a
bootable CD, that will hold any kernel I ever built.

--

  His first management concern is not solving the problem, but covering
his ass. If he lived in the middle ages he'd wear his codpiece backward.

 
 
 

1. Boot Image to Big on Kernel build

Hello,

  In trying to do a kernel rebuild on SLS 1.02, I get the message
"Image to Big" when the boot image creation is attempted.
I remember someone else having the same problem, but I lost the mail
message that had the proper fix.  I think that it was a compiler switch.
If someone could refresh my memory it would be very much appreciated.

Michael L. Bird

2. ISDN

3. new kernel image on floppy

4. UNIX Systems Administrator NEEDED!!

5. Big Big Big CORE Image !!

6. pkgmk fails when filenames have space characters in them.

7. How do I update the lilo kernel image map on my boot floppy?

8. Linux fail-over capabilities anyone?

9. New Booting Image and Ramdisk Image for Alpha DS10/XP1000/DS20

10. New kernel on boot floppy reboots machine

11. Cannot boot new kernel from floppy - newbie, kind of

12. Help to boot new kernel with grub -delited the old kernel before tried the new one

13. New Kernel, must boot from floppy (Xp and NT dual boot)...kernel too big....what to do please?