Skewered by PKG FILE SYSTEM again

I have an RTP system that has been running fine for quite
some time. Today I was fooling around with the pkg-manager.
I downloaded some recent stuff. After it was done it
restarted the Pkg file system and I could no longer access
any program. I reboot and found that the system would
hang after letting me know:

Unable to start devc-con

When this happened before I was able to reboot, press
space bar, and pick an option that would let me go
back to a previous package manager configuration.

Now when I try this, I get the menu, but pressing F8
or F1 merely cause the text “F8” or “F1” to be printed
on the screen. No matter what I end up with

Unable to start devc-con

I tried rebooting from the CD-ROM, which works to a point.
I finally get to where it wants to install the system.
My choices seem to be delete the existing partition and
start over, or it fails.

Boo Hoo. :frowning:.

Any suggestions?


Mitchell Schoenbrun --------- maschoen@pobox.com

Previously, Mitchell Schoenbrun wrote in qdn.public.qnxrtp.installation:

Well clearly the boot menu is designed to help get around
the bad package configuration problem. What I don’t
understand is why the menu doesn’t take input properly. I
know that I made a new .boot file between these occurances
when I got the latest update. Could the latest boot script
processor be messed up? I clearly knows what I’m pressing
as it throws it up on the screen.

The F-keys are cumulative in the boot screen. It won’t actually
continue to boot until you have chosen zero or more F keys and then
pressed return. Are you pressing return?

Cheers,
Andrew

Mitchell Schoenbrun <maschoen@pobox.com> wrote:

I have an RTP system that has been running fine for quite
some time. Today I was fooling around with the pkg-manager.
I downloaded some recent stuff. After it was done it
restarted the Pkg file system and I could no longer access
any program. I reboot and found that the system would
hang after letting me know:

Unable to start devc-con

When this happened before I was able to reboot, press
space bar, and pick an option that would let me go
back to a previous package manager configuration.

Now when I try this, I get the menu, but pressing F8
or F1 merely cause the text “F8” or “F1” to be printed
on the screen. No matter what I end up with

Unable to start devc-con

I tried rebooting from the CD-ROM, which works to a point.
I finally get to where it wants to install the system.
My choices seem to be delete the existing partition and
start over, or it fails.

I’ve seen this happen when the package installer has created
a bad package configuration for the package filesystem, which
didn’t include the core package. This has happened to the
guy who does the package installer so he will hopefully
comment more on this.

I’ll see about posting a little rescue image that I’ve created
that helps you to get around in your system. You might also
try dropping into a shell after the filesystems are mounted
(ie F5) and then poking around before the package filesystem
is started. Typing ‘exit’ will then start the package
filesystem and should return you to a shell … does it?

Thomas

Previously, Thomas Fletcher wrote in qdn.public.qnxrtp.installation:

Now when I try this, I get the menu, but pressing F8
or F1 merely cause the text “F8” or “F1” to be printed
on the screen. No matter what I end up with

I’ve seen this happen when the package installer has created
a bad package configuration for the package filesystem, which
didn’t include the core package. This has happened to the
guy who does the package installer so he will hopefully
comment more on this.

Well clearly the boot menu is designed to help get around
the bad package configuration problem. What I don’t
understand is why the menu doesn’t take input properly. I
know that I made a new .boot file between these occurances
when I got the latest update. Could the latest boot script
processor be messed up? I clearly knows what I’m pressing
as it throws it up on the screen.

I’ll see about posting a little rescue image that I’ve created
that helps you to get around in your system.

rescue image would be good.

You might also
try dropping into a shell after the filesystems are mounted
(ie F5) and then poking around before the package filesystem
is started.

Pls re-read. I can’t get into F5 because all I get is
“F5” on the screen, but it doesn’t take. The system
always hangs.

Typing ‘exit’ will then start the package
filesystem and should return you to a shell … does it?

No, none of the F? keys do anything other than print on
the screen.

I’m out of town until Wednesday so no rush.

Thanks,

Mitchell Schoenbrun --------- maschoen@pobox.com

