Is there any method to mount a block of memory as a filesystem in linux

filesystemskernelmemory

I have a question,in linux, is there any method to mount a block of memory as a filesystem?
For example, in X86 architecture, when power on, I reserve a block of memory about 8
Mbytes, and then when linux startup, I mount this block of memory as a filesystem and then read and write file to the file system ? What will be the fs type?

Best Answer

ramfs

(bet you'd never have guessed that). You might also want to have a look at tmpfs and overlay filesystems (latter provides a mechanism for cloning the filesystem at power up/down - see Puppy Linux)

Related Question