[Q]Enabling Darktremor a2sd on Samsung s5830 Galaxy ACE - Galaxy Ace S5830 General

done enabling using this thread http://forum.xda-developers.com/showthread.php?t=1031734&page=1
..but not completely..just wanna ask for some help here..
dis my results..
$ $su
# df
/dev: 142216K total, 12K used, 142204K available (block size 4096)
/mnt/asec: 142216K total, 0K used, 142216K available (block size 4096)
/cache: 25656K total, 72K used, 25584K available (block size 4096)
/data: 185240K total, 117332K used, 67908K available (block size 4096)
/system: 213376K total, 195116K used, 18260K available (block size 4096)
/system/sd: 995722K total, 2K used, 995720K available (block size 1024)
/mnt/sdcard: 2821868K total, 810300K used, 2011568K available (block size 4096)
/mnt/secure/asec: 2821868K total, 810300K used, 2011568K available (block size 4096)
/mnt/asec/com.revo.sog-1: 12464K total, 11168K used, 1296K available (block size 4096)
/mnt/asec/mobi.mgeek.TunnyBrowser-1: 4164K total, 2400K used, 1764K available (block size 4096)
/mnt/asec/com.droidhen.basketball2-1: 3124K total, 1440K used, 1684K available (block size 4096)
/mnt/asec/com.gau.go.launcherex-1: 4164K total, 2632K used, 1532K available (block size 4096)
/mnt/asec/jackpal.androidterm-1: 2061K total, 75K used, 1986K available (block size 512)
/mnt/asec/com.a0soft.gphone.app2sd-2: 2061K total, 226K used, 1835K available (block size 512)
/mnt/asec/nl.ejsoft.mortalskies-1: 8312K total, 6164K used, 2148K available (block size 4096)
/mnt/asec/au.com.phil.abduction2-1: 10388K total, 9164K used, 1224K available (block size 4096)
/mnt/asec/android.tether-1: 2061K total, 402K used, 1659K available (block size 512)
/mnt/asec/com.gameloft.android.GAND.GloftMCHP-1: 8312K total, 6152K used, 2160K available (block size 4096)
/mnt/asec/com.monotype.android.font.Comix-1: 2061K total, 30K used, 2031K available (block size 512)
/mnt/asec/com.realarcade.TT2_L-1: 2061K total, 414K used, 1647K available (block size 512)
/mnt/asec/com.gameloft.android.TBFV.GloftGTHP.ML-1: 4164K total, 2884K used, 1280K available (block size 4096)
/mnt/asec/com.monotype.android.font.Abscissa-1: 2061K total, 32K used, 2029K available (block size 512)
/mnt/asec/com.gau.go.launcherex.gowidget.taskmanager-1: 2061K total, 178K used, 1883K available (block size 512)
/mnt/asec/souvey.musical.pro-1: 2061K total, 780K used, 1281K available (block size 512)
/mnt/asec/com.polarbit.asquadron-1: 10388K total, 8652K used, 1736K available (block size 4096)
/mnt/asec/com.bionicpanda.aquapets-1: 24912K total, 23192K used, 1720K available (block size 4096)
/mnt/asec/com.hongik.fontomizer-1: 3124K total, 1288K used, 1836K available (block size 4096)
/mnt/asec/com.deckeleven.windsofsteel-1: 5200K total, 3848K used, 1352K available (block size 4096)
/mnt/asec/com.facebook.katana-1: 4164K total, 3000K used, 1164K available (block size 4096)
/mnt/asec/com.esmertec.android.jbed-1: 4164K total, 2060K used, 2104K available (block size 4096)
/mnt/asec/com.xTouch.game.Crazyhamster_Super-1: 7276K total, 5872K used, 1404K available (block size 4096)
/mnt/asec/com.seasmind.android.gmappmgr-1: 2061K total, 466K used, 1595K available (block size 512)
/mnt/asec/com.keramidas.TitaniumBackup-1: 3124K total, 1988K used, 1136K available (block size 4096)
/mnt/asec/stericson.busybox-1: 4164K total, 2592K used, 1572K available (block size 4096)
/mnt/asec/de.schaeuffelhut.android.openvpn-1: 2061K total, 128K used, 1933K available (block size 512)
/mnt/asec/com.speedsoftware.rootexplorer-1: 2061K total, 219K used, 1842K available (block size 512)
/mnt/asec/alterforce.engine-1: 5200K total, 3984K used, 1216K available (block size 4096)
/mnt/asec/com.gameloft.android.GAND.GloftASCR-1: 4164K total, 3040K used, 1124K available (block size 4096)
/mnt/asec/de.schaeuffelhut.android.openvpn.installer-1: 2061K total, 562K used, 1499K available (block size 512)
/mnt/asec/com.google.zxing.client.android-1: 2061K total, 497K used, 1564K available (block size 512)
/mnt/asec/com.gameloft.android.GAND.GloftNOHP-1: 10388K total, 8696K used, 1692K available (block size 4096)
/mnt/asec/com.eodumbyel.go.launcherex.theme.sfNewGlass-1: 3124K total, 1548K used, 1576K available (block size 4096)
/mnt/asec/com.rovio.angrybirdsrio-1: 14536K total, 12752K used, 1784K available (block size 4096)
/mnt/asec/com.handcent.nextsms-1: 5200K total, 3176K used, 2024K available (block size 4096)
/mnt/asec/com.fox.game.towerbloxx-1: 3124K total, 1200K used, 1924K available (block size 4096)
/mnt/asec/com.sohu.blog.lzn1007.pvz-1: 4164K total, 2812K used, 1352K available (block size 4096)
/mnt/asec/com.lonedwarfgames.tanks.android-1: 5200K total, 3996K used, 1204K available (block size 4096)
/mnt/asec/com.codingcaveman.Solo-1: 6236K total, 4440K used, 1796K available (block size 4096)
/mnt/asec/com.ideaworks3d.nfsshift-1: 41512K total, 39564K used, 1948K available (block size 4096)
/mnt/asec/com.distdevs.hockeynations10us-1: 13500K total, 11628K used, 1872K available (block size 4096)
/mnt/asec/com.nova.root-1: 14536K total, 12808K used, 1728K available (block size 4096)
/mnt/asec/com.magmamobile.game.BubbleBlast2-1: 6236K total, 4700K used, 1536K available (block size 4096)
/mnt/asec/com.konami.xmen-1: 24912K total, 23472K used, 1440K available (block size 4096)
#
as u can see sir the highlighted red line..you asses this as corect?
then i had update.zip the latest version of darktremor a2sd..
then id try the a2sd cache..to activate..
# a2sd cachesd
[ ] GREP: Using ROM Busybox.
[!] REBOOT: Using Darktremor Busybox.
[!] FDISK: Using Darktremor Busybox.
[ ] CAT: Using ROM Busybox.
[ ] MKDIR: Using ROM Busybox.
[ ] RMDIR: Using ROM Busybox.
[ ] CHMOD: Using ROM Busybox.
[ ] MOUNT: Using ROM Busybox.
[ ] UMOUNT: Using ROM Busybox.
[ ] CP: Using ROM Busybox.
[ ] RM: Using ROM Busybox.
[ ] MV: Using ROM Busybox.
[ ] LN: Using ROM Busybox.
[ ] MORE: Using ROM Busybox.
[ ] MKNOD: Using ROM Busybox.
[ ] AWK: Using ROM Busybox.
[ ] SLEEP: Using ROM Busybox.
[ ] SYNC: Using ROM Busybox.
[ ] TEE: Using ROM Busybox.
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.3 Beta 4a (2011-01-30)
[-] Checkpoint 1: Check for SD Card Fix and Implement.
[-] Checkpoint 2: Run Dalvik Heap Program (if exists).
[-] Checkpoint 3: Run Set Low Memory Killer Program (if exists).
[-] Checkpoint 4: Determine Mount Point.
[-] Checkpoint 5: Set Parameter Variables.
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[-] Checkpoint 6: Insert CyanogenMod patch.
[-] Checkpoint 7: Complete Dalvik Cache Move (if applicable).
[-] Checkpoint 8: Resetting Dalvik Cache Partition
[-] Checkpoint 9: Switching Davlik Cache to Cache Partition (if applicable)
[-] Checkpoint 10: Checking for existence of command parameter
[-] Checkpoint 11: Check for a2sd help command
[-] Checkpoint 12: Check for a2sd check command
[-] Checkpoint 13: Display version information.
[ ] Starting Darktremor Apps2SD Version 2.7.5.3 Beta 4a
[-] Checkpoint 14: Check for filesystem support.
[-] Checkpoint 15: Mount partition.
[-] Checkpoint 16: Reset Dalvik if Flag File is present.
[-] Checkpoint 17: Mount Swap.
[-] Checkpoint 18: Display Heap Size.
[ ] Heap Size set to: 64m
[-] Checkpoint 19: Check for start parameter and launch start2sd if needed.
[ ] Launching Apps2SD Start Program with cachesd
[ ] Starting Darktremor Apps2SD in cachesd mode
[X] EXT partition is not mounted. Cannot continue.
[ ] Setting File System Ready property to 1.
#
huhuhuhuhu..what was wrong?
pls help..anyone expert?
btw..im using 4gb class 4..tdk brand..
ace on froyo..2.2.1 rooted..kc1..
also i try the link2sd app..but it says.."no partition mount,cannot create link"..
wew..
thanks hoping for some coments..