Have you tried to hit ENTER after you typed all F keys you want?

“Mitchell Schoenbrun” <maschoen@pobox.com> wrote in message
news:Voyager.010209101350.206A@schoenbrun.com

Previously, Thomas Fletcher wrote in qdn.public.qnxrtp.installation:

Now when I try this, I get the menu, but pressing F8
or F1 merely cause the text “F8” or “F1” to be printed
on the screen. No matter what I end up with

I’ve seen this happen when the package installer has created
a bad package configuration for the package filesystem, which
didn’t include the core package. This has happened to the
guy who does the package installer so he will hopefully
comment more on this.

Well clearly the boot menu is designed to help get around
the bad package configuration problem. What I don’t
understand is why the menu doesn’t take input properly. I
know that I made a new .boot file between these occurances
when I got the latest update. Could the latest boot script
processor be messed up? I clearly knows what I’m pressing
as it throws it up on the screen.

I’ll see about posting a little rescue image that I’ve created
that helps you to get around in your system.

rescue image would be good.

You might also
try dropping into a shell after the filesystems are mounted
(ie F5) and then poking around before the package filesystem
is started.

Pls re-read. I can’t get into F5 because all I get is
“F5” on the screen, but it doesn’t take. The system
always hangs.

Typing ‘exit’ will then start the package
filesystem and should return you to a shell … does it?

No, none of the F? keys do anything other than print on
the screen.

I’m out of town until Wednesday so no rush.

Thanks,

Mitchell Schoenbrun --------- > maschoen@pobox.com

Ok now both Mitchell and I are in dark cells with no windows or
doors… i.e. I’ve got the same problem w/ devc_con not starting…

Using the F4, F6 & F7 combo I can get to a shell and from there have
discovered that both my neutrino partitions have been mounted as
read-only. … and there is no /tmp and that a lot of things complain
if /tmp is not present (grin) - photon cannot be started… so no
package manager…

BTW: In this mode devc-con -n4 is invoked and is working - this this
because of the safe mode package being invoked? I have tried to
choose other options but the lower (F1, 2, etc) all end up with the
devc-con error and then a hang…

I got stuck here while trying to create a system that had most of the
tools and stuff in a repository on my second (larger) partition.
The first partition is only 500 meg and I installed the “core” stuff
in the repository there. all the other stuff went to a repository on
(in my case) /fs/hd1-qnx4. This seemed to work until I re-booted…
Is this on of these things where it needs something from the second
repository and it hasn’t been mounted yet?

Any ideas why the partitions are mounted read-only – is this part of
safe mode. The option to mount the partiton as read-write did not
seem to do anything…

BTW I also get the following message at enumeration time:

Reserve RMEM failed
Range check failed (IO) - Dev 7111 - Vend 8086 - Class 10180 Addr ffa0

  • size 10
    Range check failed (MEM) - dev 14 - Vend 1011 -Class 20000 Addr
    febfff80 - size 80

Needless to say I did not get this in the previous release and also
that before I started the repository thing, I got this message under
QNX6 but it didn’t seem to stop anything from working… From the
previous posts on this problem the standard line is that this is a pci
enumerator problem and will be fixed “in the next release” is this in
any way causing the devc-con problem?

Thanks - I have a feeling I’m about to further my education on the
boot process and package manager…

-Bill


On Fri, 9 Feb 2001 10:13:50 -0800, Mitchell Schoenbrun
<maschoen@pobox.com> wrote:

Previously, Thomas Fletcher wrote in qdn.public.qnxrtp.installation:

Now when I try this, I get the menu, but pressing F8
or F1 merely cause the text “F8” or “F1” to be printed
on the screen. No matter what I end up with

I’ve seen this happen when the package installer has created
a bad package configuration for the package filesystem, which
didn’t include the core package. This has happened to the
guy who does the package installer so he will hopefully
comment more on this.

