I stupidly set my ext2 partiton to 128mb now I want to make it bigger, is it possible to do this without losing my apps?
No, back them up then re-partition the whole sd card. They are located in /system/sd/app. Search for how to setup adb and pull them or search for how to copy files in linux and that will give you the commands if you want to do it from terminal so you can copy them to /sdcard/
Don't forget to mount the /system/ as r/w, again search how to do that.
Related
I have been searching for a clear guide to enabling compcache on 3.9.2, but there is so much info about swap and compcache in this forum i feel like im running around like a chicken with its head cut off.
so far i have pushed 3 different userinit.sh files into my /system/sd with no change.
#free shows 0 swap , #cat /proc/ramzswap says doesnt exist , #cat /proc/swaps comes up blank.
So i searched more and ended up making a 32mb linuxswap partition on my sd and cant figure out how to get that moving either.
Im bogged down with information and have no idea where to start.
Someone point me in the right direction please. Im a swap/compcache noob...
i would like to run them both together, but as i said i need a noob setup guide
Your /system/sd is a mounted ext filesystem, correct?
Push the userinit.sh from here:
http://forum.xda-developers.com/showthread.php?t=542304
Then run it as root and report back any results:
# /system/sd/userinit.sh
i pushed userinit.sh to /system/sd/ with adb
then put in console
su
# /system/sd/userinit.sh and got /system/sd/userinit.sh: permission denied
should i be doing this in the recovery console?
and what did u mean by: is my system/sd/ a mounted ext filesystem?
i did adb remount to mount /system/ as r/w if thats what you meant.
let me apologize once again. i have almost no knowledge of linux commands. a step by step would really save some time. the only thing i hate more than not understanding something, is wasting others time while i do it.
ShatBag1105 said:
and what did u mean by: is my system/sd/ a mounted ext filesystem?
Click to expand...
Click to collapse
sounds like you did not set up a second partition (or a 3rd for that matter) on your sdcard.
there are many different ways to do this (I prefer gparted in linux), but here's one guide that uses parted in cyanogen's 1.4 recovery image:
http://forum.xda-developers.com/showthread.php?t=534714
hit me up if you hit a snag
gl
im pretty sure you are right. My mmcblk0p2 exists (of course) but when I check # /dev/block/mmcblk0p3 it says not found. And if I # ls /dev/block/mmcbl0p3 it says no such file or directory.
Im guessing i botched something in paragon partition 9. if i remember correctly i put the 32mb linuxswap partition between my fat32 and ext3.
Do u think i should create a new linuxswap partition after my ext3 with paragon9, or is there a workaround for my mistake? does the phone even recognize my poorly placed partition as anything?
thanks so much for your help. after a few hours of reading all these threads Ive come to realize you are the resident expert in swap compcache scripts. as for myself.... not so much
ext should be 2nd partition.
...and linux swap 3rd if you're using it (but it's not needed for compcache -- only as a backing swap).
I'd kill them both and readd with some variant of parted -- i've read that some are having trouble w/ paragon partitioning
Very well then. Ill reformat today and report back.
First of all! Paragon Partition Manager is a FARCE!
Gparted Live CD was awesome. Paragon had my sdcard looking pretty bad. I had 32mb of unallocated space between my FAT32 and EXT3. Even though paragon was telling me it was formatted to linuxswap.
I moved my ext3 over and created a 32mb linuxswap at the end of the sdcard with no loss of data. wow
But sadly, i pushed the userinit.sh #free shows 0 swap and #cat /proc/swaps shows nothing.
Im going to try this >> http://forum.xda-developers.com/showthread.php?t=542899 <<<WORKED!!
What ive learned:
Use Gparted to create a linuxswap partition AFTER your EXT3. Paragon is pure ****.
Get the user.conf and userinit.sh file from the link in above post.
Put them in the root of your sd card
I DID THIS WITH TERMINAL
su
mount -o remount,rw /dev/block/mtdblock3 /system
cp /sdcard/userinit.sh /system/sd
cp /sdcard/user.conf /system/sd
chmod 755 /system/sd/user.conf
chmod 755 /system/sd/userinit.sh
type #sh /system/sd/userinit.sh into console to activate the script.
type #sh /system/sd/userinit.sh -s to get a pretty well detailed report of the goings on.
OOOh being a linux noob is much headache.
Alpapa Thanks for giving me your time and pointing me in the right directions. Thanks man.
ShatBag1105 said:
Use Gparted to create a linuxswap partition AFTER your EXT3. Paragon is pure ****.
push the user.conf file (from link in above post) to /system/sd along with your userinit.sh.
type #sh /system/sd/userinit.sh into console to activate the script.
type #sh /system/sd/userinit.sh -s to get a pretty well detailed report of the goings on.
OOOh being a linux noob is much headache.
Alpapa Thanks for giving me your time and pointing me in the right directions. Thanks man.
Click to expand...
Click to collapse
I'm a newb as well... so did you chmod either of those files after moving them to ext2/3?
Yes. You have to chmod both of them.
And this works on 3.9.4.
V 0.1 files work best.
http://forum.xda-developers.com/showthread.php?t=542899
And these files come with everything disabled, so you have to edit both of them and enable what u want before putting them on your sd.
0=disabled
1=enabled
is there a way for me to backup my ext2 app partition on my sdcard with a windows machine? im running cyans 4.0.2 and i love it! but i would like to be able to backup the partition 'just in case' but i only have a xp desktop. thank you!
need to backup your ext partition?
the following commands will backup/restore your ext partition to/from a folder named sdbackup in your current directory. these must be run while phone is booted, not recovery.
to backup your ext partition: adb pull /system/sd/ %CD%\sdbackup
to restore back to sdcard: adb push %CD%\sdbackup /system/sd
When you star a thread with "How..." in the title you must start this thread in Dream Q&A sub forum !
Thread moved
You can also use Ubuntu.
title sounds more like this thread would be instructions rather than a question.
Another way that does not require adb would be to enter the following in terminal emulator
Code:
cd system
cp -r sd /sdcard/(name of folder you wish to backup to)
Than just plug the usb into your windows box, mount the sd card, and copy the folder.
hcphs said:
need to backup your ext partition?
the following commands will backup/restore your ext partition to/from a folder named sdbackup in your current directory. these must be run while phone is booted, not recovery.
to backup your ext partition: adb pull /system/sd/ %CD%\sdbackup
to restore back to sdcard: adb push %CD%\sdbackup /system/sd
Click to expand...
Click to collapse
Will this allow me to move my partition to a different SD card without re-installing all my apps (via nandroid)?
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
D3NNY said:
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
Click to expand...
Click to collapse
i'll give you the short answer then i will edit this post with the long answer
short answer.
you use the resize command in parted on your ext3 and linux-swap partition. if you have used parted from the recovery console a few times before this will be easy but i will post through instructions in a minute
Long answer
go into the recovery console. (recovery screen then last option)
then type (if you want to use adb just type adb shell then do the commands)
Code:
parted /dev/block/mmcblk0
print (you will need the start and end points for your ext3 and linux-swap partitions)
resize 2 [start point] [end - 64mb]
resize 3 [start - 64mb] [end]
print (to verify it worked)
quit
upgrade_fs
reboot
there you go.
I have not tested the resize command on an ext3 partition but i do not think (key word think) it will destroy your data on ext3, but back up just to make sure.
to back up your ext3
with adb (since i assume you have it from the first post)
Code:
adb pull /system/sd [dir on computer]
to restore on empty card
Code:
adb shell mkdir /system/sd
adb push [dir on computer] /system/sd
thanks for the great reply. Will test out now and see what happens!
Can anyone verify if this works?
My only concern is the resizing of ext3. Will it cut out any data since I am shortening the partition?
mr_roboto said:
Can anyone verify if this works?
My only concern is the resizing of ext3. Will it cut out any data since I am shortening the partition?
Click to expand...
Click to collapse
Yes, it works. And yes it *can* corrupt/delete some data from the ext3 depending on how much extra space you have. To be safe, just back-up. The easiest way is doing a BART or switchrom backup (Which backs up you ext) move the backup from the FAT partition to a computer (not necessary but you seem worried about your ext, so just to be safe) resize the partitions and restore your backups.
or just use amon recovery
Thanks for the response guys, I went and started reading about switchrom.
I am planning to do the following steps:
switchrom.sh -s // to store my rom
resize my partitions
switchrom.sh -r
The thread says it stores the nandroid and the app data, I am assuming that means nandroid and ext partition right?
D3NNY said:
Hi, ive searched around but cannot seem to find a complete answer, but basically is there a way to just repartition my linux swap from 32MB to 96MB.
I dont have a linux cd and so if theres a way to do it through ADB or recovery, that would be great.
Thanks.
Click to expand...
Click to collapse
I don't think this is the same, but I am running a hero rom and was wondering what "swappiness" is? I keep reading stuff like "swappiness of 96mb", etc. Is this just referencing the linux swap file size? and with me running a hero rom, what is the best setup for my SD card? I am currently running simply a fat32 partition and an ext3- thanks
Does somebody know how to undo app2ext?
Sent from my Milestone using XDA App
eXtink said:
Does somebody know how to undo app2ext?
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
If all you want to do is remove the automatic mounting of EXT partitions at boot, all you need to do is remove 05mountsd and 07app2ext from system/etc/init.d and reboot.
I know how to remove the app2ext script, but I also want my app2ext apps back into the internal memory
You need to copy it from ext2 partition to sdcard (all folders), then remove script files, and copy all folders back to internal memory to same folders (eg.: app-private to app-private).
You can use Terminal or adb shell for that. It should works.
Eg.
Open Terminal and type
# cp /sd-ext/* /sdcard/myapps/
(/sd-ext is your mount point for ext partition - type mount to find out which is yours)
I have Xperia X8 with android 2.1 and I want to move apps in SD card. How do this?
Just use app2sd or link2sd .... U hv to root first of course ..
KR470S said:
I have Xperia X8 with android 2.1 and I want to move apps in SD card. How do this?
Click to expand...
Click to collapse
Any custom ROM has native app 2 SD, plus you can follow
http://forum.xda-developers.com/showthread.php?t=1345872
To create a special partition in your SD card to which you apps can be automatically move, plus the swap space that will give you more free memory.
There are two good guides about custom roms:
http://forum.xda-developers.com/showthread.php?t=1333865
http://forum.xda-developers.com/showthread.php?t=1222348
If you are new to this, it will take some time get used to these guides, tools, etc. But there are lots of fun on testing custom ROMs, overclock, benchmarks, different skins, launchers, etc.
A good start is the toolbox, from puppet13th post:
http://forum.xda-developers.com/showthread.php?t=1117100
It is text only, different from SuperOneClick, a really great tool too, but toolbox can root your phone, install some modules (overclock, cypress / synaptics dual touch), and most important, the dual recovery: freexperia (or xrecovery... I don't remember) plus clockworkmod. Some ROMs are designed for the first one, but most recent ones are for CWM.
how do you partition sd card? i use to be able to do that until i formatted my sd card...now i forgot how to!
tohno said:
how do you partition sd card? i use to be able to do that until i formatted my sd card...now i forgot how to!
Click to expand...
Click to collapse
I did this yesterday, following this thread:
http://forum.xda-developers.com/showthread.php?t=1345872
I would prefer another way to repartition my SD, as Linux GPartED, that can easily resize partitions and add new ones. But I couldn't find the requirements for that and had problems a couple of months ago, when I tried to replace my SD and it was reformatted (don't know why) automatically, with no warning.
So I almost followed the thread:
1) backed up all my files (I just mounted SD and copied the files, as I didn't had sd-ext yet)
2) reboot into clockworkmod. I backup here is STRONGLY RECOMMENDED!
3) mounted /system & /data, and unmount /sdcard
4) copied sdparted.txt to /sbin/sdparted (already rooted, otherwise it would not work)
adb push sdparted.txt /sbin/sdparted
adb shell chmod 755 /sbin/sdparted
5) As I was in a different ROM, MiniCM7 2.1.6, I didn't have parted, required by sdparted.
So I copied from GingerDX v21
adb push parted /usr/xbin/parted
adb shell chmod 755 /usr/xbin/sdparted
But if your ROM already have parted, you can skip this.
6) Now just run sdparted as mentioned in MarJar thread. I have a 8 GB SD, and I choose 512 MB for sd-ext and 256 MB for swap, leaving more than 7 GB for files. So mine was:
adb shell
sdparted -es 512M -ss 256M -efs ext4
(someone, somewhere, mentioned that ext4 would be faster. I saw some benchmarks for Linux telling the opposite... But ext4 jas journaling, so it should be safer)
Now you have a partitioned SD.
7) Copy userinit.tx from the thread to /sd-ext/userinit.sh. It will be automatically executed on startup and mount the enable swap:
adb push userinit.txt /sd-ext/userinit.sh
adb shell chmod 755 /sd-ext/userinit.sh
8) Now I would recommend, if you have installed your apps to your ROM, to mount the SD again and copy the files back to the SD. You can do it in clockworkmod, menu Partitions or something like that, choosing Mount SD Card.
I didn't, so when I rebooted the phone, the "Apps" (or whatever remained fromthem in /data) were move to /sd-ext automatically. But any previous ROM, as mine also, would keep files in SD. The result was the nothing was working. So I copied the files back to SD card and restored the backup I took in step 2 (that saved me ).
But if you restore the files back to SD before rebooting, I think you would be fine.
It worked gracefully for me after restoring the backup.
9) Reboot and enjoy.