Build your own .qfs - file ?

Hello everyone.

Does anyone know if it is possible to create your own .qfs - file?
(in the same way as the, from QNX deleivered, root.qfs and qnxbase.qfs
files)

regards, Mats P

Mats Pettersson <mats.pettersson@wavium.se> wrote:

Hello everyone.

Does anyone know if it is possible to create your own .qfs - file?
(in the same way as the, from QNX deleivered, root.qfs and qnxbase.qfs
files)

Sure it is. Create a filesystem within a file on your devb driver,
then mount it somewhere and fill it with stuff and then voila! You
have a .qfs file.

% dd if=/dev/zero of=/tmp/mynewfs bs=1024 count=1000
1000+0 records in
1000+0 records out
% ls -l /tmp/mynewfs
-rw-rw-r-- 1 thomasf techies 1024000 Feb 14 10:12 /tmp/mynewfs
% dinit /tmp/mynewfs
All existing files on /tmp/mynewfs will be lost! Are you sure (y or n) ? y
Disk ‘/tmp/mynewfs’ contains 2000 blocks (1000K).
% su
password:

mount -t qnx4 /tmp/mynewfs /mnt/mynewfs

ls /mnt/mynewfs

… .altboot .boot
… .bitmap .inodes

Hope this helps …

Thomas

Greetings,

A few questions …

Is it possible in RTP to create an ISO from a CD?
Is it possible to mount an ISO?

Is it possible to create a compressed file system in some way and then mount
it in the way you have described? I mean, in theory, you could create a
resource manager that could read and write zip files, no? Does something
equivalent already exist?

]{

“Thomas Fletcher” <thomasf@qnx.com> wrote in message
news:96e7cp$peu$2@nntp.qnx.com

Mats Pettersson <> mats.pettersson@wavium.se> > wrote:
Hello everyone.

Does anyone know if it is possible to create your own .qfs - file?
(in the same way as the, from QNX deleivered, root.qfs and qnxbase.qfs
files)

Sure it is. Create a filesystem within a file on your devb driver,
then mount it somewhere and fill it with stuff and then voila! You
have a .qfs file.

% dd if=/dev/zero of=/tmp/mynewfs bs=1024 count=1000
1000+0 records in
1000+0 records out
% ls -l /tmp/mynewfs
-rw-rw-r-- 1 thomasf techies 1024000 Feb 14 10:12 /tmp/mynewfs
% dinit /tmp/mynewfs
All existing files on /tmp/mynewfs will be lost! Are you sure (y or n) ?
y
Disk ‘/tmp/mynewfs’ contains 2000 blocks (1000K).
% su
password:

mount -t qnx4 /tmp/mynewfs /mnt/mynewfs

ls /mnt/mynewfs

. .altboot .boot
… .bitmap .inodes

Hope this helps …

Thomas