Well clearly the boot menu is designed to help get around
the bad package configuration problem. What I don’t
understand is why the menu doesn’t take input properly. I
know that I made a new .boot file between these occurances
when I got the latest update. Could the latest boot script
processor be messed up? I clearly knows what I’m pressing
as it throws it up on the screen.

I’ll see about posting a little rescue image that I’ve created
that helps you to get around in your system.

rescue image would be good.

You might also
try dropping into a shell after the filesystems are mounted
(ie F5) and then poking around before the package filesystem
is started.

Pls re-read. I can’t get into F5 because all I get is
“F5” on the screen, but it doesn’t take. The system
always hangs.

Typing ‘exit’ will then start the package
filesystem and should return you to a shell … does it?

No, none of the F? keys do anything other than print on
the screen.

I’m out of town until Wednesday so no rush.

Thanks,

Mitchell Schoenbrun --------- > maschoen@pobox.com

William M. Derby Jr. <derbyw@derbtronics.com> wrote:

Ok now both Mitchell and I are in dark cells with no windows or
doors… i.e. I’ve got the same problem w/ devc_con not starting…

Using the F4, F6 & F7 combo I can get to a shell and from there have
discovered that both my neutrino partitions have been mounted as
read-only. … and there is no /tmp and that a lot of things complain
if /tmp is not present (grin) - photon cannot be started… so no
package manager…

Close your eyes … use the force … feel the energy flowing
around you, surrounding you … understand there is life without
Photon =;-)

Now onto attempting to get a recovery going. It is standard
practice for the diskboot routine to mount in the base repository
read-only (after all the repositories are meant to be read
only) if you are using the Windows installation. In the partition
installation it hunts around and mounts the appropriate partition
at / since that partition actually contains all of the data. Other
partitions it mounts under /fs/…

BTW: In this mode devc-con -n4 is invoked and is working - this this
because of the safe mode package being invoked? I have tried to
choose other options but the lower (F1, 2, etc) all end up with the
devc-con error and then a hang…

Yes, in the “safe” configuration, devc-con is extracted from deep
within a core package (it needs to be run before the package filesystem
runs so that you can actually get a shell), otherwise it is invoked
after the package installer is run with its default configuration.
Again it looks to me like the core package is missing from your
package filesystem configuration … either by your own changes or
because of the bug in our installer.

In any case I’ve created a “rescue” floppy disk image. The floppy
image (which you can just raw dump to a floppy) and the source which
it was generated from (so that someone else can either improve it,
or change it to suit their own needs) are both located at:

http://staff.qnx.com/~thomasf/nto.html

This will allow you to boot and at least have some basic tools to
poke around at your system with. What I’m guessing you will have
to do is to look at the file:

/etc/system/package/packages

and see if there is a core entry. This entry should be located
in one of the package repository paths specified in that same
file … when the package filesystem is run (which is after the
filesystems are mounted). You will probably have to poke around
and see to see what the package names are. You will also have
to manually start the devb-eide driver and manually mount your
partitions to do this. Once your partitions are mounted you
can change your path to make things easier.

In terms of not having a /tmp directory. Once you have access to
ln (which is on the floppy) you can prefix /tmp to /dev/shmem.

I got stuck here while trying to create a system that had most of the
tools and stuff in a repository on my second (larger) partition.
The first partition is only 500 meg and I installed the “core” stuff
in the repository there. all the other stuff went to a repository on
(in my case) /fs/hd1-qnx4. This seemed to work until I re-booted…
Is this on of these things where it needs something from the second
repository and it hasn’t been mounted yet?

You will have to check the package configuration file to make sure
that the repositories include this new path. For some reason I’m
guessing that they don’t. It should be easy to add them by hand.

BTW I also get the following message at enumeration time:

Reserve RMEM failed
Range check failed (IO) - Dev 7111 - Vend 8086 - Class 10180 Addr ffa0

  • size 10
    Range check failed (MEM) - dev 14 - Vend 1011 -Class 20000 Addr
    febfff80 - size 80

Needless to say I did not get this in the previous release and also
that before I started the repository thing, I got this message under
QNX6 but it didn’t seem to stop anything from working… From the
previous posts on this problem the standard line is that this is a pci
enumerator problem and will be fixed “in the next release” is this in
any way causing the devc-con problem?

