Zucca
Group: Members
Posts: 524
Joined: Feb. 2006 |
|
Posted: July 06 2006,02:54 |
|
For months I tried to ask how to change /ramdisk's size on the fly. It seemed that no one here knew. So I studied and... I finally found out how to change /ramdisk's size on the fly:Code Sample | mount -t tmpfs /ramdisk -o remount,rw,size=1024M,nouser,exec /ramdisk |
I use this code because my /ramdisk gets filled very quickly. If you do not have enough RAM swap will be used as space for your /ramdisk when RAM gets low.
This second one is important if you save your settings to your usb stick that's a small one and could get full. If that happens on reboot/shutdown you'll lose all your settings! One way to (partially) prevent this from happening is to limit the size of your /home directory:Code Sample | mv /ramdisk/home /ramdisk/_home mkdir /ramdisk/home mount -t tmpfs tmpfs -o size=64M /ramdisk/home mv /ramdisk/_home/* /ramdisk/home/ |
Remember these tips are for /opt/bootlocal.sh. ;)
-------------- Do you have it? - http://dy.fi/mak
|