QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Create a ramdisk in QNX4. |
Ref. No. |
QNX.000009347 |
Category(ies) |
Filesystem |
Issue |
How do I create a ramdisk using QNX4.24?
|
Solution |
If you are booting from disk, then you need to specify the -r <ramdisk_sz> option to Fsys in your boot image. Fsys -r 4096 (minimum)
This creates an entry in the namespace called /dev/ram when the machine boots.
Then in your /etc/config/sysinit.<node> file you need to initialize the ramdisk:
dinit /dev/ram
Then mount the ramdisk:
mount /dev/ram /ram |
|