Table of Contents
Newsgroups: comp.os.linux.misc Date: 2002-09-11 14:51:10 PST
> Don't know much about what you really want, but there is the program > "Loadlin.exe" that will load the kernel to any Linux OS you want.
Basically yes. Thanks.
> You only need to know where the partition is /dev/hd?? and a small DOS > "FAT" to boot into in order for it to work. Then use DOS config.sys with > the MENU commands Autoexec.bat to load the needed batch file to load > "loadlin ---parameters to load version of kernel to load". so then you > will have a menu of each kernel to load crated with a file you can name as > Debian for Debian, Redhat for Redhat, etc.
Hmm… what I meant "general purpose" is that I can boot to any system without pre-configuration. Ok, if this is the *only* choice I can have, I'll buy it anyway.
> > a LILO created boot loader on a floppy disk which can boot /vmlinuz > > found on any hard disk partition which can be found on a system ( > > /dev/hdXY and /dev/sdXY, where X=a,b,c,d and Y=1,2,3,4,5,6,7,8 ). It > > was rather trivial, once you know a little about boot loaders and > > installing them on a floppy disk. > > Could you tell us how you did it please?
I modified a (generic) root/boot floppy disk (which includes LILO) to automatically run a short script after the system has started. The script appends a bunch of image sections (declared as optional) to a generic lilo configuration file, and then executes lilo to put a new boot loader on the same floppy disk, with entries for all the /vmlinuz images available on _that_ system. Upon successful map file installation the script reboots the machine. Think of it as a disposable boot diskette, as you have to make a new one every time you use it …
Since the absolute location of the kernel images on each partition of a random machine cannot be known in advance, and LILO does not know much about the different filesystems, it has to be a two step process.