Whats ur partition table? Im also on froyo xxkc1, mmc with two partition, 1st partition as fat32 and 2nd as ext2. Link2sd and darktremore a2sd works great for me. Weird that u had such problem. Maybe theres something wrong with ur partition table
Sent from your phone

an0nym0us_ said:
Whats ur partition table? Im also on froyo xxkc1, mmc with two partition, 1st partition as fat32 and 2nd as ext2. Link2sd and darktremore a2sd works great for me. Weird that u had such problem. Maybe theres something wrong with ur partition table
Sent from your phone
Click to expand...
Click to collapse
i had that patition also..
i had used mini tool partition in partitioning..
can u help me determine ways wrong..as u can see on scripts id post..

I use dirty trick to enable a2sd on my ace, by using link2sd mount script. What i do is,
1 - backup with cwm incase something goes wrong (actually i need to recover two time as my ace cannot boot twice while attempting this)
2 - install link2sd from market.
3 - start link2sd. It will prompt to reboot to enable its startup script.
4 - reboot.
5 - open link2sd again, now it should work. Try to link any app to test. If it works, unlink that app.
6 - open rootexplorer, edit /system/etc/install-recovery.sh (this is the mount script generated by link2sd earlier).
7 - edit it so it looks like this:
#!/system/bin/sh
#added by link2sd
sleep 5
mount -t ext2 -o rw /dev/block/vold/179:2 /system/sd
mount -t ext2 -o rw /dev/block/mmcblk0p2 /system/sd
8 - reboot ur device manually so the second partition can be mounted on a2sd mountpoint.
9 - open terminal emulator, type:
su
a2sd install
10 - if a2sd script whining about how dangerous it is to install it while second partition is mounted, try to unmount sdcard thru system setting (and obviously dont mount it back) and repeat step no 8 again. If it goes like plan, device should automatically boot.
11 - when it successfully boot, now can use a2sd command like data2sd or cachesdreset. Also can uninstall link2sd because no need for it anymore
Sent from your phone

Btw when editing install-recovery.sh, just edit the "/system/sd" part, thats the most important because it mounts second partition to a2sd recognized mountpoint. U also can modify "sleep 5" line based on ur need. It determine how long ur device should wait before mounting second partition upon booting. Obviously 5 means five seconds
P/s: this only works with froyo, it will never ever works with gingerbread. I also wouldnt be responsible if ur device stuck on boot (happen to me twice when trying to figure out this whole thing), and thats why i said to create backup in step no 1
Sent from your phone

an0nym0us_ said:
I use dirty trick to enable a2sd on my ace, by using link2sd mount script. What i do is,
1 - backup with cwm incase something goes wrong (actually i need to recover two time as my ace cannot boot twice while attempting this)
2 - install link2sd from market.
3 - start link2sd. It will prompt to reboot to enable its startup script.
4 - reboot.
5 - open link2sd again, now it should work. Try to link any app to test. If it works, unlink that app.
6 - open rootexplorer, edit /system/etc/install-recovery.sh (this is the mount script generated by link2sd earlier).
7 - edit it so it looks like this:
#!/system/bin/sh
#added by link2sd
sleep 5
mount -t ext2 -o rw /dev/block/vold/179:2 /system/sd
mount -t ext2 -o rw /dev/block/mmcblk0p2 /system/sd
8 - open terminal emulator, type:
su
a2sd install
9 - if a2sd script whining about how dangerous it is to install it while second partition is mounted, try to unmount sdcard thru system setting (and obviously dont mount it back) and repeat step no 8 again. If it goes like plan, device should automatically boot.
10 - when it successfully boot, now can use a2sd command like data2sd or cachesdreset. Also can uninstall link2sd because no need for it anymore
Sent from your phone
Click to expand...
Click to collapse
dude..as i said..link2sd doesnt conect too..
cnt even create link..
just want u to know also that i had been enable the ap2sd but the only prob it dowsnt detect my partition..as u can see in aps2sd cache script..
lalso link2sd cant detect my partition..
what i have frst to do?
btw how to disable aps2sd darktrmor?

