Forum Topic - QNX6 filesystem on USB mass storage device: (4 Items)
   
QNX6 filesystem on USB mass storage device  
I tried to create a QNX6 filesystem on USB stick but didn't succeed:
mkqnx6fs /dev/umass0 --> OK
chkqnx6fs /dev/umass0 --> OK
**** Reboot machine here to make sure all FAT32 related stuff is gone
USB automount produced nothing
mount -tqnx6 /dev/umass0 /fs/usb
cannot mount, possible reason: Read-Only Filesystem
then: Removed USB stick
slay enum-umass
devb-umass blk automount=umass0:/fs/usb:qnx6
Didn't work either.

I checked pidin -pdevb-umass mem ans saw that it didn't load fs-qnx6.so at all. Any ideas?? Thanks

-Albrecht
Re: QNX6 filesystem on USB mass storage device  
On Wed, 22 Apr 2009, Gunter Geigemueller wrote:

>I tried to create a QNX6 filesystem on USB stick but didn't succeed:
>mkqnx6fs /dev/umass0 --> OK
>chkqnx6fs /dev/umass0 --> OK
>**** Reboot machine here to make sure all FAT32 related stuff is gone
>USB automount produced nothing
>mount -tqnx6 /dev/umass0 /fs/usb
>cannot mount, possible reason: Read-Only Filesystem
>then: Removed USB stick
>slay enum-umass
>devb-umass blk automount=umass0:/fs/usb:qnx6
>Didn't work either.
>
>I checked pidin -pdevb-umass mem ans saw that it didn't load fs-qnx6.so at all. Any ideas?? Thanks

See the following post for details on how to get this to mount:

Date: Wed, 18 Mar 2009 08:57:54 -0400 (EDT)
Reply-To: post24667@community.qnx.com
To: techsupport-internal_community <post24667@community.qnx.com>
Subject: RE: mkqnx6fs on umass device

fs-qnx6 requires hardware SYNC to be power-safe.  If the hardware
doesn't respond properly to the SYNC command the driver automatically
restricts the fs as read only.  You can pass 'sync=optional' when you
start the driver and it will allow you to mount it writable but it will
NOT be power safe and you could get corruption with improper removal or
power loss.



>
>-Albrecht
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27697
>
>
RE: QNX6 filesystem on USB mass storage device  
There's a section on this in the latest 6.4.0 release notes (see the
Download centre on the website):

Required device properties for the Power-Safe filesystem

The Power-Safe filesystem was designed for and is intended for
traditional rotating hard disk drive media. It operates by moving the
on-disk filesystem state from one stable view to another stable view
using copy-on-write (COW) to relocate modified blocks. To finalize this
transition, all dirty blocks involved in the new view must be committed
to persistent storage, and then a new filesystem superblock/root
referencing the relocated blocks is committed.

This provides power-safe robustness, because at any point in time either
the old version is completely accessible or the new version is
completely accessible (with no live data being overwritten in between).
Thus to mount as read-write on a given device, that device must have the
following properties:

    * one of the following:
          o The device may buffer write data for performance reasons,
and the return from a WRITE may not necessarily indicate the data is
committed to permanent storage. But such a device must implement a
FLUSH/SYNC command that forces any cached or buffered write data to
persistent storage, and doesn't return until it's guaranteed that all
data is stable across a power-loss.

            or:
          o The device doesn't buffer write data, and operates in a
strict write-through manner, where return from a WRITE is a guarantee
that the data was immediately committed to persistent storage. Such a
device doesn't require an additional FLUSH/SYNC command.
    * and both of the following:
          o The action of writing to one data region (an advertised
device sector) can in no way damage the contents of any other region,
even under conditions such as power-loss, vibration, temperature, etc.

            and:
          o Data that has previously been reported as committed to
persistent storage remains stable until explicitly overwritten. The
device may implement facilities such as bad-block remapping or
wear-leveling to support this requirement, provided that such activity
never causes loss of persistent data, even under conditions such as
power-loss, etc.


Steve Reid (stever@qnx.com)
Technical Editor
QNX Software Systems 
Re: QNX6 filesystem on USB mass storage device  
Thank you, I got it working. I didn't wnat a power-safe filesystem on the USB stick, I wanted one that can handle files 
larger than 2GB. This is the true value of the fs-qnx6 for us.

-Albrecht