PDA

View Full Version : Knoppix 3.7, 2.6.x, bios-unsopported cdrom, boot from floppy



growngizmo
02-14-2005, 11:13 PM
Hello Forum,

I need a Rescue-System with Udev, which boots from Floppy and provides ethernet-access.

I've found none Floppy-Distribution for this application.

My joyce is at the moment Knoppix 3.7.

- SCSI-Cdrom is used as secondary Boot-Device (not supportet from Biso, but used for Knoppix-CDrom.
- no IDE at all.
- SCSI-Controller Adaptec AIC-7850 BIOS v1.24 is onboard.

I wasn't able to create 1,68MB-Boot-Floppies for the big 2.6 Kernel.

So I decidet to create a Win98-Bootdisk, add support for SCSI, install loadlin to boot Linux/Knoppix from CD.

The 2.4 Kernel works fine. The used ´module is known as aic7xxx.o. Knoppix-CD is working. But because of the 2.5 there is no udev at all. Deffs is not my way because of different device-names at my Mylex DAC960.

The 2,6 boots as well, till no module wass loadet. The first module for scsi is named tmscsim.o. There is no Adaptec, as well as no CDrom. Booting stopps here.

I had tried to use the option aic7xxx on loadlin, but it follows the same.

"What to do now?" is the question.

By the way my autoexec.bat,


@echo off

MSCDEX.EXE /D:mscd001 /L:%CDROM%

rem loadlin C:\boot\isolinux\linux24 root=/dev/sda initrd=C:\boot\isolinux\minirt24.gz

loadlin C:\boot\isolinux\linux26 ramdisk_size=100000 aic7xxx root=/dev/sda initrd=C:\boot\isolinux\minirt26.gz

rem (-)loadlin C:\boot\isolinux\linux26 ramdisk_size=100000 root=/dev/scd0 initrd=C:\boot\isolinux\minirt26.gz
rem (-)loadlin C:\boot\isolinux\linux26 ramdisk_size=100000 init=/etc/init lang=de apm=power-off initrd=C:\boot\isolinux\minirt26.gz

rem loadlin C:\boot\isolinux\linux24 root=/dev/sda initrd=C:\boot\isolinux\minirt24.gz
and my config.sys.



DEVICE=HIMEM.SYS /testmem:off
FILES=30
BUFFERS=20

device=aspi8dos.sys
device=aspicd.sys /D:mscd001

LASTDRIVE=Z

Martin Glötzl-Koch

Harry Kuhman
02-14-2005, 11:59 PM
If it's just lack of BIOS support for CD booting that is the problem (as your subject line suggests), then you might want to look at Smart Boot Manager (http://btmgr.webframe.org/), which can be installed to a floppy (even an old 720k floppy) and should let you boot any bootable CD .

growngizmo
02-15-2005, 08:17 AM
@ Harry Kuhman

Hi,

I has already tried the named Smartbootmanager. The used Bios is older then '96 and CDrom is not even seen by Bios. So the Bootmanager can't access the CDrom.

Thanx, was a nice Try.

Harry Kuhman
02-15-2005, 08:59 AM
Sorry SBM didn't help growngizmo.

I have used it on pretty old systems, ones where the BIOS had no idea about the CDROM. I would have expected it to boot any standard IDE CD. Could it be that your system is old enough that it uses a custom CD interface rather than the now standard IDE interface? That could certainly give SBM or other boot programs problems in booting.

growngizmo
02-15-2005, 12:11 PM
@Harry Kuhman

Hi,

The machine supports very special IDE-Cards without Bios. The Bios for IDE-Support is within the regular Bios.
The machine is an Interserve 660 (Intergraph)
I've got no IDE-Addoncard working for booting.

The Problem isn't booting itselve, more the support of aic7xxx within knoppix26.

I have also tried a hakin9live 2.4, but there is no scsi-support at all.

With regards

Martin Glötzl-Koch

growngizmo
02-25-2005, 01:52 PM
sorry for german - am lazy at the moment:

Und nun aus gemeinnützugem Zweck die Lösung:

Punkt 1 - Das Bootfloppy 1,68 MB erstellen
Punkt 2 - Die initrd moifizieren - der aic7xxx ist quasi remarked



Punkt 1 - Das Bootfloppy 1,68 MB erstellen:

Der Ausgangspunkt war die etwas unvollständig Anleitung unter Knoppix with

2.6.7 kernel from non-bootable CD-ROM (http://ldp.paradoxical.co.uk/LDP/LGNET/current/anonymous.html) und Zuhilfenahme von

How Do I make a "super" capacity boot floppy (http://sourceforge.net/docman/display_doc.php?docid=1416&group_id=13751).

1. Boote ein beliebiges Knoppix auf einem anderen Rechner. Es gibt auf der Knoppix 3.7 zwar ein Script, welches vorschreibt den Kernel zu

booten, welchen man auf der Diskette haben will. Diese scheint in bezug auf die Größe des Kernels ein wenig buggy, denn ich habe keine bootbare

2.6.x Zustande gebracht.
2. Öffne eine Konsole und gebe ein:

su
superformat -v 3 --superverify /dev/fd0u1680
syslinux /dev/fd0u1680
mount -t msdos /dev/fd0u1680 /mnt/auto/floppy
wenn hier eine Fehlermeldung aufläuft, sollte man die Floppy nochmal unmounten, da es sehr warscheinlich ist, dass die Floppy durch die

tab-completion per automounter als fd0 bzw. fd0u1440 eingehängt wurde.

umount /mnt/auto/floppy
mount -t msdos /dev/fd0u1680 /mnt/auto/floppy
cd /mnt/auto/cdrom/boot/isolinux/
cp -avx ./boot.msg /mnt/auto/floppy/
cp -avx ./f2 /mnt/auto/floppy/
cp -avx ./f3 /mnt/auto/floppy/
cp -avx ./isolinux.cfg /mnt/auto/floppy/syslinux.cfg
cp -avx ./linux26 /mnt/auto/floppy/
Nun editiert man die syslinux.cfg mit vim oder einem anderen Editor wie folgt:

DEFAULT knoppix26
TIMEOUT 300
KBDMAP german.kbd
PROMPT 1
DISPLAY boot.msg
F2 f2
F3 f3
LABEL knoppix26
KERNEL linux26
APPEND ramdisk_size=100000 load_ramdisk=1 prompt_ramdisk=1 root=/dev/fd0 rw init=/etc/init DAC960 aic7xxx lang=de apm=power-off vga=791 nomce

screen=1024x768 depth=24 BOOT_IMAGE=knoppix
LABEL expert26
KERNEL linux26
APPEND ramdisk_size=100000 load_ramdisk=1 prompt_ramdisk=1 root=/dev/fd0 rw init=/etc/init DAC960 aic7xxx lang=de apm=power-off vga=791 nomce

screen=1024x768 depth=24 BOOT_IMAGE=expert
Die ein oder andere Option kann man sicherlich weglassen, aber so hats für mich halt vorläufig gepasst.
So wurde zum Beispiel ohne den Append DAC960 das Modul zwar geladen, jedoch konnte ich auf den Controller nicht zugreifen. Vielleicht passierte

das Laden zum falschen Zeitpunkt, da scheint der Treiber etwas kritisch zu sein.
Nun sollte man die Floppy noch unmounten.

umount /mnt/auto/floppy
Das wars.

Punkt 2 - Die initrd moifizieren - der aic7xxx ist quasi remarked:

1. Entpacke die minirt26.gz zum Beistpiel mit Ark in Home-Verzeichnis
2. Mounte das Image zum modifizieren.

mount -o loop /home/KNOPPIX/minirt26/minirt26 /mnt/test/
cd /mnt/test/lib/modules/2.6.9/kernel/drivers/scsi/
ls -la
Und siehe da! Es gibt eine aic7xxx_CAUTION.o

chmod --reference=wd7000.o aic7xxx_CAUTION.o
mv aic7xxx_CAUTION.o aic7xxx.o
cd
umount /mnt/test
Nun das ganze wieder schön in gewohnter Manier verpackt und dann rauf auf die 2. Floppy.

dd if=/home/KNOPPIX/initrd26.gz of=/dev/fd0u1440
Nun sollte man auf die CDrom während dem Booten zugreifen können.
Damit das Ganze das beim zukünftigen Booten schneller geht noch eine Poormans Install. Am Bootpromt zu der knoppix26 noch ein tohd=/dev/hdc1

eingeben. Zukünftig kann man mit einem append fromhd=/dev/hdc1 starten ohne ein CDrom anzuklemmen.

Viel Erfolg