OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: jason123 on March 15, 2004, 05:05:02 am

Title: Swap load on startup?
Post by: jason123 on March 15, 2004, 05:05:02 am
Hey all,

I remember seeing someplace a script to load swap files on startup well, i couldn\'t find it so i decided to ask the ZUG.  How do i load the swap on startup?

I have three swaps -- on /mnt/card/swapfile
                                    /mnt/cf/swapfile
and one in intrnal rom wherever the Memorymanager applet puts it


Suggestions/comments?
Title: Swap load on startup?
Post by: Stubear on March 15, 2004, 05:55:40 am
Add them to /etc/fstab and moun them all with swapon -a

You can out the swapon -a command in any rc file that is mounted at boot time but rc.local seems best.

Stu
Title: Swap load on startup?
Post by: maslovsky on March 15, 2004, 10:41:22 am
Add the following to /etc/fstab

/mnt/cf/swapfile swap swap defaults

for each of your swap file.
Title: Swap load on startup?
Post by: havoc on March 16, 2004, 12:38:56 pm
You can pick out the deatails you need here:
http://www.galacticslacker.com/perl-bin/re...20card&expand=3 (http://www.galacticslacker.com/perl-bin/re?folder=Zaurus%20SL-5600/Creating%20swap%20on%20SD%20or%20CF%20card&expand=3)

You can also grab a copy of my /etc/initd.d/swap script here:
http://www.galacticslacker.com/perl-bin/re...message=513#513 (http://www.galacticslacker.com/perl-bin/re?op=expand&message=513#513)

Let me know if stuff needs clarifying.

havoc
Title: Swap load on startup?
Post by: jason123 on March 17, 2004, 01:33:52 pm
I\'m already lost ...  umm ... yeah I\'ve never turned a swap on from the command line so i don\'t know thee commands for it -- i stuck \"swapon -a /mnt/cf/swapfile\" into my rc.local ...  I stuck \"/mnt/cf/swapfile swap swap defaults\"  into my /etc/fstab as well but umm nothing really happened so i\'m confused.
Title: Swap load on startup?
Post by: Stubear on March 17, 2004, 09:13:41 pm
Ahh, looks like you need to uncomment thel ines in rc or rc.init that turn on rc.local - it\'s not used by default (at least not on the C760).

Take a look at the lniks havoc posted they will do what you want.

Stu