AuthorTopic: editing lilo to boot from usb (Read 8302 times)

I have a bootable usb drive and I would like to edit the /etc/lilo.conf file so that I could plug in my usb drive, boot up the computer, and (in addition to being able to boot into my normal VL installation) be able to boot from the usb drive. (I don't have an option in the bios to boot from usb so I would have to do it this way or boot from a cd and tell it where to go from there but I don't have a cd drive in my computer at the moment) I think I have most of the edits figured out but where should I tell lilo to look for the image (vmlinuz) and where root is? I think it would be something like "root = /dev/sda1" or /mnt/sda1 or something like that. Does anyone know what that should be?

Well, it sort of booted, but I think Slax wanted another boot parameter or something, because it wouldn't boot all the way for me. However, it looks like it should be possible this way. But I'm now going to fix my lilo, because my computer has absolutely no problems booting from USB .

Ok, I tried using vliloconf to find the usb stick and it found it when it was asking where to put the mbr but not when it showed the available operating systems to include in the lilo menu. At the top of lilo.conf, there is a line that says: boot = /dev/hda1 (which is where my mbr is located which is correct) I ran liloinst.sh (on the usb stick) to make it bootable. liloinst.sh makes an mbr on the usb drive where it is run. Is there a way to put an entry in lilo that simply redirects (when selected) to the mbr on /dev/sda (my usb stick) ? Another "boot=" line perhaps? I tried putting another stanza in lilo.conf already but it didn't boot when selected and gave me the error: 0x03 (or 0x0E, something like that). Here is the stanza I put in:

(kind of a mess compared to the normal lilo.conf but there it is) I have successfully booted a laptop with this usb stick (after making it bootable with liloinst.sh) so the above lilo.conf definitely works. Can anyone help me with this?