trouble making a bootable CD

I am trying to create a bootable CD by using the procedure in the knowledge
databaase, but am having problems. The CD seems to be made correctly, i.e.
the it contains the files want, but it doesn’t boot correctly. When I attempt
to boot the CD, I see:

Starting QNX…
Path = 0 - EIDE
target = 0 lun =0 CD-ROM(5) - HITACHI CDR-8235 Rev: 0004
mount: mount() of /dev/cd0 failed: Corrupted file system detected


The command used to make the ISO image from a directory tree under /iso was:

mkisofs -o /tmp/qnx4.iso -RLl -b boot/boot.img -c boot/boot.catalog /iso

The boot.img was created by building a boot image with the following build
file:


sys/boot
$ boot -v

sys/Proc32
$ Proc32 -p 100 -D

sys/Slib32
$ Slib32

sys/Slib16
$ Slib16

/bin/Fsys
$ Fsys -l 0 -c 100 -r 1024

/bin/Fsys.floppy
$ Fsys.floppy -m 18

/bin/Fsys.eide
$ Fsys.eide fsys -Ndsk0 -n0=hd0 -n5=cd

/bin/Iso9660fsys
$ Iso9660fsys -s

/bin/mount
$ mount /dev/cd0 /

/bin/sinit
$ sinit TERM=qnx

The boot image was then copied to a floppy:

mount /dev/fd0 /fd
cp boot/images/floppy /fd/.boot

(other files are copied based on script for making boot floppy in technotes)

umount /fd
dd if=/dev/fd0 of=/iso/boot/boot.img


What I am doing wrong?

  • Will Parsons

Will Parsons wrote:

The boot.img was created by building a boot image with the following build
file:


sys/boot
$ boot -v

sys/Proc32
$ Proc32 -p 100 -D

sys/Slib32
$ Slib32

sys/Slib16
$ Slib16

/bin/Fsys
$ Fsys -l 0 -c 100 -r 1024

/bin/Fsys.floppy
$ Fsys.floppy -m 18

/bin/Fsys.eide
$ Fsys.eide fsys -Ndsk0 -n0=hd0 -n5=cd

/bin/Iso9660fsys
$ Iso9660fsys -s

/bin/mount
$ mount /dev/cd0 /

I succeeded with:

[… identical part snipped …]

/bin/Fsys.eide
$ Fsys.eide -v

/bin/Iso9660fsys
$ Iso9660fsys /=/dev/cd0

/bin/sinit
$ sinit -s /bin/sh -i /etc/config/sysinit TERM=qnx


and NO explicit ‘mount’ command.

HTH,

Karsten.


| / | __ ) | Karsten.Hoffmann@mbs-software.de MBS-GmbH
| |/| | _ _
\ Phone : +49-2151-7294-38 Karsten Hoffmann
| | | | |
) |__) | Fax : +49-2151-7294-50 Roemerstrasse 15
|| ||// Mobile: +49-172-3812373 D-47809 Krefeld