PDA

View Full Version : Can I use Lilo to boot knoppix from hard disk ??



fm78
03-05-2003, 11:53 AM
Hello !

I want to boot Knoppix from my harddisk and I want to use Lilo for this.I already have Slackware linux with Lilo in my computer . Is it possible ? And do I accomplish this ?

Thank you

oscar
03-05-2003, 06:50 PM
...and which knoppix are you talking about?
CD knoppix?
CD knoppix copied to hard disk (vfat, ext2)?
knoppix installed into an ext2 partition, much like a īnormalī linux through knx-hdinstall tool?

fm78
03-06-2003, 09:25 AM
Hello oscar !

I want to copy Knoppix cd in vfat harddisk and then boot knoppix from there using Lilo. Can it be done ?


:roll:

Robert Michel
03-06-2003, 12:46 PM
I want to copy Knoppix cd in vfat harddisk and then boot knoppix from there using Lilo. Can it be done ?
:roll:
http://www.knoppix.net/docs/index.php/FaqHdBased
Of course :wink:

I'm still working on this wiki page, especialy the lilo description
is not ready, give me 12 hours to complete this.
With lilo you can't boot the iso file directly, you have
to copy the contents of the iso to hd. The iso and boot.images
have a special boot-skript to choose options before booting KNOPPIX
(The "F2"-menu). I don't know how to start this skipt at boot time,
so the "F2"-menus options must be added to appends= in lilo.

If you have ideas, corrections, questions about
http://www.knoppix.net/docs/index.php/FaqHdBased
please feel free to correct and add them.

Greetings,
rob

PS: I think it is possible to store Knoppix in the same partition
as your normal-Linux-installations. BUT I have to find out how to
be able to mount, read the whole partition when Knoppix is booted
from it.

oscar
03-06-2003, 11:00 PM
Hello oscar !

I want to copy Knoppix cd in vfat harddisk and then boot knoppix from there using Lilo. Can it be done ?


:roll:

yes, this works:
copy cdrom folder KNOPPIX to C:\
Now C:\KNOPPIX is your cdrom
extract 2 files from boot.img - vmlinux and miniroot.gz - to for ex. C:\knxboot

then add to your slackware /etc/lilo.conf the following paragraph


image=/mnt/hda1/knxboot/vmlinuz
label=knx-vfat
read-only
initrd=/mnt/hda1/knxboot/miniroot.gz
append="lang=es floppyconfig ramdisk_size=100000 init=/etc/init apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 nomce quiet BOOT_IMAGE=knoppix"


in a console terminal run
lilo -v

reboot
there would be a new line in your lilo boot menu (knx-vfat)

fm78
03-07-2003, 09:55 AM
extract 2 files from boot.img - vmlinux and miniroot.gz - to for ex. C:\knxboot



I have no idea how to extract those files in Linux or Windows.Please some more help ? :(

Robert Michel
03-07-2003, 12:53 PM
Normaly you can find lilo.conf in /etc/lilo.conf
But you should know what you are doing ;)
See:
http://en.tldp.org/HOWTO/mini/LILO.html
or on your PC /src/usr/doc/HOWTO/mini/LILO....
(or so..)

Don't make a new lilo.conf, you must use your existing
one and add Knoppix. After this start lilo.

rob

fm78
03-07-2003, 03:16 PM
I meant extracting these files boot.img - vmlinux and miniroot.gz in the hardisk using Linux or Windows.Any help in how to accomplish extracting these files ? Is there any special command in Linux or any program in Windows to do this ?

Thanks

Robert Michel
03-07-2003, 03:22 PM
2 posibilities:

- you create a boot floppy and copy them from fd
- you mount boot.img -o loopback
see:
http://www.knoppix.net/docs/index.php/FaqHdBased
or
http://www.knoppix.net/docs/index.php/HdBasedHowTo
:wink:

rob

oscar
03-07-2003, 04:13 PM
I meant extracting these files boot.img - vmlinux and miniroot.gz in the hardisk using Linux or Windows.Any help in how to accomplish extracting these files ? Is there any special command in Linux or any program in Windows to do this ?

Thanks

hi,

The boot.img is a floppy image
Look into the cdrom. There is a folder with the rawrite tool.
run
rawrite a:\ boot.img (to create a floopy)
Then grab files from floppy.

In windows you may use winimage.

:)

fm78
03-12-2003, 10:01 AM
Thanks Oscar!

I followed yesterday your directions (with some modifications on language because I don't understand spanish) but I wonder if I can apply the cheat codes still, or somehow to create a xf86config file which would be always used from knoppix while it is booting?

Robert Michel
03-12-2003, 04:38 PM
Salve FM78!

" Because the Knoppix-boot-skript is not used, read about the CheatCodes and add the one you need to your lilo.conf under append= "....." To learn more about Lilo, read first the LILO-mini-HOWTO."
(http://www.knoppix.net/docs/index.php/HdBasedHowTo)
http://www.knoppix.net/docs/index.php/CheatCodes

Example:
append="lang=de ramdisk_size=100000 init=/etc/init apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=KNOPPIX-3.10-DE/miniroot.gz nomce quiet BOOT_IMAGE=knoppix"

adding floppyconfig

append="lang=de ramdisk_size=100000 init=/etc/init apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=KNOPPIX-3.10-DE/miniroot.gz nomce quiet floppyconfig BOOT_IMAGE=knoppix"

rob

oscar
03-12-2003, 05:40 PM
Thanks Oscar!

I followed yesterday your directions (with some modifications on language because I don't understand spanish) but I wonder if I can apply the cheat codes still, or somehow to create a xf86config file which would be always used from knoppix while it is booting?

these are the cheat codes:

append="lang=en floppyconfig ramdisk_size=100000 init=/etc/init apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 nomce quiet BOOT_IMAGE=knoppix"

you may add others,for ex. screen=800x600 and for ex. floppyconfig etc etc

floppyconfig reads your settings saved in a floppy, but this method have many drawbacks. Im not sure but editing xf86config will not help.

fm78
03-13-2003, 09:44 AM
thanks man !

I think that your directions should make a mini HOW-TO !