Cannot create RAM disk

I have followed the wiki to install the fstab subsystem.

opkg update
opkg install block-mount
opkg install kmod-usb-storage
block detect | uci import fstab

When I add to the end of /etc/config/fstab and reload using block umount; block mount I do not get the RAM disk.

config mount
    option target '/mnt/myramdisk'
    option device 'tmpfs'
    option fstype 'tmpfs'
    option options 'size=1g'
    option enabled '1'

Any hints to create the RAM disk?

Try /mnt/ramdisk or eany directory like /dev for device.

Note the default config already has a tmpfs mounted on /tmp that has a max size of ~1/2 of RAM which it consumes on an as needed basis.

Can see it hold a file / consume RAM by creating a file in it. Router needs a lot of RAM to hold a 1GB file, can test with smaller files using 32m intsead of 1G.

head -c 1G /dev/urandom > /tmp/sample.txt
1 Like