2

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?

4

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)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.