Where are the system files on disk?

I have a little embedded system with a hard drive on it, and I have RTP 6.1
installed both in flash and on the hard drive, and I can boot either one.

The installation on the flash is a little bare so I wanted to copy some
system files (like “find” and “uname”) from the hard drive. I booted from
the flash and ran the eide driver. Two new devices appear in /dev:
/dev/hd0 and /dev/hd0t79.

I mount hd0t79 under /mnt but when I cd to /mnt, I can’t find any system
files! I can see /tmp and .boot and /usr/local/ and all that, but when I
cd to /mnt/pkgs there is only “repository” and no “base”. (I now that I
won’t find any in /usr/bin and all that, the package manager will map them
there when I boot off the hard drive.)

Presumably /pkg/base gets mounted from somhere? From where? How do I get
to it?

Thanks!

Dana


Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast

Mario Charest wrote:

What happens if you boot from the flash. Are the files there?

… what I just described is exactly what happens when I boot from flash…

But I think what you’re asking is if the files are there if I boot from
the hard drive, and the answer is yes.

If they are, I would find the build file definition and try to find the
line where the package manager is started or where the mount
occurs.

This is just a default QNX installation, completely vanilla. I’ll try to
do that anyway though, thanks for the idea!

Because of the limited space of compact flash, most people do not
use the package manager on them.

I think maybe I wasn’t clear in my original post. I don’t want to run the
package manager of the flash, I just want to copy a few system tools like
find. But I can’t find those tools on the hard drive, unless it’s the hard
drive that I boot from.

Thanks!

Dana


Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast

“Dana Echtner” <dana@ece.concordia.ca> wrote in message
news:9sugh1$8i$1@inn.qnx.com

I have a little embedded system with a hard drive on it, and I have RTP
6.1
installed both in flash and on the hard drive, and I can boot either one.

The installation on the flash is a little bare so I wanted to copy some
system files (like “find” and “uname”) from the hard drive. I booted from
the flash and ran the eide driver. Two new devices appear in /dev:
/dev/hd0 and /dev/hd0t79.

I mount hd0t79 under /mnt but when I cd to /mnt, I can’t find any system
files! I can see /tmp and .boot and /usr/local/ and all that, but when I
cd to /mnt/pkgs there is only “repository” and no “base”. (I now that I
won’t find any in /usr/bin and all that, the package manager will map them
there when I boot off the hard drive.)

What happens if you boot from the flash. Are the files there?
If they are, I would find the build file definition and try to find the
line where the package manager is started or where the mount
occurs.

Because of the limited space of compact flash, most people do not
use the package manager on them.

Presumably /pkg/base gets mounted from somhere? From where? How do I get
to it?

Thanks!

Dana


Dana Echtner \ Real-Time Systems Administrator
dana@ece.concordia.ca > / ECE, Concordia University, Montreal, Canada

rw-rw-rw-: The file protection of the beast

Dana Echtner <dana@ece.concordia.ca> wrote in article <9suif7$17s$1@inn.qnx.com>…
[cut]

I think maybe I wasn’t clear in my original post. I don’t want to run the
package manager of the flash, I just want to copy a few system tools like
find. But I can’t find those tools on the hard drive, unless it’s the hard
drive that I boot from.

Dana,

I guess you have to find /mnt/boot/fs/qnxbase.qfs and then mount this QNX4 FS image :wink:
Here is equivalent of what is diskboot doing
mount -t qnx4 /boot/fs/qnxbase.qfs /pkgs/base
So you need:

mount -tqnx4 /dev/hd0t79 /mnt

mount -tqnx4 /mnt/boot/fs/qnxbase.qfs /basepack

#cd /basepack

Eduard.

ed1k wrote:

I guess you have to find /mnt/boot/fs/qnxbase.qfs and then mount this QNX4
FS image > :wink:

That was it!

Thank You!!!

Dana