When u partitioned ur sdcard, do u create both partition as primary?
Also if u install darktremore a2sd zip package via cwm, try to mount system partition first before installing it because i think it doesnt have proper mount script, resulting in breaking whole a2sd script.
Sent from your phone

an0nym0us_ said:
When u partitioned ur sdcard, do u create both partition as primary?
Also if u install darktremore a2sd zip package via cwm, try to mount system partition first before installing it because i think it doesnt have proper mount script, resulting in breaking whole a2sd script.
Sent from your phone
Click to expand...
Click to collapse
yeah..i did same as primary..

and also..i had partition and mounting it b4 i got update.zip via recovery..

after a week..i had made to work with link 2 sd..
now it detects my sd card patition..
then id tried now to enbale a2sd cachesd
it works..
too many scripsts..
til then..
i think some error in the scripts..
it says if i want to continue (y/n)..id forgot the error..
i didnt copied it.
i choose "n" which no..too make it safe.
then it says my phone will reboot..
after reboot..all my apps gone..except the default apps..
huhuhuhuhuhuh..what happen?
hope someone could help me..
i cant install apps also..aplication is not installed as the phone said..
even my titanium backup cant be install..wew..
what happen..pls help me..
dont know what to do..

geraldgeron said:
after a week..i had made to work with link 2 sd..
now it detects my sd card patition..
then id tried now to enbale a2sd cachesd
it works..
too many scripsts..
til then..
i think some error in the scripts..
it says if i want to continue (y/n)..id forgot the error..
i didnt copied it.
i choose "n" which no..too make it safe.
then it says my phone will reboot..
after reboot..all my apps gone..except the default apps..
huhuhuhuhuhuh..what happen?
hope someone could help me..
i cant install apps also..aplication is not installed as the phone said..
even my titanium backup cant be install..wew..
what happen..pls help me..
dont know what to do..
Click to expand...
Click to collapse
See, thats what i told u earlier.. a2sd script will prompt about how dangerous it is to install it while the partition is mounted. No matter u select y or n, after that ur phone will be messed. Thats what happen to me. If that prompt appear, u should close/kill terminal, unmount sdcard via system setting and try it again.
Sent from your phone

an0nym0us_ said:
See, thats what i told u earlier.. a2sd script will prompt about how dangerous it is to install it while the partition is mounted. No matter u select y or n, after that ur phone will be messed. Thats what happen to me. If that prompt appear, u should close/kill terminal, unmount sdcard via system setting and try it again.
Sent from your phone
Click to expand...
Click to collapse
ahhh..i see..
if i close the terminal it wont restart right?
hmmm..ok
i had done the factory reset sucesfully..
what does it mean..i am back to zero?
or still i had the enabke darktremor?

Does this work on gingerbread??
Sent from my Galaxy ace using Tapatalk

hassaan123 said:
Does this work on gingerbread??
Sent from my Galaxy ace using Tapatalk
Click to expand...
Click to collapse
If u read this thread carefully, u should know the answer by urself
Sent from your phone

hassaan123 said:
Does this work on gingerbread??
Sent from my Galaxy ace using Tapatalk
Click to expand...
Click to collapse
nope..it wont..
but theres a thread regarding enbling dartrmors on gingerbread..just find it yourself,,
no time to find it..thanks..

an0nym0us_ said:
See, thats what i told u earlier.. a2sd script will prompt about how dangerous it is to install it while the partition is mounted. No matter u select y or n, after that ur phone will be messed. Thats what happen to me. If that prompt appear, u should close/kill terminal, unmount sdcard via system setting and try it again.
Sent from your phone
Click to expand...
Click to collapse
ahhh..i see..
if i close the terminal it wont restart right?
hmmm..ok
i had done the factory reset sucesfully..
what does it mean..i am back to zero?
or still i had the enabke darktremor?

Dont know about factory reset, maybe it deletes a2sd script, maybe not. Try to run
su
a2sd
And see what the output is. If it said cannot find that command, ur back to square one, need to start from the beginning again
Sent from your phone

an0nym0us_ said:
Dont know about factory reset, maybe it deletes a2sd script, maybe not. Try to run
su
a2sd
And see what the output is. If it said cannot find that command, ur back to square one, need to start from the beginning again
Sent from your phone
Click to expand...
Click to collapse
woah..
it says
]
[] a2sd is applying
you need to give darktremor a command to run
type a2sd help for list of command
[]
that..and then sir?
then i had tried also the command
a2sd cachesd
unfortunately..
same as my former prob on my first post..
partition is not mounted,,
cannot continue..
zzzz...but i had tried link2sd..it works flawlessly..
it detects my ext2..

an0nym0us_ said:
I use dirty trick to enable a2sd on my ace, by using link2sd mount script. What i do is,
1 - backup with cwm incase something goes wrong (actually i need to recover two time as my ace cannot boot twice while attempting this)
2 - install link2sd from market.
3 - start link2sd. It will prompt to reboot to enable its startup script.
4 - reboot.
5 - open link2sd again, now it should work. Try to link any app to test. If it works, unlink that app.
6 - open rootexplorer, edit /system/etc/install-recovery.sh (this is the mount script generated by link2sd earlier).
7 - edit it so it looks like this:
#!/system/bin/sh
#added by link2sd
sleep 5
mount -t ext2 -o rw /dev/block/vold/179:2 /system/sd
mount -t ext2 -o rw /dev/block/mmcblk0p2 /system/sd
8 - reboot ur device manually so the second partition can be mounted on a2sd mountpoint.
9 - open terminal emulator, type:
su
a2sd install
10 - if a2sd script whining about how dangerous it is to install it while second partition is mounted, try to unmount sdcard thru system setting (and obviously dont mount it back) and repeat step no 8 again. If it goes like plan, device should automatically boot.
11 - when it successfully boot, now can use a2sd command like data2sd or cachesdreset. Also can uninstall link2sd because no need for it anymore
Sent from your phone
Click to expand...
Click to collapse
im looking forward to do this..your trick..coz i sucessfully link all my apps to my sd via link2sd..
just dont know how to start and where..
do i had to uninstall a2sd that i had previously first,, b4 doing this?
or i just go with your instruction?
but not only apps was link..i had link all..
how about that?

geraldgeron said:
im looking forward to do this..your trick..coz i sucessfully link all my apps to my sd via link2sd..
just dont know how to start and where..
do i had to uninstall a2sd that i had previously first,, b4 doing this?
or i just go with your instruction?
but not only apps was link..i had link all..
how about that?
Click to expand...
Click to collapse
nope, just use ur current installed a2sd.. no need to reinstall it. the problem it that a2sd cannot mount properly. so because now u can use link2sd, just do like what i did, use link2sd mountscript to help a2sd mount to its proper mountpoint
and because u had installed link2sd and confirmed it works, start from step 1 and obviously ignore step 2, 3, 4 and 5

Related

[Tut/Guide] A2SD setup (uses EXT partition) for Froyo FRF50/FRF83/FRF85B

I've seen numerous questions on how to do this and feel its very necessary since we only have 200960KB of space in /data.
Running out of space so quickly on your superphone is no fun.
First off: If your not technically inclined you'd do well to use a ROM with A2SD (EXT) pre-installed.
What this does:
Moves ALL your apps to the EXT partition on your SD card
Moves even the dalvik cache to the SD card
Gives you the space you need to install every single live wallpaper, widget, or app you want.
Prerequisites:
You have a rooted Froyo ROM. (without A2SD of course)
Your SD card has a working EXT2 or EXT3 partition. See the Darktremor thread on how to create one. (check the references section below)
You have a good recovery image installed. I use AmonRa 1.70
You have the command line tools ADB and FASTBOOT installed, and the Nexus USB driver installed.
The steps that should get you there:
Download and put "a2sd-2.7-update3-signed.zip" on the root of the sd card. Get the latest from the Darktremor thread.
Download a boot.img that has the required init.rc changes needed to automatically start A2SD. Get it from here (mediafire)(Thanks Leonnib4) or here (rapidshare) or from a kang-o-rama ROM.
Make directory /system/sd
Code:
adb remount
adb shell mkdir /system/sd
Reboot to recovery
Code:
adb reboot recovery
(in recovery, phone) Nandroid backup.
(OPTIONAL, in recovery) Wipe SD:EXT partition. (not the whole SD CARD, just the EXT partition). Useful if you had junk lying around from a previous ROM. Note that this will delete all the apps you had on the ext partition.
(in recovery, phone) Flash "a2sd-2.7-update3-signed.zip"
(in recovery, phone) Power off the phone. (not reboot)
Start the phone in bootloader mode, with the USB cable plugged in.
While the phone is off, hold the trackball down and then press the power button.
(in bootloader mode, desktop console). On your desktop/laptop open a shell (start->run->cmd in windows) and run the following commands.
Code:
#check if the phone is connected ok, you should see your device after running the first command
fastboot devices
#flash the boot image.
fastboot flash boot boot.img
#reboot your phone
fastboot reboot
Either as your phone starts, or after its ready, Run the following commands via adb. I ran it as soon as the phone connected to adb. (nexus loading animation)
Code:
adb remount
#enable a2sd
adb shell a2sd install
#also move the dalvik cache to sd card.
adb shell a2sd cachesd
#check if all is ok
adb shell a2sd check
#reboot to test that the phone starts ok
adb reboot
You're all set. To check that its running do one or all of the following:
- run: adb shell a2sd check
Code:
C:\Users\me\Desktop>adb shell a2sd check
Starting Darktremor A2SD version 2.7 Update 3
[ ] Mounting /system as read-write
[ ] Starting A2SD in check mode
[ ] Running A2SD Check Program.
[ ] Searching for Mount Point...
[x] Mount point /system/sd located.
[ ] Checking for ext partition
/dev/block/mmcblk0p2 /system/sd ext2 rw,noatime,nodiratime,barrier=1,data=ordered 0 0
[x] Ext partition is mounted.
[ ] Checking A2SD links.
A2SD Status Report
===============================================================
Apps - [-] Linked to SD Card.
[-] File .noa2sd not found.
[COLOR="red"][x] Programs run from SD card[/COLOR]
To run from internal storage, type a2sd remove
Private Apps - [-] Linked to SD Card.
[-] File .noa2sd not found.
[COLOR="red"][x] Private Programs run from SD card[/COLOR]
To run from internal storage, type a2sd remove
Dalvik Cache - [-] Symbolically Linked.
[-] File .dalvikcache found.
[COLOR="red"][x] Dalvik runs from SD card[/COLOR]
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart
Swap - [!] Partition not present.
[!] Swap does not start.
ZipAlign - [!] Not running at boot.
Property Patch - [-] File System Ready property
found.
[COLOR="red"][x] Boot image init.rc patched.[/COLOR]
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
- run: adb shell df
Code:
C:\Users\me\Desktop>adb shell df
/dev: 201636K total, 12K used, 201624K available (block size 4096)
/mnt/asec: 201636K total, 0K used, 201636K available (block size 4096)
/system: 148480K total, 111248K used, 37232K available (block size 4096)
[COLOR="Blue"]/data: 200960K total, 60716K used, [B]140244K available[/B][/COLOR] (block size 4096)
/cache: 97280K total, 1672K used, 95608K available (block size 4096)
[COLOR="red"]/system/sd: 702873K total, [B]172189K used[/B], 530684K available[/COLOR] (block size 1024)
/mnt/sdcard: 14898512K total, 9349176K used, 5549336K available (block size 8192)
/mnt/secure/asec: 14898512K total, 9349176K used, 5549336K available (block size 8192)
/mnt/asec/com.google.android.stardroid-1: 3124K total, 1504K used, 1620K available (block size 4096)
/mnt/asec/com.tmsoft.whitenoise.lite-1: 7276K total, 5856K used, 1420K available (block size 4096)
-run: adb shell ls -l /data
Code:
C:\Users\me\Desktop>adb shell ls -l /data
drwxr-x--- root log 2010-05-24 09:04 dontpanic
drwx------ system system 2010-06-26 23:18 backup
drwxrwx--x system system 2010-06-26 22:16 data
drwxrwxrwx root root 2010-06-26 18:57 a2sd
drwx------ root root 2010-06-26 18:57 property
drwxrwxr-x system system 2010-06-26 18:57 anr
drwxrwx--x shell shell 2010-06-26 18:57 local
lrwxrwxrwx root root 2010-06-26 19:07 [COLOR="Red"]app -> /system/sd/app[/COLOR]
lrwxrwxrwx root root 2010-06-26 19:07 [COLOR="red"]app-private -> /system/sd/app-private[/COLOR]
lrwxrwxrwx root root 2010-06-26 19:07 [COLOR="red"]dalvik-cache -> /system/sd/dalvik-cache[/COLOR]
drwxrwx--t system misc 2010-06-26 23:18 misc
drwxrwxr-x system system 2010-06-26 23:18 system
drwxr-xr-x system system 2010-06-26 18:57 tombstones
drwxrwx--- root root 2010-05-24 09:04 lost+found
Referenced Threads:
Darktremor A2SD (Apps2SD)
NexusOne Q&A thread
Notes:
I am not responsible if something goes wrong. nandroid backup and understand what you are doing!
This will probably work on other Froyo ROMS too.
You can install a custom kernel after installing this boot image. Just dont install a complete boot image. Boot image= ramdisk+kernel.
Thanks to Darktremor/tkirton and leonnib4.
nice post!
great tip, been looking to get ext apps2sd in froyo for a while and kmobs and the rest of the team refuse to share.
after doing this you can flash any kernel. this should be included in all froyo roms
Nice job per usual britoso
Awesome post...
Nice job by summing up all that in one thread.
-- nevermind --
So I see you did not solve the boot.img issue. Just wanted to warn you that I rapidly put mine on rapidshare because I thought it was just for you -- so it might be limited to 10 downloads.
-- nevermind --
I also wrote a set of only 3 scripts that seems to do the job:
- one that mounts the ext partition if exists, at boot (boot.img + 10a2sd)
- one that can put app2sd on or off (xbin/a2sd)
- one that can put dalvik2sd on or off (xbin/swap)
- and also one for auto zipalign at boot (zaab)
yeah... that maked four. basicly a2sd takes only 2 scripts
All also inspired from Darktremor's work (from a2sd-2.7-2 from another thread).
All those scripts are on my github repo.
See if it works.
Thanks to Darktremor, britoso, Cyanogen and all of you who made it possible. So much free space now!!!
Thanks for the info.
Is this a different method of apps2sd than implemented on Paul's MoDaCo r19 with apps2sd? If I have that installed already do I need to go through this process? Thanks
i used leo's custom spare parts and it enabled a2sd for me. i'm running frf83 deoxed. i tried partitioning my sd card via amonra and via terminal on my mac, and i couldn't it to work right. i'll try your method method later on.
jamaa124 said:
i used leo's custom spare parts and it enabled a2sd for me. i'm running frf83 deoxed. i tried partitioning my sd card via amonra and via terminal on my mac, and i couldn't it to work right. i'll try your method method later on.
Click to expand...
Click to collapse
partitionning via amon_ra did not work?
unlikely...
leonnib4 said:
partitionning via amon_ra did not work?
unlikely...
Click to expand...
Click to collapse
no dude, i couldn't get it to work for me.
jamaa124 said:
no dude, i couldn't get it to work for me.
Click to expand...
Click to collapse
Very unlikely.
Is your sdcard ok? I mean, really?
Because even with darktermor method you ll need to partition your sdcard..
Maybe try another recovery..
leonnib4 said:
Very unlikely.
Is your sdcard ok? I mean, really?
Because even with darktermor method you ll need to partition your sdcard..
Maybe try another recovery..
Click to expand...
Click to collapse
my sdcard is fine. i thought that there was something wrong with it at first, but there was nothing wrong with it. now, once installed the spare parts that you include in your roms, everything seems to work fine for me.
jamaa124 said:
my sdcard is fine. i thought that there was something wrong with it at first, but there was nothing wrong with it. now, once installed the spare parts that you include in your roms, everything seems to work fine for me.
Click to expand...
Click to collapse
Ok good.
So it means you sdcard has been partitioned.
Im interrested in your case: how did you knew partinioning did not work on recovery, then with your mac?
In fact: what did not work how did you know and have you any error message?
Thx
leonnib4 said:
Ok good.
So it means you sdcard has been partitioned.
Im interrested in your case: how did you knew partinioning did not work on recovery, then with your mac?
In fact: what did not work how did you know and have you any error message?
Thx
Click to expand...
Click to collapse
i couldn't tell that there was a problem from the bootloader or from my mac because everything seemed fine. if i encountered any problems while trying to partition my card, i would reformat the entire card and start over. i followed all of the directions...from xda and various youtube videos. if you go under disk utilities on a mac, it'll show whether or not your sd card has been partitioned. everything seemed fine. i didn't notice the problem until i went move few apps to my sdcard and that's when i realized that the button was still dark. i think that i may have messed up using terminal, somewhere along the route. i'm guessing that your spare parts must've filled in the missing line for me. everything is working fine now.
Will this work for the frf85b build?
does it work with AOSP 2.2 FRF83?I pushed the boot.img and the A2SD version 2.7 Update 3r1 but it can't mount the ext partition
billp said:
does it work with AOSP 2.2 FRF83?I pushed the boot.img and the A2SD version 2.7 Update 3r1 but it can't mount the ext partition
Click to expand...
Click to collapse
I built the boot.img for FRF83.
It won't only work with that boot.img...
What have you tried?
What are the errors?
leonnib4 said:
I built the boot.img for FRF83.
It won't only work with that boot.img...
What have you tried?
What are the errors?
Click to expand...
Click to collapse
I followed the instructions above. here's the result...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I renamed the boot.img to app2extboot.img to recognize it
I remind you that I use AOSP 2.2 FRF83 and NOT LeoFroyo or Kang-o-rama. Is it compatible or not?
billp said:
I followed the directions above. here's the result...
I renamed the boot.img to app2extboot.img to recognize it
I remind you that I use AOSP 2.2 FRF83 and NOT LeoFroyo or Kang-o-rama. Is it compatible or not?
Click to expand...
Click to collapse
I could bet you did not create your ext partition under Amon_RA's recovery
Your filesystem contains unsupported flags.
Try again with Amon_RA's: ext2 then ext3
Market issue
I am having a huge issue with the market when i use the ext3 a2sd, i have had a ext3 partition since i had my g1 and everything worked fine, but every froyo A2SD old style, i go to market to install a app and it downloads and get stuck at installing. When i go to applications all of my apps that are on my ext3 partition are constantly "computing" it is really getting on my nerves i have tried 4 different roms and can never get past the market issue....
anyone else experiencing this issue?

