Creating a ramdisk on the i.MX28 EVK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Creating a ramdisk on the i.MX28 EVK

1,096 次查看
paulbannister
Contributor I

I'm trying to set up a ramdisk on the i.MX28 EVK

I have found a web post that suggests the following

mkdir /tmp/ramdisk; chmod 777 /tmp/ramdisk

mount -t tmpfs -o size=32M tmpfs /tmp/ramdisk/

Both commands appear to complete successfully (No warning/error messages), but when I

ls /mnt

I do not see the ramdisk mounted

I am new to Linux, so I apologise if this is a trivial misunderstanding, but I would appreciate any help offered.

Many thanks!

标签 (1)
标记 (2)
0 项奖励
回复
2 回复数

812 次查看
paulbannister
Contributor I

Many thanks for your help!

0 项奖励
回复

812 次查看
SergioSolis
NXP Employee
NXP Employee

Hello Paul,

Can you please type "mount" in your linux terminal?, you should see a row like this:

tmpfs on /tmp/ramdisk type tmpfs (rw,size=32M)

Here is a small tutorial about tmpfs and ramfs, it may help you clarify any doubt you have:

Overview of RAMFS and TMPFS on Linux