RamDisk

I am attempting to set up a Ramdisk on my QNX 4 system. I have followed
the instructions I found on QDN to no avail. Could someone please help me
out. Thanx much in advance.

Ross

Ross Brantner <brantner@innernet.net> wrote:

I am attempting to set up a Ramdisk on my QNX 4 system. I have followed
the instructions I found on QDN to no avail. Could someone please help me
out. Thanx much in advance.

check out the QNX Developer’s Network at http://qdn.qnx.com/
choose Search by: QNX4
then enter ramdisk in the Keyword search

http://qdn.qnx.com/support/bok/solution.qnx?9347
http://qdn.qnx.com/support/bok/solution.qnx?9346

Chris

Ross

“Ian M. Zagorskih” <ianzag@novosoft.ru> wrote in message
news:8smlnu$k56$1@inn.qnx.com

Fsys -r <disk_size_in kb> → create virtual block device
“/dev/ram”
dinit /dev/ram → initialize qfs partition on
/dev/ram
mount /dev/ram /ram → mount qfs partition wherever is
needed

for example i have:

in boot image description file:

/bin/Fsys
$Fsys -r 4096

in sysinit. :

dinit /dev/ram
mount /dev/ram /ram

that’s all

With QNX 4.25D there is something much simpler, it’s called vdir.

“Ross Brantner” <> brantner@innernet.net> > wrote in message
news:8sm40l$240$> 1@inn.qnx.com> …
I am attempting to set up a Ramdisk on my QNX 4 system. I have followed
the instructions I found on QDN to no avail. Could someone please help
me
out. Thanx much in advance.

Ross


Ian M. Zagorskih
Software Developer
Novosoft CyBearNet Department
Custom software development and web design since 1992

Phone: +7 (3832) 39-72-60
Fax: +7 (3832) 39-63-58
E-mail: > ianzag@novosoft.ru
For more visit > http://www.novosoft.ru/

Fsys -r <disk_size_in kb> → create virtual block device
“/dev/ram”
dinit /dev/ram → initialize qfs partition on
/dev/ram
mount /dev/ram /ram → mount qfs partition wherever is
needed

for example i have:

in boot image description file:

/bin/Fsys
$Fsys -r 4096

in sysinit. :

dinit /dev/ram
mount /dev/ram /ram

that’s all

“Ross Brantner” <brantner@innernet.net> wrote in message
news:8sm40l$240$1@inn.qnx.com

I am attempting to set up a Ramdisk on my QNX 4 system. I have followed
the instructions I found on QDN to no avail. Could someone please help me
out. Thanx much in advance.

Ross


Ian M. Zagorskih
Software Developer
Novosoft CyBearNet Department
Custom software development and web design since 1992

Phone: +7 (3832) 39-72-60
Fax: +7 (3832) 39-63-58
E-mail: ianzag@novosoft.ru
For more visit http://www.novosoft.ru/

“Mario Charest” <mcz@videotron.ca> wrote in message
news:8smom6$mui$1@inn.qnx.com

“Ian M. Zagorskih” <> ianzag@novosoft.ru> > wrote in message
news:8smlnu$k56$> 1@inn.qnx.com> …

Fsys -r <disk_size_in kb> → create virtual block device
“/dev/ram”
dinit /dev/ram → initialize qfs partition
on
/dev/ram
mount /dev/ram /ram → mount qfs partition wherever
is
needed

for example i have:

in boot image description file:

/bin/Fsys
$Fsys -r 4096

in sysinit. :

dinit /dev/ram
mount /dev/ram /ram

that’s all


With QNX 4.25D there is something much simpler, it’s called vdir.

I forgot to mention that vdir is not really meant for BIG ram disk
(>20 Megs in my testing) as is becomes slower then HD.

“Ross Brantner” <> brantner@innernet.net> > wrote in message
news:8sm40l$240$> 1@inn.qnx.com> …
I am attempting to set up a Ramdisk on my QNX 4 system. I have
followed
the instructions I found on QDN to no avail. Could someone please
help
me
out. Thanx much in advance.

Ross


Ian M. Zagorskih
Software Developer
Novosoft CyBearNet Department
Custom software development and web design since 1992

Phone: +7 (3832) 39-72-60
Fax: +7 (3832) 39-63-58
E-mail: > ianzag@novosoft.ru
For more visit > http://www.novosoft.ru/

\

well, for sure, but Fsys ram disk works too

ps: i’m wondering the way how qssl engineers implemented ram block device
that it becomes even slower then true hard drive… :wink:

“Mario Charest” <mcz@videotron.ca> wrote in message
news:8snjgi$kh2$1@inn.qnx.com

“Mario Charest” <> mcz@videotron.ca> > wrote in message
news:8smom6$mui$> 1@inn.qnx.com> …