This is a known issue and while it looks alarming, it is more
feedback information so we can tune the boot process for all of
those machines out there that we don’t have access to. Thanks
for reporting it. It is not related to the devc-con problem (fortunately?
unfortunately?)

Thanks - I have a feeling I’m about to further my education on the
boot process and package manager…

It is new for everyone, and takes a bit of time to get your head
wrapped around … mostly just the fact that the real files are
located in a longer path than people are used to.

Give the rescue disk a go and see what you see. I would also
recomment that you re-read the package filesystem article (the
one by me, not the package packaging article by Bill) to see what
files are being referenced and what to expect in them.


On Fri, 9 Feb 2001 10:13:50 -0800, Mitchell Schoenbrun
maschoen@pobox.com> > wrote:

Previously, Thomas Fletcher wrote in qdn.public.qnxrtp.installation:

Now when I try this, I get the menu, but pressing F8
or F1 merely cause the text “F8” or “F1” to be printed
on the screen. No matter what I end up with

I’ve seen this happen when the package installer has created
a bad package configuration for the package filesystem, which
didn’t include the core package. This has happened to the
guy who does the package installer so he will hopefully
comment more on this.

Well clearly the boot menu is designed to help get around
the bad package configuration problem. What I don’t
understand is why the menu doesn’t take input properly. I
know that I made a new .boot file between these occurances
when I got the latest update. Could the latest boot script
processor be messed up? I clearly knows what I’m pressing
as it throws it up on the screen.

I’ll see about posting a little rescue image that I’ve created
that helps you to get around in your system.

rescue image would be good.

You might also
try dropping into a shell after the filesystems are mounted
(ie F5) and then poking around before the package filesystem
is started.

Pls re-read. I can’t get into F5 because all I get is
“F5” on the screen, but it doesn’t take. The system
always hangs.

Typing ‘exit’ will then start the package
filesystem and should return you to a shell … does it?

No, none of the F? keys do anything other than print on
the screen.

I’m out of town until Wednesday so no rush.

Thanks,

Mitchell Schoenbrun --------- > maschoen@pobox.com

Previously, Igor Kovalenko wrote in qdn.public.qnxrtp.installation:

Have you tried to hit ENTER after you typed all F keys you want?

Thank you all for your help. After about 5 hours of effort
my problem is solved. I have a lot of debriefing to go
over, which I hope will be helpful to QSSL. This should
probably generate at least a couple of database articles.


Point 1

First, to get to the heart of the matter, the error

Error starting devc-con

is caused by a very simple problem. Simply “devc-con” was not
in my boot image file. I don’t know how this occured, only that
I must of caused this somehow. I don’t recall any notice in
running mkifs.

Point 2

There appear to be two different menus running around. One
of them takes function key input, and I believe the newer,
takes numeric input. The function key input did sort of
work, however with the brain dead .boot file without
devc-con, it showed a number of strange behaviors. There
was some magical combination of F keys that would allow it
to get to a shell, I think F3,F4,F5,F6,F7 always worked.
Other combinations, such as just asking for a debug shell
did not work. I presume that some combinations rely on
devc-con being in the .boot image, and other get them from
the base package.

Once in the debug shell I found that by typing “exit” twice,
I would get a fairly substantial system running on the base
package. This allowed me to look around and eventually figure
out my problem. This was not before I tried to copy in a new
base package, thinking that it might have been corrupt. Somehow
in the process of copying and gunzip’ing it, I found myself
with a message indicating that it the base package was corrupt.
This is a nasty situation to be in which only the rescue diskette
helped get me out of. This leads me to…

Point 3

The rescue diskette works quite well once you understand how to make
it work. I guess if I only read the directions at the begining telling
me to “cat /bin/efsh.txt” or whatever, I would have saved a lot of time
and trouble. The key is to know that the loaded shell has some useful
built in commands:

eecho (echo)
els (ls)
ecp (cp)
emkdir (mkdir)
erm (rm)
ermdir (rmdir)

Knowing that the steps to get things going were straight forward:

  1. start the eide driver:

devb-eide

  1. look for the devices

els /dev

  1. Mount the devices

mount -t qnx4 /dev/hd0t79 /hd

mount -t cd /dev/cd0 /cd

This leads me to a somewhat subtle point. The distribution
cd-rom file /cd0/boot/fs/qnxbase.qfs.gz is unfortunately
gzip compressed. Because the rescue diskette did not have
gunzip on it, I had to use QNX 4 to gunzip the file, and
then Win/95 to burn a cd-r disk with it. I think that the
rescue diskette should either have gunzip, or better someday
leave qnxbase.qfs.gz uncompressed on the distribution
cd-rom.

In conclusion, from the worst state that I found myself into,
here is what I had to do.

  1. boot the rescue diskette
  2. mount my partition and the cd-rom drive
  3. copy the /boot/fs files to my /fs/hd0-qnx4-2/boot/fs diretory using ecp
  4. gunzip qnxbase.qfs.gz, which I needed to burn a cd-r to do
  5. reboot from the hard drive
  6. press the space bar at the right moment
  7. press F3,F4,F5,F6,F7 enter to get a prompt
    :sunglasses: type exit twice. This isn’t strictly necessary, however
    it simplified things
  8. cd’d to /fs/hd0-qnx4-2/boot
  9. Made a new build file and then created an image
  10. copied the image to /fs/hd0-qnx4-2/.boot
  11. reboot, again getting into the startup menu
  12. requested that a different package version be used
  13. Once Rtp and Photon were up and running I ran the package manager
    and re-activated all my packages.

Pshew!

A few minor notes.

At boot time, when waiting to press space bar, if I press it
too soon, all is lost. I just have to reboot and wait again
for the exact right moment. This is a minor annoyance.

The layout of the system is very confusing at first. Here’s
my current view. Everything from root “/” down should be
considered virtual except for what you mount yourself, or
which you find under /fs. If you need to change something,
don’t bother looking in, for example, /etc. Look instead in
/fs/hd0-qnx4-2/etc.

If you don’t see a file system in /fs, you need to run
mount. I wish that the help info from mount had some
examples, and listed more of the basic “types” such as
“qnx4” and “cd”. I wasted a lot of time figuring these out.

The message “error starting devc-con” would have been much
more helpful if it instead said something like:

Can’t find devc-con module in image file system.

Mitchell Schoenbrun --------- maschoen@pobox.com

Previously, Mitchell Schoenbrun wrote in qdn.public.qnxrtp.installation:

Well I seem to have one remaining serious problem. While
the system is up and running and looking mostly ok, I find
that my development tools, Phab and qcc are not visible nor
recoverable.

I’ve checked with the package file system, and all packages are
downloaded from QSSL and active. This is quite troubling.
I can’t find the Photon Development stuff anywhere. I’m guessing
that some configuration file somewhere is very mixed up, but I
have no idea which one.

Any help possible?

Thx



Mitchell Schoenbrun --------- maschoen@pobox.com

Mitchell Schoenbrun <maschoen@pobox.com> wrote:

Thank you all for your help. After about 5 hours of effort
my problem is solved. I have a lot of debriefing to go
over, which I hope will be helpful to QSSL. This should
probably generate at least a couple of database articles.

Anything that customers have to say about the product,
good or bad, is generally taken into consideration. Having
a nice itemized list like this certainly helps us decipher
things on our end.

Point 1

First, to get to the heart of the matter, the error

Error starting devc-con

is caused by a very simple problem. Simply “devc-con” was not
in my boot image file. I don’t know how this occured, only that
I must of caused this somehow. I don’t recall any notice in
running mkifs.

Point 2

