[Droid Eris General] mjgdroid:
This is a merged thread, from the two previous posts I created, both questions I awnserd myself. here is the awnser you really want multiple partitions for your phone

First you must run gparted from command promp on your computer, so connect your phone to your computer and run in the terminal:

adb shell

parted /dev/block/mmcblk0

print

remove any partitions

rm1
rm2
rm3
rm4
rm5

now create new partitions these partitions should be as so, for sense or 2.1, or gingerbread roms fat32 ext2 swap file is the order, for froyo I believe it is swap ext2 fat32, but I have not tried a froyo rom yet.

mkpartfs primary fat32 0 14500MB
mkpartfs primary ext2 14500MB 15500MB
mkpartfs primary linux-swap 15500MB 15900MB

now push swap.zip file from below to your phone, and flash swap.zip

now reboot

now open terminal emulator and type:

ls /dev/block/

this should print something like this:

mmcblk0p1

mmcblk0p2

mmcblk0p3

mntblock1

mntblock2

loop1

loop2

the mmcblk0p'# are the sdcard partitions

to mount the fat32 partition type:

mount -o rw -t vfat /dev/block/mmcblk0p1 /mnt/sdcard/

now use one of SwapScriptv2.1.1 thanks to cyanogen

type in terminal:

[B]swapscriptv2[/B]

Follow the prompts and you should see your new swap partition in use, by typing:

[B]free[/B]

in your terminal now if you woud like to have the swap started at boot time type

[B]bootswapv2[/B]

rd

and follow the prompts after this you should have a new 3 partitioned sdcard fat32 ext2 and swap and using and mounted on fat32 on sdcard and swap running

using the ext2 will be for either cach2cach appsor maybe linux, I have not decied yet

http://forum.cyanogenmod.com/topic/208-swap-enabledisable/

Flash from Recovery

Compatible with 2 and 3 partition layouts (ext(fat+ext+swap) and no ext(fat+swap))

http://www.mediafire...qdvxh7sos5svcvc

or

http://www.sendspace.com/file/h66oap

This script adds commands to terminal:

swapscriptv2
bootswapv2
swap-off
bootswap-off
vmtweaks
vmtweaks-boot

swapscriptv2 - you will be asked what partition layout you are using as well as swappiness, optional vm settings prompted

bootswapv2 - you will be asked what partition layout you are using as well as swappiness, and an init script will be placed for swap at boot time, optional boot time vm settings prompted

swap-off turns off active swap partition (error for parition not in use is normal)

bootswap-off removes bootswap init file.

vmtweaks allows changing settings for vfs_cache_pressure and page-cluster, some people have reported success in reducing these values.

vmtweaks-boot allows changing settings for vfs_cache_pressure and page-cluster and applying them at boot.

Let me know if there are any problems with the new script.

the following commands in the terminal

SwapScript: (v1)

Flash from Recovery

fat32+ext+swap or swap on /dev/block/mmcblk0p3

http://www.mediafire...bnc79k6pkespzbj

fat32+swap no ext or swap on /dev/block/mmcblk0p2

http://www.mediafire...b3ykdk3r21js96q

This script adds several commands to terminal:

swapon10

swapon20

swapon30

swapon40

swapon50

swapon60

swapon70

swapon80

swapon90

bootswap10

bootswap20

bootswap30

bootswap40

bootswap50

bootswap60

bootswap70

bootswap80

bootswap90

swap-off

bootswap-off

Instructions

swaponXX (20,30,40,50,60) - will result in swap being turned on with a swappiness of XX

bootswapXX (20,30,40,50,60) - will enable swap at boot time with a swappiness of XX (no usuerinit.sh needed)

swap-off - Turns running swap off.

bootswap-off - removes init swap script from boot. (see above notes for removal if you used the newer script)

SWAPFILE CREATOR:

http://www.mediafire...yr7w2yd5sfobyte

For anyone interested in testing different swap sizes and swappiness or those with no partition other than the standard fat, I threw together a swapfile script allowing for several common configurations. Similar to my swapscript after flashing from recovery a number of new commands will become available in terminal:

Instructions

First create a swap file on your sdcard or sd-ext partition:

swapfileXX (size 12,24,36,64,96,128 on sdcard fat partition)

extswapXX (size 12,24,36,64,96,128 on sdcard ext partition)

Then set swappiness:

swpXX (XX is swappiness in increments of 10 up to 90)

errors in script are normal, script references both fat and ext locations, will fix this next update

swapfile-off (stop swap file in use)

errors in script are normal, script references both fat and ext locations, will fix this next update

clearswapfile (stops swap file and removes all swap files created)

errors in script are normal, script references both fat and ext locations, will fix this next update

Swapfile at boot ONLY SUPPORTED FOR SWAPFILE ON EXT:

bootswapfileXX (XX is swappiness in increments of 10 up to 90)

bootswapfil-off - removes bootswap

SwapFileScript:

http://www.mediafire...yr7w2yd5sfobyte

How to tell if swap is currently in use:

in terminal emulator or adb shell type 'free' with no 's and press enter

if there is a number in the space that says swap you have swap enabled