How do I get the linux kernel onto cdrom so that I can boot to it..
Here is what I am looking for:
1) CD-ROM Boot -> Grub 2) Grub -> Find kernel on CD-ROM 3) Grub -> Boot kernel Everything else after this is almost painfully easy. My problems are: 1) Cannot find anything that explains how to make a bootable cd that can access the cd! (unless there is some grub patch I am unaware of) 2) What I can find is the annoying el-torrito, which is by all means useless. a 2.4 megabyte kernel does not fit on a floppy, which is the entire reason why I want cd-rom boot. El-Torrito is not going to cut it. 3) I can boot to an el-torrito made disk using grub, but grub cannot find the cdrom using this method. So..I cannot access the cdrom to access the kernel. Notes: 1) The kernel is exactly, and I mean exactly, built how I need it to be. Making it smaller is NOT an option. 2) Putting the kernel or grub on any other kind of medium is exactly what I do not want to do. Pointing me to other medium will only waste my time. I specifically need CD-ROM boot and only CD-ROM boot. 3) If any of this seems offensive; sorry, but I intend to make myself clear. 4) There are many .... MANY .. cdroms that seem to boot and go to the kernel, so there is clearly something I am not seeing or understanding. If you can help clear this up, by all means tell me! 5) Final note: I do not ever intend to use Windows, using syslinux is bad practice as it requires vfat. syslinux cannot ever be a fix for my situation. (Unless I misread what syslinux says about using dos filesystems. |
what you need is ISOLINUX... it's part of the syslinux package...
here's the instructions on how to make the bootable ISO: http://syslinux.zytor.com/iso.php#how have fun!!! ;) |
Quote:
On FC4, it's in the /boot/grub and /usr/share/grub/i386-redhat . After I get the cdrom setup, I make the iso like this..... mkisofs -J -R -b boot/grub/iso9660_stage1_5 -c boot/boot.catalog -o \ /home/bootcd.iso -no-emul-boot -boot-load-size 32 -boot-info-table . |
Quote:
However, with the above command (inside the directory containing the kernel & grub files), booting to the cd generating the following error: Code:
Loading stage1.5 . |
Sorry, guess I should have included more instructions.
cd /home mkdir -p iso/boot/grub cp /boot/grub/menu.lst /home/iso/boot/grub cp /boot/grub/stage* /home/iso/boot/grub cp /boot/grub/iso9660_stage1_5 /home/iso/boot/grub mkisofs -R -b boot/grub/iso9660_stage1_5 -no-emul-boot \ -boot-load-size 4 -boot-info-table -o grub.iso iso Change the menu.lst from ro root=LABEL=/ rhgb quiet to root=/dev/hdb2 rhgb quiet Here is a sample menu.lst for the cdrom Code:
color light-gray/blue black/light-gray title Fedora Core (cdrom boot) root (hd1,1) kernel /boot/vmlinuz ro root=/dev/hdb2 rhgb quiet initrd /boot/initrd.img |
here is the layout of the Directory that will be the CD:
Code:
boot/ However, that response post now says '4' instead of '32' for boot-load size. I will see if that is the problem. (it is also showing 4 on the isolinux instructions..) also: Quote:
|
PERFECT!
That did it. I needed 4 and not 32. (was that a typo? got fat fingers on an undersized keyboard? :)) Anyway thinks, I can now see the cdrom!! Even root (cd) appears now when it never did before. The commands I used were (using the layout above minus the floppy image called: bootimage): Code:
mkisofs -RV "GRUB_BOOT" -b boot/grub/iso9660_stage1_5 -o cdrom.iso -c boot/catalog -no-emul-boot -boot-load-size 4 -boot-info-table . && Looks like I had to pass root (hd2) as root (cd) resulted in a disk-read error |
Edit: You're right, using 4 does work and 32 doesn't. I'm not sure where that 32 came from. :(
I did notice that using grub.conf works better that menu.lst sometimes. Also, you can just copy the whole /boot/grub over and even use the original grub.conf if you want. For example: Code:
cd /home I filled that image folder up with a bunch of goodies like freedos.img , ranish.img . hdclone.img and about 60 other images. I added an entry in the grub.conf looks like this... Code:
color light-gray/blue black/light-gray For example: title Freedos V9 kernel /boot/memdisk initrd=/images/ranish.img Makes for a nice tech cd! :) |
much appreciated.
|
Quote:
patrick volkerding mentions something like this in the isolinux readme for slackware: Quote:
|
Thanks win32sux,
Guess that explains why it worked on some of my boxes and some didn't. :) |
All times are GMT -5. The time now is 08:04 PM. |