There appear to be two different menus running around. One
of them takes function key input, and I believe the newer,
takes numeric input. The function key input did sort of
work, however with the brain dead .boot file without
devc-con, it showed a number of strange behaviors. There
was some magical combination of F keys that would allow it
to get to a shell, I think F3,F4,F5,F6,F7 always worked.
Other combinations, such as just asking for a debug shell
did not work. I presume that some combinations rely on
devc-con being in the .boot image, and other get them from
the base package.

Once in the debug shell I found that by typing “exit” twice,
I would get a fairly substantial system running on the base
package. This allowed me to look around and eventually figure
out my problem. This was not before I tried to copy in a new
base package, thinking that it might have been corrupt. Somehow
in the process of copying and gunzip’ing it, I found myself
with a message indicating that it the base package was corrupt.
This is a nasty situation to be in which only the rescue diskette
helped get me out of. This leads me to…

I will address Points 1 & 2 together. The diskboot and general
start-up configuration that is used for the January RTP version
is different than the configuration which was used for the
September RTP version. Several updates and changes were made,
mostly based on customer feedback. Just so that you know the
January RTP update is the one which contains the FX keys. The
January update also did not include devc-con as part of the
start-up image but rather fished it out of the core package
directly from the repository.

I have no comment about why this was changed, other than the
fact that it took up space in the image. As a result, when
your repositories were not able to be located things went a
little bit awry.

Point 3

The rescue diskette works quite well once you understand how to make
it work. I guess if I only read the directions at the begining telling
me to “cat /bin/efsh.txt” or whatever, I would have saved a lot of time
and trouble. The key is to know that the loaded shell has some useful
built in commands:

eecho (echo)
els (ls)
ecp (cp)
emkdir (mkdir)
erm (rm)
ermdir (rmdir)

Hmmm I guess that the message about the shell is not quite explicit
enough. How about:

Starting a fat embedded shell (fesh)
Basic commands which are built-in to the shell:
eecho (echo), els (ls), ecp (cp), erm (rm)
emkdir (mkdir), ermdir (rmdir)
cat /bin/fesh.txt, use fesh for more info

Knowing that the steps to get things going were straight forward:

  1. start the eide driver:

devb-eide

I could start this for you I suppose and have it automount just
the partitions, this way you don’t have to do it. I prefer to
do it myself but that is preference.

  1. look for the devices

els /dev

  1. Mount the devices

mount -t qnx4 /dev/hd0t79 /hd

mount -t cd /dev/cd0 /cd

This leads me to a somewhat subtle point. The distribution
cd-rom file /cd0/boot/fs/qnxbase.qfs.gz is unfortunately
gzip compressed. Because the rescue diskette did not have
gunzip on it, I had to use QNX 4 to gunzip the file, and
then Win/95 to burn a cd-r disk with it. I think that the
rescue diskette should either have gunzip, or better someday
leave qnxbase.qfs.gz uncompressed on the distribution
cd-rom.

Aha … good catch. I hadn’t run across this problem. I’ll
add gzip (and potentially pax/tar) to the lil’ rescue image.

In conclusion, from the worst state that I found myself into,
here is what I had to do.

  1. boot the rescue diskette
  2. mount my partition and the cd-rom drive
  3. copy the /boot/fs files to my /fs/hd0-qnx4-2/boot/fs diretory using ecp
  4. gunzip qnxbase.qfs.gz, which I needed to burn a cd-r to do
  5. reboot from the hard drive
  6. press the space bar at the right moment
  7. press F3,F4,F5,F6,F7 enter to get a prompt
    :sunglasses: > type exit twice. This isn’t strictly necessary, however
    it simplified things

Note: You should have received a message something along the
lines of “Filesystem have been mounted but the package filesystem
has not been started. Type exit to start the package filesystem”.

  1. cd’d to /fs/hd0-qnx4-2/boot
  2. Made a new build file and then created an image
  3. copied the image to /fs/hd0-qnx4-2/.boot
  4. reboot, again getting into the startup menu
  5. requested that a different package version be used
  6. Once Rtp and Photon were up and running I ran the package manager
    and re-activated all my packages.

Pshew!

A few minor notes.

