LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   ramdisk size (http://www.linuxquestions.org/questions/linux-general-1/ramdisk-size-608300/)

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"?
tanx

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
 
Hi
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.

Code:

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
testfile.pdf  testfile.ps
jschiwal@hpamd64:~> sudo mount -t tmpfs -o size=60M,nr_inodes=2k,uid=jschiwal,mode=700,remount tmpfs test/
jschiwal@hpamd64:~> ls test
testfile.pdf  testfile.ps
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:
Quote:

Fuse::InMemory is a perl module using Fuse to implement a dynamically growing RAM file system. It is accompanied by ramfuse.pl, 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

excellent
 
excellent
Thank you


All times are GMT -5. The time now is 05:03 PM.