CD boot

We make software controls for machines. Our development is on QNX4.24 with
Photon. I need a way to copy our entire OS image(including applications) to
the hard disk of the software control. I thought of a method but wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the hard drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is our
service people need an easy way to install our developed systems.

Thank you,

Shashank

I would appreciate it if someone could help with this question. It is a
little urgent.

Shashank

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:au74km$2bp$1@inn.qnx.com

We make software controls for machines. Our development is on QNX4.24
with
Photon. I need a way to copy our entire OS image(including applications)
to
the hard disk of the software control. I thought of a method but wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is our
service people need an easy way to install our developed systems.

Thank you,

Shashank

\

Yes it’s feasible. I installed a system a couple of weeks ago using this
exact same methodology. It was a 4.25E OS version though… so, don’t quote
me on whether 4.24 will work :wink: You’ll need mkisofsys (I found it
somewhere on ftp://qnx.com ) The real trick is making the CD bootable. We
ended up making a bootable floppy w/ a CD .boot on it and then dd’ing the
1.44M off to a file to be used for the CD boot image. The rest of it was
mostly just trial & error to get everything just right. There is some
useful info in the QNX Knowledge Base. Oh, and watch out for symbolic links
when making the CD file system image. If you want to have a fully working
OS on the bootable CD, use the -r (Rockwell option). Otherwise, just make a
file system with the basic utilities you’ll need for accessing the hard
drive, creating your partitions and pax’ing the rest of your install into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the basic
method you outlined below does work and it is how we’re planning to install
&/or update our production systems. So far it looks very promising… I
can’t foresee any showstoppers, once you know how to get a bootable CD built
and working.

-Rob

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:au74km$2bp$1@inn.qnx.com

We make software controls for machines. Our development is on QNX4.24
with
Photon. I need a way to copy our entire OS image(including applications)
to
the hard disk of the software control. I thought of a method but wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is our
service people need an easy way to install our developed systems.

Thank you,

Shashank

\

Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com.

Thank you,
Shashank

“Rob” <rob@spamyouself.com> wrote in message
news:au7bqo$9m4$1@inn.qnx.com

Yes it’s feasible. I installed a system a couple of weeks ago using this
exact same methodology. It was a 4.25E OS version though… so, don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then dd’ing the
1.44M off to a file to be used for the CD boot image. The rest of it was
mostly just trial & error to get everything just right. There is some
useful info in the QNX Knowledge Base. Oh, and watch out for symbolic
links
when making the CD file system image. If you want to have a fully working
OS on the bootable CD, use the -r (Rockwell option). Otherwise, just make
a
file system with the basic utilities you’ll need for accessing the hard
drive, creating your partitions and pax’ing the rest of your install into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very promising… I
can’t foresee any showstoppers, once you know how to get a bootable CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on QNX4.24
with
Photon. I need a way to copy our entire OS image(including applications)
to
the hard disk of the software control. I thought of a method but wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is our
service people need an easy way to install our developed systems.

Thank you,

Shashank



\

Sorry, it’s at ftp://ftp.qnx.com in /usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:aufbu6$nh$1@inn.qnx.com

Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …
Yes it’s feasible. I installed a system a couple of weeks ago using
this
exact same methodology. It was a 4.25E OS version though… so, don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then dd’ing
the
1.44M off to a file to be used for the CD boot image. The rest of it
was
mostly just trial & error to get everything just right. There is some
useful info in the QNX Knowledge Base. Oh, and watch out for symbolic
links
when making the CD file system image. If you want to have a fully
working
OS on the bootable CD, use the -r (Rockwell option). Otherwise, just
make
a
file system with the basic utilities you’ll need for accessing the hard
drive, creating your partitions and pax’ing the rest of your install
into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the
basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very promising… I
can’t foresee any showstoppers, once you know how to get a bootable CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on QNX4.24
with
Photon. I need a way to copy our entire OS image(including
applications)
to
the hard disk of the software control. I thought of a method but
wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is our
service people need an easy way to install our developed systems.

Thank you,

Shashank





\

Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how to
use mkisofs?

Thank you,
Shashank

“Rob” <rob@spamyouself.com> wrote in message
news:aufepd$3o0$1@inn.qnx.com

Sorry, it’s at > ftp://ftp.qnx.com > in /usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:aufbu6$nh$> 1@inn.qnx.com> …
Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …
Yes it’s feasible. I installed a system a couple of weeks ago using
this
exact same methodology. It was a 4.25E OS version though… so, don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD
bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then dd’ing
the
1.44M off to a file to be used for the CD boot image. The rest of it
was
mostly just trial & error to get everything just right. There is some
useful info in the QNX Knowledge Base. Oh, and watch out for symbolic
links
when making the CD file system image. If you want to have a fully
working
OS on the bootable CD, use the -r (Rockwell option). Otherwise, just
make
a
file system with the basic utilities you’ll need for accessing the
hard
drive, creating your partitions and pax’ing the rest of your install
into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the
basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very promising…
I
can’t foresee any showstoppers, once you know how to get a bootable CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on
QNX4.24
with
Photon. I need a way to copy our entire OS image(including
applications)
to
the hard disk of the software control. I thought of a method but
wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the
    hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is
our
service people need an easy way to install our developed systems.

Thank you,

Shashank







\

Shashank,
you could use mkisofs if you can figure out how to get it to work (something I
have yet to have the time to do) or you could just make a bootable floppy disk
that will mount the qnx filesystem and cd.

I have done just such an installation cd for our company here. I first took a
machine with the exact setup I wanted, then tarred the file system and copied
that file onto a windows machine where I burned it onto a cd. ( be careful as
you need to make the file name 8.3 if you want QNX to see it after )

Then on the boot disk I ask a few questions, like node number, type of network
card, etc. to setup a custom sysinit, fdisk the disk to make the partition
whatever size they want (assuming it’s large enough for the data) then just
untar the entire file to the new partition and reboot.

The other option, though this might not be feasible, is to make a boot disk that
loads qnx and some network drivers, then downloads all the necessary files of
your network, or off the net. I have used this for some of our smaller machines
and it works quite well. It keeps you from making new cd’s all the time, and
informing people of updates, they just follow the same procedure each time
without knowing if anything has changed.

Shashank wrote:

We make software controls for machines. Our development is on QNX4.24 with
Photon. I need a way to copy our entire OS image(including applications) to
the hard disk of the software control. I thought of a method but wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the hard drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is our
service people need an easy way to install our developed systems.

Thank you,

Shashank

Shashank wrote:

Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how to
use mkisofs?

mkisofs can be use to create an iso image that you can use to burn onto
the CD. mkisofs cannot burn the image you must use anoter operating
system to do that as QNX4 doesn’t support CD burning.

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:aufepd$3o0$> 1@inn.qnx.com> …

Sorry, it’s at > ftp://ftp.qnx.com > in /usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:aufbu6$nh$> 1@inn.qnx.com> …

Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …

Yes it’s feasible. I installed a system a couple of weeks ago using

this

exact same methodology. It was a 4.25E OS version though… so, don’t

quote

me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD

bootable.

We

ended up making a bootable floppy w/ a CD .boot on it and then dd’ing

the

1.44M off to a file to be used for the CD boot image. The rest of it

was

mostly just trial & error to get everything just right. There is some
useful info in the QNX Knowledge Base. Oh, and watch out for symbolic

links

when making the CD file system image. If you want to have a fully

working

OS on the bootable CD, use the -r (Rockwell option). Otherwise, just

make

a

file system with the basic utilities you’ll need for accessing the

hard

drive, creating your partitions and pax’ing the rest of your install

into

place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the

basic

method you outlined below does work and it is how we’re planning to

install

&/or update our production systems. So far it looks very promising…

I

can’t foresee any showstoppers, once you know how to get a bootable CD

built

and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …

We make software controls for machines. Our development is on

QNX4.24

with

Photon. I need a way to copy our entire OS image(including

applications)

to

the hard disk of the software control. I thought of a method but

wasn’t

sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the

hard

drive

of the control.

  1. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is

our

service people need an easy way to install our developed systems.

Thank you,

Shashank







\

Shashank <sbalijepalli@precitech.com> wrote:

Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how to
use mkisofs?

cd source
mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c …/boot.catalog -o …/cd.iso .

Thank you,
Shashank

Thanks immensly Andy, I don’t know about shashank, but that will certainly help
me.

cd source
mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c …/boot.catalog -o …/cd.iso .

Hi Andy,
I am still a little confused with the command that you sent me. I tried
creating an image of the /usr directory on my hard drive.

…/mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c
…/boot.catalog -o…/cd.iso /usr

  1. What are El torito CD’s ?
  2. Does boot.img have to be exactly the size of a
    1.2 , 1.44 , or 2.88 meg CD.?
  3. After running the command, it says the boot catalog was not found… Do i
    have to create a boot.catalog?
  4. The size of the iso image cd.iso is always 30K even though i create an
    image of the entire /usr directory?

I appreciate all your help.
Thanks,
Shashank

<andy@microstep-mis.com> wrote in message
news:av3n7c$9mv$1@charon.microstep-mis.sk

Shashank <> sbalijepalli@precitech.com> > wrote:
Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there
isn’t
much information on this utility. I have never before burned data to a
CD.
Do I need some special software to do that and could someone tell me how
to
use mkisofs?

cd source
mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c …/boot.catalog -o
…/cd.iso .

Thank you,
Shashank

Hi,
I hope someone can help with my previous posting.

Thanks,
Shashank

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:av1nbs$s5s$1@inn.qnx.com

Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there
isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how
to
use mkisofs?

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:aufepd$3o0$> 1@inn.qnx.com> …
Sorry, it’s at > ftp://ftp.qnx.com > in
/usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:aufbu6$nh$> 1@inn.qnx.com> …
Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …
Yes it’s feasible. I installed a system a couple of weeks ago using
this
exact same methodology. It was a 4.25E OS version though… so,
don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD
bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then
dd’ing
the
1.44M off to a file to be used for the CD boot image. The rest of
it
was
mostly just trial & error to get everything just right. There is
some
useful info in the QNX Knowledge Base. Oh, and watch out for
symbolic
links
when making the CD file system image. If you want to have a fully
working
OS on the bootable CD, use the -r (Rockwell option). Otherwise,
just
make
a
file system with the basic utilities you’ll need for accessing the
hard
drive, creating your partitions and pax’ing the rest of your install
into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the
basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very
promising…
I
can’t foresee any showstoppers, once you know how to get a bootable
CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on
QNX4.24
with
Photon. I need a way to copy our entire OS image(including
applications)
to
the hard disk of the software control. I thought of a method but
wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the
    hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is
our
service people need an easy way to install our developed systems.

Thank you,

Shashank









\

Hi,
I was trying to create a bootable CD. As someone suggested, I boot from a
floppy and then “dd” a CD .boot file from floppy to CD. I know I am wrong
because I fail to understand how I could copy a file to a CD. Isn’t the CD
filesystem read-only. Someone please help.

Thank you,
Shashank

“Shashank” <sbalijepalli@precitech.com> wrote in message
news:av1nbs$s5s$1@inn.qnx.com

Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there
isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how
to
use mkisofs?

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:aufepd$3o0$> 1@inn.qnx.com> …
Sorry, it’s at > ftp://ftp.qnx.com > in
/usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:aufbu6$nh$> 1@inn.qnx.com> …
Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …
Yes it’s feasible. I installed a system a couple of weeks ago using
this
exact same methodology. It was a 4.25E OS version though… so,
don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD
bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then
dd’ing
the
1.44M off to a file to be used for the CD boot image. The rest of
it
was
mostly just trial & error to get everything just right. There is
some
useful info in the QNX Knowledge Base. Oh, and watch out for
symbolic
links
when making the CD file system image. If you want to have a fully
working
OS on the bootable CD, use the -r (Rockwell option). Otherwise,
just
make
a
file system with the basic utilities you’ll need for accessing the
hard
drive, creating your partitions and pax’ing the rest of your install
into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the
basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very
promising…
I
can’t foresee any showstoppers, once you know how to get a bootable
CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on
QNX4.24
with
Photon. I need a way to copy our entire OS image(including
applications)
to
the hard disk of the software control. I thought of a method but
wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the
    hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is
our
service people need an easy way to install our developed systems.

Thank you,

Shashank









\

In article <avc5bn$dkv$1@inn.qnx.com>, Shashank wrote:

Hi Andy,
I am still a little confused with the command that you sent me. I tried
creating an image of the /usr directory on my hard drive.

./mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c
…/boot.catalog -o…/cd.iso /usr

  1. What are El torito CD’s ?

A bootable CD.
This isn’t exactly correct, but you get the idea…
Since the CD file systems do not allow for booting, ( there’s no
boot sector per se’ on a CD ) an El Torito uses a floppy image
to boot from, mounting the root system from the CD file system.
In essence, the CD behaves exactly as a floppy for booting, and so an
image of a bootable floppy is used to initiate the boot.
It’s very much the same as if you actually DID boot a floppy, with
the root file system mounted from the CD.

  1. Does boot.img have to be exactly the size of a
    1.2 , 1.44 , or 2.88 meg CD.?

No, but it must be able to be recognised by the system bios as if
it were a floppy.

  1. After running the command, it says the boot catalog was not found… Do i
    have to create a boot.catalog?
  2. The size of the iso image cd.iso is always 30K even though i create an
    image of the entire /usr directory?

Those questions I can’t answer.
Myself, I tend to use various scripts to build these things, rather than
run mkisofs from a command line.

The man page for mkisofs is on-line. Just do a google search for mkisofs.
Failing that, I can e-mail you a copy…


Cowboy

There is Jackson standing like a stone wall. Let us determine to die,
and we will conquer. Follow me.
– General Barnard E. Bee (CSA)

Hi ,
Thanks for the information. I could successfully
create a floppy boot image using the dd command

dd if=/dev/fd0 of=boot.img bs=10k count=144

and then I created an iso image as follows

mkisofs -v -A QNX -l -L -r -d -b boot.img -c boot.catalog -o cd.iso .
and this worked fine too.

Then I copied the iso image cd.iso to my windows machine and burned it onto
a CD. But it does not create a boot CD? Is there a special way to burn data
to a CD that is to be bootable?


Thanks,
Shashank


“Cowboy” <curt@gwis.com> wrote in message
news:slrnb1ko39.k3.curt@ctx.cowboy.loc

In article <avc5bn$dkv$> 1@inn.qnx.com> >, Shashank wrote:
Hi Andy,
I am still a little confused with the command that you sent me. I tried
creating an image of the /usr directory on my hard drive.

./mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c
…/boot.catalog -o…/cd.iso /usr

  1. What are El torito CD’s ?

A bootable CD.
This isn’t exactly correct, but you get the idea…
Since the CD file systems do not allow for booting, ( there’s no
boot sector per se’ on a CD ) an El Torito uses a floppy image
to boot from, mounting the root system from the CD file system.
In essence, the CD behaves exactly as a floppy for booting, and so an
image of a bootable floppy is used to initiate the boot.
It’s very much the same as if you actually DID boot a floppy, with
the root file system mounted from the CD.

  1. Does boot.img have to be exactly the size of a
    1.2 , 1.44 , or 2.88 meg CD.?

No, but it must be able to be recognised by the system bios as if
it were a floppy.

  1. After running the command, it says the boot catalog was not found…
    Do i
    have to create a boot.catalog?
  2. The size of the iso image cd.iso is always 30K even though i create an
    image of the entire /usr directory?

Those questions I can’t answer.
Myself, I tend to use various scripts to build these things, rather than
run mkisofs from a command line.

The man page for mkisofs is on-line. Just do a google search for mkisofs.
Failing that, I can e-mail you a copy…


Cowboy

There is Jackson standing like a stone wall. Let us determine to die,
and we will conquer. Follow me.
– General Barnard E. Bee (CSA)

In article <avemsh$bie$1@inn.qnx.com>, Shashank wrote:

Hi,
I was trying to create a bootable CD. As someone suggested, I boot from a
floppy and then “dd” a CD .boot file from floppy to CD. I know I am wrong
because I fail to understand how I could copy a file to a CD. Isn’t the CD
filesystem read-only. Someone please help.

There’s a real good CD burning HOW-TO on the web.
It’s written for Linux, but the principals apply.

Unfortunately, I have it bookmarked on another machine that’s
about 2053 miles away, else I’ld give it to you directly.

If memory serves, do a google search for “CD-R Linux” and it’s
one of the first 2 or 5 of the 2000 results google will find.


Cowboy

Meade’s Maxim:
Always remember that you are absolutely unique, just like everyone else.

In article <avf83l$lo$1@inn.qnx.com>, Shashank wrote:

Hi ,
Thanks for the information. I could successfully
create a floppy boot image using the dd command

dd if=/dev/fd0 of=boot.img bs=10k count=144

and then I created an iso image as follows

mkisofs -v -A QNX -l -L -r -d -b boot.img -c boot.catalog -o cd.iso .
and this worked fine too.

Then I copied the iso image cd.iso to my windows machine and burned it onto
a CD. But it does not create a boot CD? Is there a special way to burn data
to a CD that is to be bootable?

Yes, but I don’t know the details, as the scripts I usually use
do that for me, and it’s been so long since I did all the
commands directly, I just don’t remember.

Your windows CDR software should have a menu item somewhere
to make a bootable CD.


Cowboy

Oliver’s Law:
Experience is something you don’t get until just after you need it.

Shashank <sbalijepalli@precitech.com> wrote:

Hi ,
Thanks for the information. I could successfully
create a floppy boot image using the dd command

dd if=/dev/fd0 of=boot.img bs=10k count=144

and then I created an iso image as follows

mkisofs -v -A QNX -l -L -r -d -b boot.img -c boot.catalog -o cd.iso .
and this worked fine too.

Then I copied the iso image cd.iso to my windows machine and burned it onto
a CD. But it does not create a boot CD? Is there a special way to burn data
to a CD that is to be bootable?

CD must be “closed” (don’t use “close section and leave CD open” or someting like this)
That’s enough AFAIK.

Thanks,
Shashank



“Cowboy” <> curt@gwis.com> > wrote in message
news:> slrnb1ko39.k3.curt@ctx.cowboy.loc> …
In article <avc5bn$dkv$> 1@inn.qnx.com> >, Shashank wrote:
Hi Andy,
I am still a little confused with the command that you sent me. I tried
creating an image of the /usr directory on my hard drive.

./mkisofs -v -A QNX -l -L -r -d -b …/boot.img -c
…/boot.catalog -o…/cd.iso /usr

  1. What are El torito CD’s ?

A bootable CD.
This isn’t exactly correct, but you get the idea…
Since the CD file systems do not allow for booting, ( there’s no
boot sector per se’ on a CD ) an El Torito uses a floppy image
to boot from, mounting the root system from the CD file system.
In essence, the CD behaves exactly as a floppy for booting, and so an
image of a bootable floppy is used to initiate the boot.
It’s very much the same as if you actually DID boot a floppy, with
the root file system mounted from the CD.

  1. Does boot.img have to be exactly the size of a
    1.2 , 1.44 , or 2.88 meg CD.?

No, but it must be able to be recognised by the system bios as if
it were a floppy.

  1. After running the command, it says the boot catalog was not found…
    Do i
    have to create a boot.catalog?
  2. The size of the iso image cd.iso is always 30K even though i create an
    image of the entire /usr directory?

Those questions I can’t answer.
Myself, I tend to use various scripts to build these things, rather than
run mkisofs from a command line.

The man page for mkisofs is on-line. Just do a google search for mkisofs.
Failing that, I can e-mail you a copy…


Cowboy

There is Jackson standing like a stone wall. Let us determine to die,
and we will conquer. Follow me.
– General Barnard E. Bee (CSA)

Thanks for all the feedback to my questions regarding the CD boot. I could
successfully burn a CD image. Then I boot from the CD but somehow doesn’t
seem to find the sysinit file. It says:

“Unable to open system initialization file: no such file or directory”



Does any one know what the problem could be?



Thanks again,

Shashank



“Shashank” <sbalijepalli@precitech.com> wrote in message
news:av1nbs$s5s$1@inn.qnx.com

Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there
isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how
to
use mkisofs?

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:aufepd$3o0$> 1@inn.qnx.com> …
Sorry, it’s at > ftp://ftp.qnx.com > in
/usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:aufbu6$nh$> 1@inn.qnx.com> …
Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …
Yes it’s feasible. I installed a system a couple of weeks ago using
this
exact same methodology. It was a 4.25E OS version though… so,
don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD
bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then
dd’ing
the
1.44M off to a file to be used for the CD boot image. The rest of
it
was
mostly just trial & error to get everything just right. There is
some
useful info in the QNX Knowledge Base. Oh, and watch out for
symbolic
links
when making the CD file system image. If you want to have a fully
working
OS on the bootable CD, use the -r (Rockwell option). Otherwise,
just
make
a
file system with the basic utilities you’ll need for accessing the
hard
drive, creating your partitions and pax’ing the rest of your install
into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the
basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very
promising…
I
can’t foresee any showstoppers, once you know how to get a bootable
CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on
QNX4.24
with
Photon. I need a way to copy our entire OS image(including
applications)
to
the hard disk of the software control. I thought of a method but
wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the
    hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is
our
service people need an easy way to install our developed systems.

Thank you,

Shashank









\

What does your image file look like? Here is an image and sysinit file
that work for cd booting on my qnx PC. The image needs to identify your
CD and then use Is9660fsys to mount it as /. Also, it needs ramdisk
space (Fsys -r 4096)

Image file:

sys/boot
$ boot -v

sys/Proc32
$ Proc32 -l 1

sys/Slib32
$ Slib32

sys/Slib16
$ Slib16

/bin/Fsys
$ Fsys -r 4096

/bin/Fsys.eide
$ Fsys.eide fsys -Ndsk1 -n5=cd1. eide -a170 -i15

/bin/Iso9660fsys
$ Iso9660fsys /=/dev/cd1.0

/bin/sinit
$ sinit -i /etc/config/sysinit -s /bin/esh TERM=qnxm

Sysinit file:

Dev &
Dev.con -n 4 -O 256 &
reopen /dev/con1
/bin/prefix -A /dev/console=/dev/con1
export PATH=/ram:.:/bin:/usr/bin
export HOME=///
dinit /dev/ram
mount /dev/ram /ram
prefix -A /pipe=/ram
fcat /util.tar.F | pax -vr
Fsys.aha8scsi &
cp /bin/dinit /bin/mount /bin/pax /bin/prefix /bin/Iso9660fsys /ram
cp /bin/Fsys.aha8scsi /bin/umount /bin/sin /bin/ls /bin/slay /ram
cp /bin/esh /ram/sh
cp /bin/fcat /ram/melt
melt -z </etc/logo.F
rtc hw
echo Welcome to QNX 4.25E
ontty /dev/con1 /bin/esh


Once you create the image file, copy it to a qnx formatted floppy as
…boot Then do a ‘cp /dev/fd0 boot.image’ command. Place this
boot.image file in the directory where all the other files to be added
to the CD are. It’s important to add some utils that you’d like to use
as well in the ramdisk space. For example:
on a qnx machine enter:
mkdir ./ram
cp -p /bin/Pipe ./ram
cp -p /bin/fdisk ./ram
cp -p /bin/use ./ram
add any utility you wish to use, just dont exceed the ramspace that you
designated in the image (Fsys -r 4096).
Then enter 'find ./ram/* | pax -x cpio -vw | freeze > util.tar.F
copy util.tar.F to the directory with all your other cd files.

Basically, you need to add to the cd image all the utils/files you will
need to run your sysinit file and anything else you’d like to run on
boot up and after. This QNX site also explains.
http://www.qnx.com/support/sd_bok/solution.qnx?10345

Then enter ‘mkisofs -o cdimagename.iso -RalL -b boot.image
/your/cd&image/files’
Copy this image file to a windows machine that has a cd-burner. Then,
click on the file and burn away.


Good luck!!
delia


Shashank wrote:

Thanks for all the feedback to my questions regarding the CD boot. I could
successfully burn a CD image. Then I boot from the CD but somehow doesn’t
seem to find the sysinit file. It says:

“Unable to open system initialization file: no such file or directory”

Does any one know what the problem could be?

Thanks again,

Shashank

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:av1nbs$s5s$> 1@inn.qnx.com> …
Hi,
I have a CD R-W drive and I downloaded the mkisofs utility. But there
isn’t
much information on this utility. I have never before burned data to a CD.
Do I need some special software to do that and could someone tell me how
to
use mkisofs?

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:aufepd$3o0$> 1@inn.qnx.com> …
Sorry, it’s at > ftp://ftp.qnx.com > in
/usr/free/qnx4/gnu/mkisofs-1.11.1.tgz
There’s also a .readme

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:aufbu6$nh$> 1@inn.qnx.com> …
Can someone tell me where the “mkisofsys” utility is located on
ftp://quics.qnx.com> .

Thank you,
Shashank

“Rob” <> rob@spamyouself.com> > wrote in message
news:au7bqo$9m4$> 1@inn.qnx.com> …
Yes it’s feasible. I installed a system a couple of weeks ago using
this
exact same methodology. It was a 4.25E OS version though… so,
don’t
quote
me on whether 4.24 will work > :wink: > You’ll need mkisofsys (I found it
somewhere on > ftp://qnx.com > ) The real trick is making the CD
bootable.
We
ended up making a bootable floppy w/ a CD .boot on it and then
dd’ing
the
1.44M off to a file to be used for the CD boot image. The rest of
it
was
mostly just trial & error to get everything just right. There is
some
useful info in the QNX Knowledge Base. Oh, and watch out for
symbolic
links
when making the CD file system image. If you want to have a fully
working
OS on the bootable CD, use the -r (Rockwell option). Otherwise,
just
make
a
file system with the basic utilities you’ll need for accessing the
hard
drive, creating your partitions and pax’ing the rest of your install
into
place on the hard drive.

To be honest, we haven’t quite perfected everything yet… but, the
basic
method you outlined below does work and it is how we’re planning to
install
&/or update our production systems. So far it looks very
promising…
I
can’t foresee any showstoppers, once you know how to get a bootable
CD
built
and working.

-Rob

“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:au74km$2bp$> 1@inn.qnx.com> …
We make software controls for machines. Our development is on
QNX4.24
with
Photon. I need a way to copy our entire OS image(including
applications)
to
the hard disk of the software control. I thought of a method but
wasn’t
sure if it was the best way.

  1. Copy the OS image onto a writeable CD.

  2. Boot from the CD on the control and move the contents to the
    hard
    drive
    of the control.

  3. Boot from the Hard drive of the Control.

Is this a feasible option or is there a better way? The reason is
our
service people need an easy way to install our developed systems.

Thank you,

Shashank









\