At boot time, when waiting to press space bar, if I press it
too soon, all is lost. I just have to reboot and wait again
for the exact right moment. This is a minor annoyance.

I think that if you press the spacebar after you get the
“booting” message you should be fine, is this not the case
for you?

The layout of the system is very confusing at first. Here’s
my current view. Everything from root “/” down should be
considered virtual except for what you mount yourself, or
which you find under /fs. If you need to change something,
don’t bother looking in, for example, /etc. Look instead in
/fs/hd0-qnx4-2/etc.

If you don’t see a file system in /fs, you need to run
mount. I wish that the help info from mount had some
examples, and listed more of the basic “types” such as
“qnx4” and “cd”. I wasted a lot of time figuring these out.

‘use mount’ didn’t help you? This is the message that should
have been generated:
Usage: mount [-wreuv] [-o options] [-t type special node]
mount [-wreuv] [-o options] [-T type [special] node]
mount [-wreuv] special | node

Where: -t Indicates the special device is a real device
-T Does not require a special device, and if it
is named does not assume that it exists as a
real device
-v Increases the verbosity
-w Mount read/write
-r Mount read only
-u Mount for update (remount)

Note: Not all servers will support all the mount options
(in particular remounting).

‘type’ may include (among others):
nfs, cd (for iso9660), qnx4, dos, ext2, flash

Unfortunately, the --help message doesn’t direct you to
the use message. It should and I’ll fix that. Note that
use is included in the disk for just this purpose.

The message “error starting devc-con” would have been much
more helpful if it instead said something like:

Can’t find devc-con module in image file system.

But that wasn’t the problem. The fact that devc-con
was in the image filesystem meant that it was in the
path and could be found. We’ll see about doing a
better job of reporting more succinct errors in the
future.

Just for your information, I’m about to do an update which
I suspect will trigger a similar condition in my machine
(I’m running old un-tested versions of a number of things
which is why I’m expecting some sort of a failure) so I’ll
hopefully be able to add to your rescue notes.

Thomas

Close your eyes … use the force … feel the energy flowing
around you, surrounding you … understand there is life without
Photon =;-)

Photon doesn’t seem to be my problem…

In any case I’ve created a “rescue” floppy disk image. The floppy
image (which you can just raw dump to a floppy) and the source which
it was generated from (so that someone else can either improve it,
or change it to suit their own needs) are both located at:

http://staff.qnx.com/~thomasf/nto.html

This will allow you to boot and at least have some basic tools to
poke around at your system with. What I’m guessing you will have
to do is to look at the file:

/etc/system/package/packages

and see if there is a core entry. This entry should be located
in one of the package repository paths specified in that same
file … when the package filesystem is run (which is after the
filesystems are mounted). You will probably have to poke around
and see to see what the package names are. You will also have
to manually start the devb-eide driver and manually mount your
partitions to do this. Once your partitions are mounted you
can change your path to make things easier.

OK - I got the rescue image and was briefly confused because you
burn the GZ’ed image on the floppy – (I tried to decompress it, which
doesn’t work, then noticed the size of the image…doohhh.) – should
probably indicate this on the page or rename the image .img so it
doesn’t look like you have to do something before it is rawwrite’ed…
(just a nit)

