Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: Merging EXT2 and El Torito | Date | 9 Mar 1998 04:48:22 GMT |
| |
Followup to: <6dvb0l$out@pccross.average.org> By author: crosser@average.org (Eugene Crosser) In newsgroup: linux.dev.kernel > > I agree with hpa that if you want your CD as a root you can live with > iso9660 fs and El Torito boot floppy image. But, it would be much better > for many purposes to have root filesystem on a ramdisk, like we do on > most Linux distributions, and cdrom itself mounted as /usr or something. > Having root on ramdisk is more flexible: you can edit config files like > /etc/hosts, easily create mount points if necessary etc. > > Now, my question is: is it possible to tell the kernel to load ramdisk > image from cdrom, and if yes, how? At the first glance, seems to be > tricky. In case of floppy, the image is read straight from device, > and in case of cdrom, you need to access a file on a filesystem that > is not mounted yet. > > Any ideas, anyone? >
Piece of cake. Use initrd:
Create a floppy image with your kernel and a .gz file of your root filesystem. Put SYSLINUX 1.33 or later on it as a boot loader. Use that as your El Torito boot disk image. Done.
This works, because an initrd is loaded by the boot loader and not by the kernel.
-hpa -- PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74 See http://www.zytor.com/~hpa/ for web page and full PGP public key I am Bahá'í -- ask me about it or see http://www.bahai.org/ "To love another person is to see the face of God." -- Les Misérables
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |