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
-
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?
-
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
-
Add the following to /etc/fstab
/mnt/cf/swapfile swap swap defaults
for each of your swap file.
-
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
-
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.
-
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