Booted the floppy all went well, but I never could start the
devb-eide driver… I know Mitchel apparently did – I looked (using
the (e*) tools in /bin /sbin and every other directory – what did I
do wrong… where is it… (This would be my vote for automatically
runnning it in the rescue image)

I’ll try this again later - maybe I consistantly mistyped it…

Anyway, after reading your response, I booted into QNX4 which is on
the same partition and mounted the disk so I could look in
/etc/system/package/packages…
The packages file indicated that the “core” repository was in
/pkgs/base – this whole directory was gone on my system!
I did have a packages/repository with stuff in it and must have had
some of the OS stuff or I never would have been able to get in with
the boot options … Things looked grim for a quick manual fix, so I
saved the packages file to my qnx4 partion and went for
the “windows” fix – reinstall

I decided to reload the June RTP, upgrade the package manager
and then upgrade to QNX6 again. The “start disk” for the June CD
clobbers the partition - even if it detects a Neutrino partition –
(not a nice feature) I didn’t download the new iso image because it is
not reccomended for upgrades – I will rectify this oversight this
evening as I have downloaded the QNX6 stuff 3 times now…

Once the system was back up and running I manually edited
the packages file and added the repository on the second partition
and all of the additional “packages” in the QPF:packages section… All
apprears to be working now…

So… how did my /pkgs/base directory get clobbered??
(I guess we may never know) - I did notice that when you upgrade to
QNX6 it claims to be putting it into the User Repositiory not the Core
Repository… Why wouldn’t the OS be put in the core section?

Also I would lean heavily on putting devc-con back into the
image – that way whatever else happens you still can get a shell

At least I’m back up and running now… thanks for the info…
-Bill

Anything that customers have to say about the product,
good or bad, is generally taken into consideration. Having
a nice itemized list like this certainly helps us decipher
things on our end.

:slight_smile:. Hey, I’ve been doing this since 1983.

I have no comment about why this was changed, other than the
fact that it took up space in the image. As a result, when
your repositories were not able to be located things went a
little bit awry.

No doubt something I did messed things up. I don’t understand
why the devc-con wasn’t found or where it should have been.
I guess I’ve probably made a step backwards then and may
have to go through this all again, although this time I’ll
know what I’m looking for.

Hmmm I guess that the message about the shell is not quite explicit
enough. How about:

Well I wasn’t complaining. It was there in front of me, but I
didn’t see it. Since you want this to be as helpful as possible,
I’d take your suggestions.

I could start this for you I suppose and have it automount just
the partitions, this way you don’t have to do it. I prefer to
do it myself but that is preference.

I guess a document or help option when you boot the disk might
help. I figured this out from someone else’s posting. I kept
looking for /fs which wasn’t mounted yet. I think you are right
not to start it yourself as someday someone will want this to
work with a SCSI controller.

Aha … good catch. I hadn’t run across this problem. I’ll
add gzip (and potentially pax/tar) to the lil’ rescue image.

Or if it were on the distribution CD-ROM somewhere it would
work equally as well.

Note: You should have received a message something along the
lines of “Filesystem have been mounted but the package filesystem
has not been started. Type exit to start the package filesystem”.

I think I did.

I think that if you press the spacebar after you get the
“booting” message you should be fine, is this not the case
for you?

No, this never worked. If I pressed space bar too soon
I could press it into the ground, but it would not work.
I just had to get good at timing it.

‘use mount’ didn’t help you? This is the message that should

I did find this. It was very useful except it didn’t
give me a hint as to what “type” should be. Also I found
some of the jargon confusing:

type (ok a list would help

special (you mean ‘device’ don’t you?

node (mount point?

Maybe your terms are more accurate in a global sense. A few short
examples might have helped a lot, as in:

mount -t qnx4 /dev/hd0t79 /hd
mount -t cd /dev/cd0 /cd

Unfortunately, the --help message doesn’t direct you to
the use message. It should and I’ll fix that.

Right. I entered “mount -p …” A mistake but it got
me the help message.

Note that
use is included in the disk for just this purpose.

I didn’t see that until later.

Can’t find devc-con module in image file system.

But that wasn’t the problem. The fact that devc-con
was in the image filesystem meant that it was in the
path and could be found. We’ll see about doing a
better job of reporting more succinct errors in the
future.

I see your point. How about, “couldn’t find devc-con where it should be … /dir/dir/devc-con?”

Just for your information, I’m about to do an update which
I suspect will trigger a similar condition in my machine
(I’m running old un-tested versions of a number of things
which is why I’m expecting some sort of a failure) so I’ll
hopefully be able to add to your rescue notes.

Mitchell Schoenbrun --------- maschoen@pobox.com

To repeat my final problem in another way…

How can I reset the package file system so that it
will re-download packages. Do I need to delete something?
Edit a file?

Thanks,

Mitchell Schoenbrun --------- maschoen@pobox.com