Expanding the virtual filesystem

Having used QNX a while i’ve come to a point where my
initial virtual filesystem is full. When installing QNX
from windows I though that the initial 600Mb I choosed
for the QNX filesystem file was going to be enough for
playing around with QNX for a while. But I got hooked
by QNX so 600Mb is way far from enough, so now I need
to expand this this initial file system file to say 2Gb
or something.

The QNX filesystem is located on a windows partition
in a file d:\program files\qnx\boot\root.qfs . Is there
any way to extend the size of this file ?

/Björn

Bj?rn Hagstr?m <orgin@hem.passagen.se> wrote:

Having used QNX a while i’ve come to a point where my
initial virtual filesystem is full. When installing QNX
from windows I though that the initial 600Mb I choosed
for the QNX filesystem file was going to be enough for
playing around with QNX for a while. But I got hooked
by QNX so 600Mb is way far from enough, so now I need
to expand this this initial file system file to say 2Gb
or something.

The QNX filesystem is located on a windows partition
in a file d:\program files\qnx\boot\root.qfs . Is there
any way to extend the size of this file ?

The “only way” I can think of is:

  1. Boot into windows, rename root.qfs to root_save.qfs.

  2. Looking to d:\program files\qnx\boot\bin, there used
    to have some binary (dinit.exe ?) to create “.qfs”
    file.

  3. use this binary to create a larger “root.qfs” at same
    place.

  4. boot back into RTP, now you have a large root file
    system, all you need to do is

mount /fs/hd0-dos/program files/qnx/boot/root_save.qfs /oldroot

and then move all files in /oldroot to your new root.

  1. Now you can delete “root_save.qfs”.

-xtang