Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Some lines to bootlocal.sh., /ramdisk size change, mounting /home.< Next Oldest | Next Newest >
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: July 06 2006,02:54 QUOTE

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
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 06 2006,03:17 QUOTE

Nice tip about ramdisk size...definitely going into my notes.  Difference is I think i'll use this to reduce the size of my ramdisk rather than increase, since i generally use approximately 1% of it =o)

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: July 06 2006,04:53 QUOTE

nice one Zucca.
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: July 06 2006,09:59 QUOTE

I have also some nice lines (some on development ;P) that automatically load some server features at startup.
I have set monkey, syslogd, ftpd, VNCd and no-ip to start automatically.
Portable server. :;):
Hotline server startup still in progress.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: July 06 2006,14:41 QUOTE

monkey, syslogd, and ftpd are also available as boot options (monkey, syslog, ftp).

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
5 replies since July 06 2006,02:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Some lines to bootlocal.sh.

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code