IO Error on SDcard

Hi,
I am running VEGAN 5.1.1 custom rom + Clemsyn's v 9 kernel. The table seems to work fine when it is not in the sleep mode. But once I let it sit over night, I am not able to get the screen back anymore. I was, however, able to adb to the device. I am seeing a lot of io error in dmesg:
<3>[26759.075985] end_request: I/O error, dev mmcblk3, sector 288
<3>[26759.081599] mmcblk3: error -110 sending status comand
<3>[26759.086526] mmcblk3: error -110 sending read/write command, response 0x0,
card status 0x0
<3>[26759.094905] end_request: I/O error, dev mmcblk3, sector 34
<3>[26759.100399] FAT: FAT read failed (blocknr 33)
Also, df shows:
/dev: 223356K total, 12K used, 223344K available (block size 4096)
/mnt/asec: 223356K total, 0K used, 223356K available (block size 4096)
/system: 204800K total, 119668K used, 85132K available (block size 4096)
/logodata: 32768K total, 6656K used, 26112K available (block size 4096)
/data: 1873950K total, 140978K used, 1732972K available (block size 1024)
/cache: 222464K total, 3196K used, 219268K available (block size 4096)
/misc: 16384K total, 1160K used, 15224K available (block size 4096)
/mnt/sdcard: I/O error
/mnt/secure/asec: I/O error
/mnt/asec/com.rovio.angrybirdsseasons-1: 18688K total, 16812K used, 1876K availa
ble (block size 4096)
/mnt/asec/com.rovio.angrybirdsrio-1: 14536K total, 12756K used, 1780K available
(block size 4096)
Anyone has similar issue?
Thanks,
--Gary
To add to this. I did repartition my internal storage. I wonder if I need to reformat the /dev/block/mmcblk3p2 using windows? I tried using the parted via CWM but I couldn't find a mkfs for fat32.