“Ian M. Zagorskih” <> ianzag@novosoft.ru> > wrote in message
news:8smlnu$k56$> 1@inn.qnx.com> …

Fsys -r <disk_size_in kb> → create virtual block device
“/dev/ram”
dinit /dev/ram → initialize qfs
partition
on
/dev/ram
mount /dev/ram /ram → mount qfs partition wherever
is
needed

for example i have:

in boot image description file:

/bin/Fsys
$Fsys -r 4096

in sysinit. :

dinit /dev/ram
mount /dev/ram /ram

that’s all


With QNX 4.25D there is something much simpler, it’s called vdir.


I forgot to mention that vdir is not really meant for BIG ram disk
(>20 Megs in my testing) as is becomes slower then HD.

“Ross Brantner” <> brantner@innernet.net> > wrote in message
news:8sm40l$240$> 1@inn.qnx.com> …
I am attempting to set up a Ramdisk on my QNX 4 system. I have
followed
the instructions I found on QDN to no avail. Could someone please
help
me
out. Thanx much in advance.

Ross


Ian M. Zagorskih
Software Developer
Novosoft CyBearNet Department
Custom software development and web design since 1992

Phone: +7 (3832) 39-72-60
Fax: +7 (3832) 39-63-58
E-mail: > ianzag@novosoft.ru
For more visit > http://www.novosoft.ru/



\

Ian M. Zagorskih
Software Developer
Novosoft CyBearNet Department
Custom software development and web design since 1992

Phone: +7 (3832) 39-72-60
Fax: +7 (3832) 39-63-58
E-mail: ianzag@novosoft.ru
For more visit http://www.novosoft.ru/

I am still not able to get the ramdisk setup. I t is not creating an entry
in /dev.


here is my boot image:

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 1

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys -r 4096

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n5=cd0. eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/sinit
$ /bin/sinit TERM=qnxm


and here is an exerpt from my sysinit.1:


nameloc &
chkfsys /

#Define and mount the floppy drive
mount /dev/fd0 /fd0

#Define, initialize and mount RAMDISK
dinit /dev/ram
mount /dev/ram /ram

Dosfsys a=/dev/fd0 &

Can someone please help me out with why this will not work, please. I
thank you in advance and you all have been very helpful to me thus far.

Ross

What you have here looks exactly right. I would double
check that the boot image file is being created where you
think it is, and that it is being copied to the correct
/.boot file.

One way to tear your hair out, I’ve done it, is to put the
/.boot file on a separate small partition at the beginning of
the disk so that you can put the real partition beyond 1024
cyclinders, and THEN FORGET IT?




Previously, Ross Brantner wrote in qdn.public.qnx4:

I am still not able to get the ramdisk setup. I t is not creating an entry
in /dev.


here is my boot image:

/boot/sys/boot
$ /boot/sys/boot -v

/boot/sys/Proc32
$ /boot/sys/Proc32 -l 1

/boot/sys/Slib32
$ /boot/sys/Slib32

/boot/sys/Slib16
$ /boot/sys/Slib16

/bin/Fsys
$ /bin/Fsys -r 4096

/bin/Fsys.eide
$ /bin/Fsys.eide fsys -Ndsk0 -n0=hd0. -n5=cd0. eide -a1f0 -i14

/bin/mount
$ /bin/mount -p /dev/hd0.0 /dev/hd0.0t77 /

/bin/sinit
$ /bin/sinit TERM=qnxm


and here is an exerpt from my sysinit.1:


nameloc &
chkfsys /

#Define and mount the floppy drive
mount /dev/fd0 /fd0

#Define, initialize and mount RAMDISK
dinit /dev/ram
mount /dev/ram /ram

Dosfsys a=/dev/fd0 &

Can someone please help me out with why this will not work, please. I
thank you in advance and you all have been very helpful to me thus far.

Ross


Mitchell Schoenbrun --------- maschoen@pobox.com

“Ian M. Zagorskih” <ianzag@novosoft.ru> wrote in message
news:8so3h8$9gu$1@inn.qnx.com

well, for sure, but Fsys ram disk works too

The Fsys ram disk has a problem (I think it was fix in the latest patch)
you couldn’t delete the first 2 files.

ps: i’m wondering the way how qssl engineers implemented ram block device
that it becomes even slower then true hard drive… > :wink:

Simply because vdir is a simple program that was not written with speed in
mind.

brantner@innernet.net (Ross Brantner) wrote in
<8sm40l$240$1@inn.qnx.com>:

I am attempting to set up a Ramdisk on my QNX 4 system. I have followed
the instructions I found on QDN to no avail. Could someone please help
me out. Thanx much in advance.

Ross

Figured out what was wrong. Booting from floppy, not harddisk. Didn’t
realize .boot needed to be on the floppy too. Thanks for all of your help.

Ross