-   Linux - General (
-   -   ramdisk size (

hadyy 12-21-2007 02:48 AM

ramdisk size
Hi there friends
1. I want to increase or decrease the size of ramdisk(/dev/ramdisk[#mount -t ramfs /dev/ramdisk /mnt/ramfs])
2. what is the "ramfuse"?

jschiwal 12-21-2007 06:03 AM

That is ram filesystem. Not ramfuse.

Consider tmpfs instead. You include the size option when it is mounted.

hadyy 12-21-2007 12:51 PM

Example for ramdisk
I dont understand any thing!
What is your meaning?
What is ramfuse?
Please say me an example of ramdisk resizing.
thank you.

jschiwal 12-21-2007 05:53 PM

You asked what is ramfuse. There is no such thing as far as I know. With tmpfs, you can remount it with a different size.


jschiwal@hpamd64:~> sudo mount -t tmpfs -o size=50M,nr_inodes=2k,uid=jschiwal,mode=700 tmpfs test/
jschiwal@hpamd64:~> cp testfile.p* test/
jschiwal@hpamd64:~> ls test
jschiwal@hpamd64:~> sudo mount -t tmpfs -o size=60M,nr_inodes=2k,uid=jschiwal,mode=700,remount tmpfs test/
jschiwal@hpamd64:~> ls test
jschiwal@hpamd64:~> df test
Filesystem          1K-blocks      Used Available Use% Mounted on
tmpfs                    61440      1576    59864  3% /home/jschiwal/test

Ramfs is used during booting. They are both documented in the kernel source Documentation directory.

win32sux 12-21-2007 06:16 PM

Apparently, this is ramfuse:

Fuse::InMemory is a perl module using Fuse to implement a dynamically growing RAM file system. It is accompanied by, a script that can mount the file system. Ramfuse supports most features expected from a file system running on Linux, and it also works on Mac OS X if you get MacFuse to work with perl (not that hard). Fuse::InMemory is not fully tested, but it might be useful as a base for other file systems too.

hadyy 12-21-2007 11:47 PM

Thank you

All times are GMT -5. The time now is 02:01 AM.