[GUIDE] Config EXT+SWAP partition on AlfsKernel+GDX

I made this Tutorial for enable ext and swap partition.
I have based this guide on:
- sdparted script (thanks to 51dusty): i modified the script for works on our X8
- on http://forum.cyanogenmod.com (Enabling swap)
Requirements:
- AlfsKernel (i used v03 for this tutorial)
- GDX (i used V019 for this tutorial)
- ADB
- sdcard (i used SD 8GB class 4 -> recomended class 6)
Click to expand...
Click to collapse
My configuration: (with SD 8GB class 4)
- fat32 -> 7040 MB
- ext3 -> 1024 MB
- swap -> 128 MB (swappiness 100)
Click to expand...
Click to collapse
Instructions:
1) download sdparted.txt and userinit.txt below to root of sdcard
2) boot into CWM recovery
3) mount /sdcard, /sd-ext (if you have ext partition) and /system
4) backup sdcard: adb pull /sdcard/ sdbackup
5) If you have ext partition and you want backup this: adb pull /sd-ext/ sdextbackup
6) run: adb shell
7) move sdparted.txt to /sbin -> mv /sdcard/sdparted.txt /sbin/sdparted
8) then, chmod 755 /sbin/sdparted
9) run sdparted: for the differents options see the original thread
This is for my configuration -> sdparted -es 1024M -ss 128M -efs ext3
10) restore sdcard backup: adb push sdbackup /sdcard
11) restore sd-ext backup( if necessary): adb push sxtbackup /sd-ext
12) move userinit.sh to /sd-ext -> mv /sdcard/userinit.txt /sd-ext/userinit.sh
13) then, chmod 755 /sd-ext/userinit.sh
14) reboot
Click to expand...
Click to collapse
Note:
For change swappiness, you must edit userinit.txt before of copy this to sdcard. You must modified line 12 with the value you want:
echo 100 > /proc/sys/vm/swappiness;
Click to expand...
Click to collapse
15-11-2011
Change sdparted.txt, there is error with command -ufs.
Click to expand...
Click to collapse
exactly what is this swapper for??
i've never used it before
here
make google as your friend..
i use swapper 2 with swap partition and is working perfectly.
i have a swap partition with 128mb,ext 3 with 512mb and the rest in fat32.
my sdcard is a kingston 4gb class 4.
jajss said:
i use swapper 2 with swap partition and is working perfectly.
i have a swap partition with 128mb,ext 3 with 512mb and the rest in fat32.
my sdcard is a kingston 4gb class 4.
Click to expand...
Click to collapse
With this, you don't need any app.
This is another option for use swap taking advantages of the kernel, and i think that some users don't know.
MarJar said:
With this, you don't need any app.
This is another option for use swap taking advantages of the kernel, and i think that some users don't know.
Click to expand...
Click to collapse
ok.i only say that because swapper 2 its noob friendly.
Hi dev,
Just ask questions, what is swapiness?
Whats wrong if swapiness set to higher value or lower value?
Sent from my SK17i using XDA Premium App
you can see this http://en.wikipedia.org/wiki/Swappiness
After some test, for me, the best performance is 100; but for some people is 80. You must test it in your phone with your configuration and apps.
For change it and test without reboot, you can type in console: sysctl -w vm.swappiness=0
MarJar said:
you can see this http://en.wikipedia.org/wiki/Swappiness
After some test, for me, the best performance is 100; but for some people is 80. You must test it in your phone with your configuration and apps.
For change it and test without reboot, you can type in console: sysctl -w vm.swappiness=0
Click to expand...
Click to collapse
Nice info, thankz dev for reference.
Sent from my SK17i using XDA Premium App
anyone experienced any performance improvements after enabling swap?
i can notice in games that slowed down sometimes. On the rest i can't notice anything at least for now.
and i have swapiness set to 80.
Nice tutorial, I have question :
1. Can I install it with terminal emulator or script manager?
2. When I want to change kernel (alf's kernel to LDX), is it need re-setting (re-install) or not?
ahlulnugraha said:
Nice tutorial, I have question :
1. Can I install it with terminal emulator or script manager?
2. When I want to change kernel (alf's kernel to LDX), is it need re-setting (re-install) or not?
Click to expand...
Click to collapse
1) I don't test in terminal emulator, but 51dusty in his thread say NO.
2) i don't re-setting anything when i did
Dexter_prog said:
anyone experienced any performance improvements after enabling swap?
Click to expand...
Click to collapse
For me, all work better
hi
everytime i try to sdparted i get this output
/ # sdparted -es 1024M -ss 128M -efs ext3
sdparted -es 1024M -ss 128M -efs ext3
[: not found
[: not found
[: not found
checking script requirements...
checking /dev/block/mmcblk0...
[: not found
err: /dev/block/mmcblk0 does not exist!
:S
guelas said:
hi
everytime i try to sdparted i get this output
/ # sdparted -es 1024M -ss 128M -efs ext3
sdparted -es 1024M -ss 128M -efs ext3
[: not found
[: not found
[: not found
checking script requirements...
checking /dev/block/mmcblk0...
[: not found
err: /dev/block/mmcblk0 does not exist!
:S
Click to expand...
Click to collapse
+1
guelas said:
hi
everytime i try to sdparted i get this output
/ # sdparted -es 1024M -ss 128M -efs ext3
sdparted -es 1024M -ss 128M -efs ext3
[: not found
[: not found
[: not found
checking script requirements...
checking /dev/block/mmcblk0...
[: not found
err: /dev/block/mmcblk0 does not exist!
:S
Click to expand...
Click to collapse
+1
ADB writes this for me too.
I googled a bit, and "they've" said that the newer CWM could be the problem, it's not fully compatible to all SDCARDs. (mine is a Class6 8Gigs)
u need mount /data & /system.
terst said:
u need mount /data & /system.
Click to expand...
Click to collapse
We followed all the steps, and that includes mount data and system.
hi,
When I use this option(alfs 03+dx020).
sdparted -es 512M -ss 256M -efs ext4
got error like these:
converting /dev/block/mmcblk0p2 to ext4 filesystem...
/dev/block/mmcblk0p2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
done
retrieving current sdcard information...
/sbin/sdparted: line 637: parted: not found
script log is located @ /data/sdparted.log
---------- Post added at 06:39 PM ---------- Previous post was at 06:25 PM ----------
guelas said:
We followed all the steps, and that includes mount data and system.
Click to expand...
Click to collapse
change like this (the fist line of sdparted.txt)
#!/sbin/sh
---------- Post added at 07:04 PM ---------- Previous post was at 06:39 PM ----------
E15_nAa-06b_2.6.29.6-nAa-06b.ftf worked for me!
option: sdparted -es 512M -ss 256M -efs ext4
retrieving current sdcard information...
Model: SD H2104 (sd/mmc)
Disk /dev/block/mmcblk0: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 512B 15.2GB 15.2GB primary fat32 lba
2 15.2GB 15.8GB 512MB primary ext4
3 15.8GB 16.0GB 256MB primary linux-swap(v1)
Guy how to detect that the swap partition has been activated.
I have got the complete success msg as mentioned.
It is silly question but need help on this .

[MOD] Increase RAM memory size(without swapper!) (good for gaming)

Hi, here is a good mod specially for gaming and ICS roms which consumes big memory amount!!!
It is basically an .sh script that enables swapping. This makes device use part of sdcard to use it as RAM memory, so it can be increased a lot...
The only requirement is have root, use relatively fast sdcard and have enabled init.d scripts..
WI always have used this mod on my phone so i think it no needs testing
To it follow these steps:
1.- Root your device
2.- Make a swap partition in your sdcard (this step will format your sdcard!)
http://forum.xda-developers.com/wiki/SD_card_partitioning
2.1-In step 3 select "swap partition"
2.2-I recommend to make ~512MB partition because the SO will be going to fill it during you use the phone, but i always had 1GB partition, and no problems You can select 100MB or 50MB, but this is too little
3.- Check if there is a folder called init.d inside /system/etc/
3.1-If its there, follow next steps
3.2-If it is not there, you must activate init.d support, follow this tutorial: http://forum.xda-developers.com/showthread.php?t=1422061
3.- Copy 00userinit file to your device (must remove the .txt extension of the file, because i needed to put it to attatch the file)
4.- With root explorer, xplore, or similar copy it to /system/etc/init.d
5.- Set all permissions: rwxr-xr-x
6.- Reboot device
7.- For checking if it works, download Terminal emulator and type "free". See attatchment.
8.- If "swap" line has no "0" value, it works, congratulations
Click to expand...
Click to collapse
With this, you will:
Have swapping activated in your phone permanently, or until you remove that script or change of ROM.
Have bigger RAM memory amount, depending on your swap partition size
If you use supercharger or any RAM manager program, i should recomend you to activate hard gaming option, because:
-As you have bigger RAM memory, the useless aplications, instead of be closed, they will be stored in your sdcard partition so, you re able to have multitasking and hard gaming option at the same time
Click to expand...
Click to collapse
But this is not all!! You can open and edit this file to adapt it to your requirements:
You can edit this line to set swapiness cuantity, this defines the OS tendency to use swap partition, I not recommend to set it to 100, but 60 is good. Also, if you have slower sdcard, you should set it to 30~40:
-Change 60 value by something you want from 1 to 100 "then echo 60 > /proc/sys/vm/swappiness;"
If you have another sdcard partition like EXT4 or something to APP2SD, you should change the last number of "mmcblk0p2" by the number of the partition, i mean:
-If you have 3 partitions with this order: Fat32(that you use everyday), EXT4, and SWAP you should change it by mmcblk0p3
-If 3 partitions with this order: Fat32, SWAP,and EXT4, you should set it mmcblk0p2
Click to expand...
Click to collapse
I forgot it! To use this, remember that you should:
INSTALL THE LATEST BUSYBOX VERSION!!!
Click to expand...
Click to collapse
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
FOR THOSE WHO HAVE NOT WORKING, DELETE 00userinit and follow the steps with 01userinit attatched file
Isnt this much like swapfipe/partition?
Sent from my R800i using xda app-developers app
Does it works on locked bootloaders, obviously on gingerbread??????
i already have linux swap partition and use "swapper 2 " with doom kernel
after using swap we should disable ( turn off ) the swapper2 and then mount the SD card to computer ... so , my question is , is your script the same ? or it can disable - enable itself automatically ?
romeo_charly said:
Does it works on locked bootloaders, obviously on gingerbread??????
Click to expand...
Click to collapse
Locked or Unlocked shouldn't make a difference as long as you have Init.d support
Sent from my R800i using XDA APP and NXT2JB
bamsbamx said:
Hi, here is a good mod specially for gaming and ICS roms which consumes big memory amount!!!
It is basically an .sh script that enables swapping. This makes device use part of sdcard to use it as RAM memory, so it can be increased a lot...
The only requirement is have root, use relatively fast sdcard and have enabled init.d scripts..
WI always have used this mod on my phone so i think it no needs testing
To it follow these steps:
With this, you will:
But this is not all!! You can open and edit this file to adapt it to your requirements:
I forgot it! To use this, remember that you should:
Click to expand...
Click to collapse
Will this reck your phone in the long run
extremetempz said:
Will this reck your phone in the long run
Click to expand...
Click to collapse
This can't 'wreck a phone' but it can make the life of the SDCARD shorter.
sewer56lol said:
This can't 'wreck a phone' but it can make the life of the SDCARD shorter.
Click to expand...
Click to collapse
That is what says some people, but i always have used it and no problems...
In addition, sdcard life is sure longer than 10 years, if you use swap constantly it could be reduced to7 or 8...
Then, it makes no sense to say that, because you probably will buy another sdcard in less than 5 years
I tried this without success. I had to change the script that you provided. First I added #!/system/bin/sh to line 1 so it would run as a shell script and then the partition on my device was /dev/block/mmcblk0p3. I had to do the following to figure out which partition on my sdcard was actually set as swap. Once I edited the script with the addition to line 1 and the correct partition everything worked as expected.
Code:
~ # su
[email protected]:/ # fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 3818 30666992 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p2 3818 3849 250000 83 Linux
/dev/block/mmcblk0p3 3850 3880 249007+ 82 Linux swap
And my 00userinit script looks like:
Code:
#!/system/bin/sh
if [ -n /dev/block/mmcblk0p3 ];
then mkswap /dev/block/mmcblk0p3;
fi;
if [ -e /dev/block/mmcblk0p3 ];
then echo 60 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
I'm running FXP 142 CM9.1.
jimmyvau said:
I tried this without success. I had to change the script that you provided. First I added #!/system/bin/sh to line 1 so it would run as a shell script and then the partition on my device was /dev/block/mmcblk0p3. I had to do the following to figure out which partition on my sdcard was actually set as swap. Once I edited the script with the addition to line 1 and the correct partition everything worked as expected.
Code:
~ # su
[email protected]:/ # fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 3818 30666992 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p2 3818 3849 250000 83 Linux
/dev/block/mmcblk0p3 3850 3880 249007+ 82 Linux swap
And my 00userinit script looks like:
Code:
#!/system/bin/sh
if [ -n /dev/block/mmcblk0p3 ];
then mkswap /dev/block/mmcblk0p3;
fi;
if [ -e /dev/block/mmcblk0p3 ];
then echo 60 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
I'm running FXP 142 CM9.1.
Click to expand...
Click to collapse
Dont know what happened, the script I provided works for me, maybe you had to add that because you are running CM...
And what you say about partition number, I already stated that in original post.... thanks for reporting
Which is better
Is this MOD better than the ROEHSOFT ram expander
af230 said:
Is this MOD better than the ROEHSOFT ram expander
Click to expand...
Click to collapse
i think its different, i dont know how does it work, but reading its description I think that this app creates a swap file, instead of using swap partition.. I think this is worse method than i have posted, because system compresses all swapped memory into a file,so it could be slower... In addition, you must install an app to make it work, which means a service running in background, less space for other apps, etc,etc...
I dont know, but i think my method is better
in theory should this work on any phone?
evol4g said:
in theory should this work on any phone?
Click to expand...
Click to collapse
Yes, because android is based in linux
Is there a way u could do this without wiping the sd card?
Hello, can you tell us how this interferes with z-ram? I have z ram init.d script activated also. What is your recomandation? Turn it off or keep them both? Thx
CyberScopes said:
Is there a way u could do this without wiping the sd card?
Click to expand...
Click to collapse
Yes. I never partition from my phone. Insert ur card into ur laptop and partition with paragon partition manager (or your choice). If you have some free space on it you could easily resize ur fat32 partition to make it smaller and then use the unpartitioned space to make a linux swap partition or en ext2/3 for link2sd, if u want (I have both).. Did it lots of times. No problem
---------- Post added at 11:11 AM ---------- Previous post was at 11:06 AM ----------
jimmyvau said:
I tried this without success. I had to change the script that you provided. First I added #!/system/bin/sh to line 1 so it would run as a shell script and then the partition on my device was /dev/block/mmcblk0p3. I had to do the following to figure out which partition on my sdcard was actually set as swap. Once I edited the script with the addition to line 1 and the correct partition everything worked as expected.
Code:
~ # su
[email protected]:/ # fdisk -l /dev/block/mmcblk0
Disk /dev/block/mmcblk0: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1 3818 30666992 c Win95 FAT32 (LBA)
/dev/block/mmcblk0p2 3818 3849 250000 83 Linux
/dev/block/mmcblk0p3 3850 3880 249007+ 82 Linux swap
And my 00userinit script looks like:
Code:
#!/system/bin/sh
if [ -n /dev/block/mmcblk0p3 ];
then mkswap /dev/block/mmcblk0p3;
fi;
if [ -e /dev/block/mmcblk0p3 ];
then echo 60 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;
fi;
I'm running FXP 142 CM9.1.
Click to expand...
Click to collapse
I had to add the first line too. Thx for the tip. I'm on stock (NXT 1.3 flavour )
Works
+1 For you good sir
Will this be any good on GB for daily use, I'm always short on RAM on my SGS+
Whether Thise need what memory class 2 best performance?and thise damage on sd or not?
Sent from my R800i using Tapatalk 2

[Q] Repartition Tablet

Hey XDA Community,
I'm running into some troubles with a used Pandigital Novel tablet. I'll give a little history, I loaded a CM7 build, it (eventually) worked great. I started loading up apps, when I got a notification that I was low on disk space. I thought that odd since I replaced the internal micro SD with a 16GB class 10. I checked memory status and it says I have a maximum of 188MB (that's MEGA-bytes) and only 6MB free!
Properties-Storage shows the following:
SD Card
Total Space: 7.4GB
Available space: 7.12GB :good:
Internal storage
Total space: 188MB
Available space: 47.95MB
It looks like your script is searching for a partition file /dev/block/mmcblk1 and there isn't one there. I loaded a partition viewer app (after deleting two other apps to get some space) and it reads as follows:
Mount - None
Partition - /dev/block/mmcblk0
15193.5 MB
Mount - /sdcard
Partition - /dev/block/mmcblk0p1
305.0/7595.0 MB
Mount - None
Partition - /dev/block/mmcblk0p2
7596.7 MB
Mount - None
Partition - /dev/block/mtdblock0
2.0 MB
Mount - None
Partition - /dev/block/mtdblock1
8.0 MB
Mount - None
Partition - /dev/block/mtdblock2
1.0 MB
Mount - None
Partition - /dev/block/mtdblock3
10.0 MB
Mount - /system
Partition - /dev/block/mtdblock5
154.0/200.0 MB
Mount - /cache
Partition - /dev/block/mtdblock6
1.0/100.0 MB
Mount - /data
Partition - /dev/block/mtdblock7
140.0/168.0 MB
I tried moving apps to the SD card, but they fail... not sure why there either. I have a feeling something is really messed up in the partition tables, but I don't have the eye to see what it is or how to fix it. Guessing I need an expert to help me with a script and restore my install from backup or something. I'll keep looking around the forum, just don't want to start trying stuff and brick this thing.
Here's hoping there is a kind soul out there that can give me a hand.
~~JClouseau
Native Mount Data on Ext
Trying to get up the courage (and time) to follow the steps on XDA: Native Mount DataOnEXT. Could take some time, but would be really cool to have a couple gig for data.

Categories

Resources