Author Topic: Automounting Swap On Sd  (Read 2251 times)

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Automounting Swap On Sd
« on: January 03, 2007, 03:27:05 pm »
Hi all,

Spare me if I'm the last to know this ... but this is how I got the swap file auto mounted in Cacko 1.23 full on my sd card.

I added the following in rc.local

# turn on swap
SWAPFILE=.swapfile    
SWAP=/mnt/card/.swapfile
 
  if [ -f $SWAP ] && [ "`grep $SWAPFILE /proc/swaps`" = "" ]; then
     swapon $SWAP
  fi

The above code was from http://www.daniel-hertrich.de/zaurus/zps_cacko/

I also added the code into /etc/sdcard/sd_mem_ctrl so that the swap file is automounted and auto dismounted when the sdcard is inserted or ejected.

No more manually activating it via the mem applet after reset.
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>