Skip navigation.
Home
The QNX Community Portal

View topic - Looking for QNX4 file reader

Looking for QNX4 file reader

This is where you can ask a software to be ported or written for QNX. You can also request to buy/sell second hand software.

Looking for QNX4 file reader

Postby relson » Fri Nov 02, 2012 6:15 pm

Hi,

I have a Compact Flash card that is formatted QNX4. I'm looking for a utility that will allow files to be read on a Windows machine.

I'd be happy with a windows executable or C code that I could compile myself.

Anybody know where I can find such a beast?

Thank you.

Regards,

David
relson
Active Member
 
Posts: 10
Joined: Fri Nov 02, 2012 5:35 pm

Re: Looking for QNX4 file reader

Postby maschoen » Sat Nov 03, 2012 6:07 pm

I don't know of any such software. When QNX moved from QNX 2 to QNX 4 the same issue came up with the QNX 2 file system. At that time I wrote some simple read only code that did was you describe. The QNX 4 file system isn't well documented, however with some trial and error, it should not be a very difficult task. Under QNX 6 the file /usr/include/sys/fs_qnx4.h describes most of the structures you need to look at.

It's also possible that someone has done something like this for Linux, so I'd check out that avenue first.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Looking for QNX4 file reader

Postby denkelly » Sun Nov 04, 2012 12:24 pm

No guarantees, but you can give this experimental binary a try. It is for XP or win7 Professional only. Your security rights must be equivalent to administrator! The program requests a windows "drive" number you get by loading 'disk management' utility.

https://dl.dropbox.com/u/13676760/temp/q4rw.exe

No "driver" is installed - the program reads raw disk structures in the manner suggested in previous reply by maschoen.
denkelly
Senior Member
 
Posts: 161
Joined: Sat Aug 02, 2008 3:27 pm

Re: Looking for QNX4 file reader

Postby relson » Mon Nov 05, 2012 9:35 pm

I've downloaded q4rw.exe, but it's not clear how to use it.

Here's part of its help message:

Usage: q4rw <hdNbr> <ptblIdx> -dir | -tree [-vv]

list files and directories recursively from
an unmounted QNX4 filesystem

hdNbr - a zero-based drive number [\\.\PhysicalDrive<hdNbr>]
ptblIndx - a partition slot number [0..3]

\\.\PhysicalDrive is something I've not seen before.

I've determined that from the command line one must double the backslashes. However trying hdNbr values (from 0 through 9) and ptbIndex values (from 0 to 3) just gave me 40 (10 * 4) copies of the help messages.

Any suggestions?
relson
Active Member
 
Posts: 10
Joined: Fri Nov 02, 2012 5:35 pm

Re: Looking for QNX4 file reader

Postby maschoen » Tue Nov 06, 2012 6:12 pm

relson wrote:I've downloaded q4rw.exe, but it's not clear how to use it.

Here's part of its help message:

Usage: q4rw <hdNbr> <ptblIdx> -dir | -tree [-vv]

list files and directories recursively from
an unmounted QNX4 filesystem

hdNbr - a zero-based drive number [\\.\PhysicalDrive<hdNbr>]
ptblIndx - a partition slot number [0..3]

\\.\PhysicalDrive is something I've not seen before.

I've determined that from the command line one must double the backslashes. However trying hdNbr values (from 0 through 9) and ptbIndex values (from 0 to 3) just gave me 40 (10 * 4) copies of the help messages.

Any suggestions?


I'm guessing here. You have a windows system. It has disks. I think traditionally A: and B: are floppy drives.
Call them 1 and 2. That makes C: 3. You must have another disk in the system that has QNX on it. Probably D: 4 is a CD-ROM, although it could be QNX image. That means E: 5 might be the QNX disk. So

C> q4rw \\5\ 0 -dir

to see the root directory?

Give it a try.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Looking for QNX4 file reader

Postby denkelly » Tue Nov 06, 2012 10:29 pm

>>>The program requests a windows "drive" number you get by loading 'disk management' utility.

Disk management assigns a "drive number" to each disk. That is the number you need.

Computer/Manage/Storage/Disk Management. The boot drive is usually 0 and contains C:

Within each drive are 4 primary partitions... 0..3. Specify the partition slot number after the drive number to q4rw.
denkelly
Senior Member
 
Posts: 161
Joined: Sat Aug 02, 2008 3:27 pm

Re: Looking for QNX4 file reader

Postby denkelly » Thu Nov 08, 2012 1:17 am

I guess an example is required. Suppose you have you qnx4 filesystem on a usb harddrive and it is the first partition on the harddrive. Normally windows will assign the second drive as drive "1" - remember the bootdrive is "0". So the command line to show the filenames on the disk would be

> q4fs 1 0 -dir

The help does not actually say to include the text "\\.\PhysicalDrive" ... just <hdNbr>, '1' in this case. But to open a "raw" disk and read the partition table, the program will use the name "\\.\PhysicalDrive1".
denkelly
Senior Member
 
Posts: 161
Joined: Sat Aug 02, 2008 3:27 pm

Re: Looking for QNX4 file reader

Postby sieudot » Thu Nov 08, 2012 5:18 am

You can use QNX 6 to view and read QNX 4 files.

I have a QNX4 CF disk liked you. I read files in this CF disk in a Windows machine as follow:
- In Windows, install VMware
- Install QNX 6 in VMware (recommend you should install ver 6.3.2 or later, it can mount USB devices automatically)
- mount QNX4 CF disk in QNX6 with Card Reader (via USB cable)
- use Photon File Manager in QNX6, you can view and read files in QNX4.

This is my solution.
sieudot
Active Member
 
Posts: 45
Joined: Thu Mar 17, 2005 8:14 am
Location: VietNam


Return to Request Software

Who is online

Users browsing this forum: No registered users and 2 guests

cron