maxim wexler wrote:
>>to copy your kernel
>>to the floppy also, and load it from there. Your
>>kernel is going to
>>have to be fairly petite to fit...probably less than
>>1.2M or so.
>>
>>
>the kernel is already 1.57M. Are you saying I should
>reconfig the kernel? I recall modularizing most of the
>stuff I wouldn't need until after the OS is up. Can
>you suggest what to leave out? I seem to recall a
>method of formatting a floppy 1,7M. But I didn't see
>it in man fdformat or man mke2fs. Maybe a boot CD. But
>that seems like a recipe for making coasters.
>
>
>
Well, things like usb, ieee1394, most filesystems (obviously you want to
keep ext2/3!), sound, and networking are the obvious choices for
becoming modules if they are not already. If you want to post the
contents of the kernel config, I will take a look and see if anything
pops out at me. The best command for this is probably:
grep -v "^#" /usr/src/linux/.config | grep "=y"
This will return just those things that are compiled into the kernel,
not modules or unselected.
I can also give you the instructions for making a bootable CD if you
want to try that. It isn't terribly hard, actually it is a bit easier
than getting grub to work from a hard disk! But a CD-RW drive/disk
would be the most useful...
cd /tmp
mkdir -p cdboot/boot/grub
cd cdboot
cp /boot/vmlinuz boot/
cp /boot/grub/stage2_eltorito boot/grub/
cp /boot/grub/splash.xpm.gz boot/grub/
cp /boot/grub/grub.conf boot/grub/menu.lst
Notice that the grub.conf file *must* be renamed to menu.lst. You will
also need to edit 'boot/grub/menu.lst', and change all "(hd0,1)/grub" to
"(cd)/boot/grub". The result should be something like:
splashimage=(cd)/boot/grub/splash.xpm.gz
title Gentoo
kernel (cd)/boot/vmlinuz root=/dev/hda4
Finally, to make the ISO, run (should all be on one line, without the
backslashes):
mkisofs -o /tmp/cdboot.iso -R \
-b boot/grub/stage2_eltorito \
-no-emul-boot -boot-load-size 4 -boot-info-table \
.
Burn /tmp/cdboot.iso to a CD-R[W], and you should be set.
-Richard
--
[email protected] mailing list