Skip navigation.
Home
The QNX Community Portal

View topic - Can't mount qnx6 file system on Compact Flash

Can't mount qnx6 file system on Compact Flash

For discussion of realtime and/or embedded programming.

Can't mount qnx6 file system on Compact Flash

Postby a2703 » Thu Apr 05, 2012 12:04 pm

I need to format and mount Compact Flash from CD-ROM.

The boot file on CD-ROM contain mkqnx6fs and mount utility. It also contain libcam.so, io-blk.so, cam-disk.so, cam-cdrom.so,
fs-cd.so, fs-qnx6.so

There is a fragment of my startup script.

Code: Select all
   
   devb-eide eide nobmstr &
   waitfor /dev/hd0 15
   waitfor /dev/cd0 15
   mount -t cd /dev/cd0 /fs/cd-rom
...   
    mkqnx6fs -q /dev/hd0t177
    mount -t qnx6 /dev/hd0t177 /fs/hd0-qnx6

 


After attempting to mount a /dev/hd0t177 it is a mistake:
Can't mount /fs/hd0-qnx6 Posible reason: Read-only file system.
I can mount it only as a read-only device(mount -r -t qnx6 /dev/hd0t177 /fs/hd0-qnx6)

There is no such mistake when I format this Compact Flash on a self-hosted system QNX 6.4.1 and mount it. I can mount the device as read/write.

What a problem? How I can mount Compact Flash in read/write mode?
a2703
New Member
 
Posts: 2
Joined: Thu Apr 05, 2012 10:57 am

Re: Can't mount qnx6 file system on Compact Flash

Postby Tim » Thu Apr 05, 2012 4:59 pm

A2703,

Are you *sure* that the 'mkqnx6fs -q /dev/hd0t177' command succeeded? If it didn't then you would not be able to mount on the next line.

You can figure out if this is happening by taking the CF card and putting it in your self hosted system and seeing if its correctly formatted and can be mounted without needing the mkqnx6fs command.

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Re: Can't mount qnx6 file system on Compact Flash

Postby a2703 » Fri Apr 06, 2012 5:37 am

The reason was that my Compact Flash doesn't support synchronizing. It was necessary to start hard disk driver with sync=optional options.

devb-eide eide qnx6 sync=optional
a2703
New Member
 
Posts: 2
Joined: Thu Apr 05, 2012 10:57 am

Re: Can't mount qnx6 file system on Compact Flash

Postby mario » Fri Apr 06, 2012 6:46 pm

a2703 wrote:The reason was that my Compact Flash doesn't support synchronizing. It was necessary to start hard disk driver with sync=optional options.

devb-eide eide qnx6 sync=optional


Or you can pass the sync option to the mount command instead of devb-eide.
mario
QNX Master
 
Posts: 4132
Joined: Sun Sep 01, 2002 1:04 am


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 3 guests