Cannot mount partition from build file.

This is a follow-up from my previous posting regarding the use of mkdir and problems with a read-only operating system.

I have now successfully partitioned a USB stick into two partitions. The first partition contains the QNX image and is 256M in size. I can boot from this USB partition. The second partition fills the remaining space of my 16G USB stick and is formatted as FAT32 with a volume label of “B”.

Once booted I can mount the second partition using “mount -v -t dos /dev/hd0t12 /B” and access it from the “/B” directory.

However, I have to manually type in this command every time I boot. I really want to do this automatically from the script in the build file, but if I attempt this it fails every time saying:
mount: Can’t mount /B (type dos)
mount: Possible reason: Invalid argument

Here is the end of the script in the build file:

[b] display_msg “Mounting DOS partition…”
mount -v -t dos /dev/hd0t12 /B

Run the script on the second partition (mounted as /B) which is intended to start whatever

software is installed.

/B/start

Then start a Korn shell.

ksh -l
[/b]
So:

a) Why is it that I cannot mount the partition whilst in the build script, but I can once the Korn shell starts?

b) How can I automatically mount the partition at boot time?

Guessing the environment is different once you start the ksh.

But you can run a ksh command from within the build script…

ksh -c “mount -v -t dos /dev/hd0t12 /B”

The ksh will return when mount exits.