View Single Post
Old 09-29-2013, 03:44 PM   #58
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Lightbulb

Quote:
Originally Posted by AeroFengBlade View Post
You can also make a new node inside /dev/ called swap for easier access:
Code:
mknod /dev/swap b 7 8 #b=block device, 7=use loop driver, 8=loop device number
Make a separate directory in /mnt/us/ called swap:
Code:
mkdir /mnt/us/swap
cd /mnt/us/swap
Make a new swap file:
Code:
dd if=/dev/zero of=swapfile bs=1M count=128
mkswap swapfile
Turn the file into a block device:
Code:
losetup /dev/swap /mnt/us/swap/swapfile
I made some scripts in /mnt/us/swap/ for easy swapping on/off:
swapon.sh
Spoiler:

mknod /dev/swap b 7 8
losetup /dev/swap /mnt/us/swap/swapfile
swapon /dev/swap

swapoff.sh
Spoiler:

swappoff /dev/swap #You don't really need a script for this, but I'm lazy

Swap on...swap off Sounds like wax on, wax off from the original Karate Kid, if you know what I'm talking about
I do exactly this save for one thing

losetup /dev/swap /mnt/base-us/swap/swapfile

I run mine via base-us.

Unsure if this has any impact but the other way occasionally locked up.
(possibly the whole Fuse file proxy thing again)

Thought I would share...
twobob is offline   Reply With Quote