yashsingh1/xdaforums huggingface dataset:
[Galaxy Ace II Android Development] yannou75:
Hi, when I want to do "rm 3" it say me that /system is mounted, so I try to umount it with CMW but it doesn't want.

I don't understand ....
[Galaxy Ace II Android Development] :
All of the ROMs are based on Stock ROMs, and that means they use the Samsung UMS first, it might be possible to make a ROM with swap built-in, but you have to remember some Ace II users don't have an SD card.
[Galaxy Ace II Android Development] Ryccardo:
What? o.o

CM and other AOSP derivates are not stock based except for at most a few drivers --

and I haven't ever said we needed "a ROM with swap built in" (which anyway is just setting vold pair to 1 in build.prop): swap means making UMS appear as external/secondary and SD as internal/primary, while my proposal maps SD to the only storage (obviously then the primary one) and doesn't even try to access UMS!
[Galaxy Ace II Android Development] AntaresOne:
If CWM does not unmount /system first format it

Guys I found that you can simply delete UMS partition if you want to mount external SD as internal without swap, after this operation it's automatically mounted as internal because a real internal SD card no longer exists
[Galaxy Ace II Android Development] :
Does this mean Android no longer recognises the "missing" UMS as a mount point? I'm under the presumption that the external SD Card is mounted under "sdcard0" or just "sdcard" now?
[Galaxy Ace II Android Development] AntaresOne:
Recognized under /sdcard and /storage/sdcard0 as "Internal Memory". In Memory tab on Options no longer visible "Sd Card"

Inviato dal mio GT-I9070
[Galaxy Ace II Android Development] rozyid:
[MENTION=3841151]judas1977[/MENTION]

Please make 3gb data partition cwm update (zip version), it is simple and safety.

Thanks
[Galaxy Ace II Android Development] AntaresOne:
I'm making a script as flashable zip for I9070, but I'll send it to [MENTION=3841151]judas1977[/MENTION] that will provide to modify it for I8160. :)
[Galaxy Ace II Android Development] Alwer:
I did that and still in CM11 (Macław version) is visible but unclickible, I can not format it nor mount it.

I repartitioned my phone and after that I remove UMS by rm comand, so did I do something wrong or its CM11 issue or maybe something else?
[Galaxy Ace II Android Development] AntaresOne:
So in CM11 is still visible... For fuse mount points I think, just ask to [MENTION=4947931]Rox[/MENTION] for swap script on CM11. On screenshot: you removed UMS partition, so you can't name it, just do this and work as unit kb:

[B]rm 9
mkpart primary *write the end of CACHEFS* *end of CACHEFS+32KB*
name 8 UMS
print
mkpart primary *write the end of UMS* *end of memory*
name 9 HIDDEN[/B]

Now do mkfs for HIDDEN
[Galaxy Ace II Android Development] Alwer:
thanks for reply and suggestion about [MENTION=4947931]Rox[/MENTION], and about that how to recreate UMS, in fact I know how do it just sometimes fingers are quicker then head :) but still great thanks for help

PS Rox made script for changing ums with sd card but it have to run on boot, and this is not so great as having just one sd-card but still this script for me is priceless :)
[Galaxy Ace II Android Development] judas1977:
My is almost ready for couple of days but there is problem with /cache unmounting, script apparently won't do this....

Maybe I'll try unmount it using busybox, or try with manual unmount and removing it as first partition

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] :
Maybe make a script "A" and script "B". Echo the user to tell them to unmount /cache after A is finished?
[Galaxy Ace II Android Development] judas1977:
It doesn't work for me that way. And it supposed to be like this:

unmount cache

run zip 1

run zip 2.

But as i said - doesn't work for me even that way - as if /cache is mounted for some purposes (recovery logs?) after choosing zip package...
[Galaxy Ace II Android Development] crashdjent:
links to zip1 and zip2 ?

Sent from my GT-I8160 with Tapatalk
[Galaxy Ace II Android Development] Ryccardo:
While experimenting, I also found that apparently unmounting everything from CWM then deleting partitions may result in UMS remounting without warning with the menu not showing this until you go back and return to it... also /cache appears to mount every time you press OK (home/power)...
[Galaxy Ace II Android Development] nikosddesign:
is possible to create a similar script as example here http://xdaforums.com/showthread.php?t=2615712

:rolleyes:

sorry my bad english.
[Galaxy Ace II Android Development] botid:
Has anyone used a live Linux distribution with adb preinstalled to do this trick? E.G. :

http://xdaforums.com/showthread.php?t=741824
[Galaxy Ace II Android Development] AntaresOne:
No need of Linux, OS on PC doesn't matter. Just have ADB
[Galaxy Ace II Android Development] botid:
A couple of informations I that would have spared me lots of time and recommend adding to the main post:

You should get the Core GApps if not you won't be able to install some ROMs + Gapps

Where to download adb for windows & how to start it in admin mode (here)
[Galaxy Ace II Android Development] sleepless9:
Thank you very much for all this information! I am currently on team canjica cm10.2 and I plan to resize data partition using about 1.5gb free space wasted in partitions where we can't store apps. Considering that apps take up more space when moved to sd, I think the gain is even bigger because all my apps will fit in /data.

After repartitioning, can I just re-flash my rom using cwm? Or do I have to use Odin to flash stock or nandroid backup first? Also my /cache and /preload partitions are completely empty (dalvik cache is in /data). What is the minimum space you suggest I should leave in these partitions?
[Galaxy Ace II Android Development] Ryccardo:
1- If you don't resize /system, no need to reflash anything; don't use Odin anymore unless you repartition with 3-part firmware!

2- 7,4 MB cache, 64KB preload (must then be formatted from parted and not cwm -- create it with

mkpartfs primary ext2 {end of UMS+1} 3948937 name 9 HIDDEN

to do everything in 1 step, and on some ROMs you actually don't even need it)
[Galaxy Ace II Android Development] dirtyl0lharry:
Is it possible a script or a flasheable zip to get that 3gb of storage ?

Enviado desde mi GT-I8160
[Galaxy Ace II Android Development] pedroleon99:
+1 i'm too lazy to make it with adb :D

Inviato dal mio GT-I8160 utilizzando Tapatalk
[Galaxy Ace II Android Development] judas1977:
@up

So enjoy your original partition scheme:)

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] pedroleon99:
XD

Inviato dal mio GT-I8160 utilizzando Tapatalk
[Galaxy Ace II Android Development] dirtyl0lharry:
Some questions hurt you...

I'll try to keep the thread clean by myself.

Enviado desde mi GT-I8160
[Galaxy Ace II Android Development] Ryccardo:
I tried at least 5 weeks ago and no, CWM has fun (re)mounting the partitions at the wring time (not to mention that all zips are copied to /data and run from there AFAIK)...

...and, well, copying and pasting lines (not that you should blindly do that) isn't much harder than downloading a file :)
[Galaxy Ace II Android Development] sleepless9:
I just realised it's been a month since I did this and forgot to post any feedback. Well, I put 2.5gb in /data and now all of my apps fit there along with the cache so I don't have to put anything in sdcard and stopped getting annoying "no free space on device" messages everytime some big app gets updated (even though there was free space, just reserved). It was really useful to do before switching to ART whose cache takes up a lot more than dalvik's.

I calculated the partitions to fit my own needs, so if anyone is interested I post my partition table here:

---------------------------------------------

Model: MMC SEM04G (sd/mmc)

Disk /dev/block/mmcblk0: 3959MB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Number Start End Size File system Name Flags

10 524kB 1573kB 1049kB PIT

6 1573kB 3146kB 1573kB CSPSA FS

7 4194kB 14.7MB 10.5MB ext4 EFS

2 14.7MB 31.5MB 16.8MB ext4 Modem FS

14 32.5MB 34.6MB 2097kB SBL

16 34.6MB 36.7MB 2097kB SBL_2

1 36.7MB 53.5MB 16.8MB PARAM

12 53.5MB 55.6MB 2097kB IPL Modem

13 55.6MB 72.4MB 16.8MB Modem

15 72.4MB 89.1MB 16.8MB Kernel

17 89.1MB 106MB 16.8MB Kernel2

3 106MB 748MB 642MB ext4 SYSTEM

5 748MB 3248MB 2500MB ext4 DATAFS

4 3248MB 3258MB 10.0MB ext4 CACHEFS

9 3258MB 3263MB 4999kB ext2 HIDDEN

8 3263MB 3949MB 686MB fat32 UMS msftres

---------------------------------------------

You can see I didn't touch /system and also left ~700mb in sdcard and 5mb in /preload. I used mkfs to format sdcard to fat32 (can't remember why I didn't use cwm for that). Then I did factory reset and phone booted normally. A miscalculation was that I had foolishly uninstalled stock keyboard quite some time ago (I'm using Swype that was in /data before it got deleted) so I couldn't type anything and had to flash new rom (easiest way to get around it). But that was no big deal because I had nothing in my phone to lose at that point and was going to upgrade anyway.
[Galaxy Ace II Android Development] Eselter:
Thnaks for guide :)
[Galaxy Ace II Android Development] :
For those installing Resurrection RemiX, here's a great newbie script EXTRACT for you. Just replace the steps in the first post with these ones, you'll have a juicy apps partition and also enough /system space for gapps! Had to do this after finding out not enough space for gapps micro-sized package! :angel:

mkpart primary 105906 892338

mkpart primary 3801417 3932489

mkpart primary 892338 3801417

mkpart primary 3932489 3948873

mkpart primary 3948873 3948937

name 3 SYSTEM

name 4 CACHEFS

name 5 DATAFS

name 8 UMS

name 9 HIDDEN
[Galaxy Ace II Android Development] AntaresOne:
http://xdaforums.com/showthread.php?t=2700727 [MENTION=3841151]judas1977[/MENTION] no comment. Hahaha
[Galaxy Ace II Android Development] judas1977:
I saw similar method on main pda page, involving some xperias :)

Wysłane z mojego GT-I8160 przy użyciu Tapatalka
[Galaxy Ace II Android Development] any_body:
I am using Kubuntu 13.10 x64.

I have just installed adb on it with "apt-get" command, then i connect my GT-I8160 (Cyanogenmod 10.2 (BUGFREE) by TeamJanica

But now i have a problem on adb console.

I can see my phone when i input;

adb devices

but after that i get the error below;

root@alpman-kubuntu:~# adb shell
shell@GT-I8160:/ $ su
root@GT-I8160:/ # parted
parted
sh: parted: not found

After that, when i input;

adb devices

command again, i see my device look disconnected... :(

Can anybody help me about that?

Thanks...
[Galaxy Ace II Android Development] Ryccardo:
I remember my phone disconnecting while typing commands too, leaving it alone a minute or so after `adb shell` helped IIRC
[Galaxy Ace II Android Development] any_body:
I will try, but rather than that; i think, my problem cause "parted" command (binary) is not installed on my phone...

Because i have same error when i try this command (parted) on Terminal Emulator that installed on my prerooted phone...

Can it be possible and how can i fix that or can i create this partitions on my sdcard when insert it to my laptops integrated sd card slot? (my microsd is 8 gb)
[Galaxy Ace II Android Development] any_body:
I know nobody have to do that but i am waiting for an answer till 2 days...

Can anybody reply me please?
[Galaxy Ace II Android Development] forumber2:
parted binary isn't included on most of ROM's. You can use parted binary on CWM.

Boot to CWM and connect the cable to PC. Then,try again.
[Galaxy Ace II Android Development] any_body:
First of all thanks to reply my post...

CWM 6.0.4.5 is installed on my ACEII

I rebooted my phone in Recovery mode (after installing android-tools-adb to my Kubuntu 13.10) now when i do;

adb devices

i can see;

adil@alpman-kubuntu:~$ sudo su -
[sudo] password for adil:
root@alpman-kubuntu:~# adb shell
~ # adb devices
/sbin/sh: adb: not found
~ #

but when i put "su" in this state from the linux's cmd i get;

root@alpman-kubuntu:~# adb shell
~ # su
/sbin/sh: su: not found
~ #

I try to do it before do "mount USB Storage" and after it but nothing was changed...

Possibly i do something wrong or missing but i dont know what is it? :(

Can anybody help me please?

Thanks soo much...

Sincerely...

Also i have these below (i give them because may be they can give an idea to specialists;

~ # pwd
/
~ # dir
/sbin/sh: dir: not found
~ # parted/dev/block/mmcblk0
/sbin/sh: parted/dev/block/mmcblk0: not found
~ #
[Galaxy Ace II Android Development] Ryccardo:
no su: it's probably not included in your ramdisk (if /system is unmounted you can't use programs from phone memory) -- not that it matters as you're already using a root shell (you can tell by the # symbol just before where you type commands)

as for the last command: you forgot a space after "parted" :)
[Galaxy Ace II Android Development] forumber2:
There is no "su" on recovery, you don't need it anyway. It's already running on root while recovery.

There is no "dir" command on Linux, instead of type "ls"

You could sucessfully setup adb connection.

You need press spacebar between "parted' and "/dev/block/mmcblk0"
[Galaxy Ace II Android Development] any_body:
First of all i wanna know which partitions must i mount in CWM 6.0.4.5 before starting to delete and recreate partitions...

I mounted all of them and i see many lines after "print" command in (parted) in adb...

Cause of i wanna be sure to dont make any mistake, so i post my screen below;

Can any specialist help me everything going OK and can i resume after that?

adil@alpman-kubuntu:~$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
479082007444bf0e recovery

adil@alpman-kubuntu:~$ adb shell
~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit kb
unit kb
(parted) print
print
Model: MMC SEM04G (sd/mmc)
Disk /dev/block/mmcblk0: 3959423kB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
10 524kB 1573kB 1049kB PIT
6 1573kB 3146kB 1573kB CSPSA FS
7 4194kB 14680kB 10486kB ext4 EFS
2 14680kB 31457kB 16777kB ext4 Modem FS
14 32506kB 34603kB 2097kB SBL
16 34603kB 36700kB 2097kB SBL_2
1 36700kB 53477kB 16777kB PARAM
12 53477kB 55575kB 2097kB IPL Modem
13 55575kB 72352kB 16777kB Modem
15 72352kB 89129kB 16777kB Kernel
17 89129kB 105906kB 16777kB Kernel2
3 105906kB 747635kB 641729kB ext4 SYSTEM
5 747635kB 2056258kB 1308623kB ext4 DATAFS
4 2056258kB 2377122kB 320864kB ext4 CACHEFS
9 2377122kB 2712666kB 335544kB ext4 HIDDEN
11 2712666kB 2765095kB 52429kB Fota
8 2765095kB 3948937kB 1183842kB fat32 UMS

(parted)

Thank you so much who can reply me...
[Galaxy Ace II Android Development] S.AMU:
Dont change anything in cwm, just follow the guide. At a certain point it will say which partition you have to unmount in cwm
[Galaxy Ace II Android Development] any_body:
I do all of them but not my phone didnt turned on...

I only did one thing what wrote in this guide;

Cause of i got "its still mounted" error, i unmounted SYSTEM (part 3 i think) partition before delete in CWM...

I mean when i turned it on i just see black first screen that include;

Samsung

GALAXY ACEII

GT-I8160

must i reinstall Cyanogenmod after this change?

I take out the microsd but still my phone wont load...

If i need to install CyanogenMod again how can i do it because it need the phone that stock rom installed firstly?

can anybody help me ASAP?... :'(
[Galaxy Ace II Android Development] aprofomo:
If you have formatted /system so complete Android System is deleted. You have to install CM via zip manually now.

If you would flash stock JB I believe the partitions are being recreated.
[Galaxy Ace II Android Development] any_body:
Thanks aprofomo...

I installed Cyanogenmod 10.2 from TeamJanica just now...

Could you please help me how (or must i) can i edit to use my reformatted microsd as internal memory and how must i edit my build.prop file to use my sd as internal memory or could you please give me the link from the forum?

Thank you do much...
[Galaxy Ace II Android Development] aprofomo:
I don't know how to swap storages on CM 10.2. You can ask Rox or try build.prop line

persist.sys.vold.switchablepair=sdcard0,sdcard1
[Galaxy Ace II Android Development] any_body:
I got an error "E:unknown volume for path [/sd-ext] when i do wipe data/factory reset in CWM is it normal or how can i fix it?

Also there is no string like "persist.sys.vold.switchablepair=" in build.prop file. Do you mean;

persist.sys.voId.switchexternal ?

Thanks...
[Galaxy Ace II Android Development] judas1977:
@up

it's normal - you didn't create sd-ext partition on your micro-sd card..
[Galaxy Ace II Android Development] dragos281993:
Check the guide made by [MENTION=5360449]busote[/MENTION]. It's way better than this and you won't get any errors. And you can choose the partition's size as well. No offence to [MENTION=3841151]judas1977[/MENTION] but his method gives you lots of errors that eventually make you flash the stock ROM to make the phone work again. That's exactly what happened to me but with [MENTION=5360449]busote[/MENTION]'s tutorial I did it without any errors. Again I apologize to [MENTION=3841151]judas1977[/MENTION] if I said that his method is not so good, but it needs some "repairs".
[Galaxy Ace II Android Development] any_body:
Dear dragos;

First of all thanks for your reply...

Could you please give me the link for busote's method in the forum?

And in this topic we all these repartitioning in sd card, right?

After that, if i turn to go back to first state after this repartitioning how can i do that?

Thanks...
[Galaxy Ace II Android Development] AtEExll:
For turn back to stock internal repartition, you must install with odin stock rom with pit file...

Sent from my GT-I8160 powered by CyanogenMod 11
[Galaxy Ace II Android Development] any_body:
Ok, i am downloading stock 4.1.2 rom from sam....e to turn to the stock rom...

And also i need to check "RePartition" checkbox in Odin to turn the original partition sizes, right?
[Galaxy Ace II Android Development] AtEExll:
Yes, you must download a rom stock with the 3 files: pit, pda and csc.

When you flash with odin, put the 3 files and remember enable re-partition (in left of odin window).

After that, you have internal stock repartition.

Sent from my GT-I8160 powered by CyanogenMod 11
[Galaxy Ace II Android Development] any_body:
I have just downloaded stock rom but there is only one file and its extension is .tar.md5

How can i file the stock rom that include 3 files as you said?
[Galaxy Ace II Android Development] AtEExll:
You have MP

Sent from my GT-I8160 powered by CyanogenMod 11
[Galaxy Ace II Android Development] any_body:
Sorry but what is MP? :(

Do you mean PM? :confused:
[Galaxy Ace II Android Development] AtEExll:
Yes xD

Sent from my GT-I8160 powered by CyanogenMod 11
[Galaxy Ace II Android Development] ramanmono:
Swapping storage in kitkat rom is done in an app after it boots. So this can't be used with a kitkat Rom?
[Galaxy Ace II Android Development] Ryccardo:
It works on everything, you could make /sdcard 10 MB and not swap it if you wanted (not that it's useful)...

As some people might know I'm trying to modify some ROMs (mainly CM11) to completely ignore /sdcard and /preload to reduce many headaches, the project is going well but some problems have emerged with ASEC (apps in SD) and I won't have too much free time until next month...
[Galaxy Ace II Android Development] ramanmono:
Not enough system space

WTH I used pa-gapps micro reduced (ROX), with TC CM11 and still it says not enough space on system partition.

I used the guide values for system partition.

How much bigger does it have to be?

And if partition 8 is hidden why name it UMS and partition 9 is UMS, but is named hidden.

Is it a mistake in the info or ....?
[Galaxy Ace II Android Development] Ryccardo:
My compile uses 380512k on system, micro gapps are veeeery roughly 200M IIRC (after getting install failed you get a pa_gapps file that contains the required space) -- keep in mind the sizes you see in parted are for unformatted partitions, that 5% of ext? partitions is reserved by default, that gapps refuse to leave less than 10 MB free...

8=UMS=sdcard, 9=HIDDEN=preload
[Galaxy Ace II Android Development] ramanmono:
Ok, so I increased system size and decreased data and all seemed to work. I made my UMS 16MB.

I flashed TC CM11. The 16MB was detected as USB storage (titanium: media) and my 16GB micro as SD ext. SD.

I then went on to swap storages with the novathor settings app, rebooted and it seemed to work fine.

All seemed fine too after I restored all my apps using Titanium backup.

But, as it is world cup time I wanted to install the official FIFA world cup app (35MB), but after it being dowloaded true play store I get an error that it could not be installed in either USB storage nor SD card.

Anybody know why this can be happening? My phone memory (data) still has 1.9 GB free and my now recognized as internal SD has 11 GB free.
[Galaxy Ace II Android Development] pedroleon99:
Because this app has an ASEC. Try unmount sdcard from settings(your real internal sd) then install the app. It will be installed in your real sdcard

Inviato dal mio GT-I8160 utilizzando Tapatalk
[Galaxy Ace II Android Development] nikolas1274:
I had that problem with some apps, look what i am doing:

1. De-activate swap from NT

2. Restart to take effect

3. Unmount sdcard from setting->storage

4. extract sd card, take it out from phone

5. install the app from playstore

That will force the installation at system partition (3G).

When you install the app, do the step reverse

1. put sd card back to phone

2. mount sdcard from setting->storage

3. activate swap from NT

4. Restart to take effect

enjoy
[Galaxy Ace II Android Development] ramanmono:
Ok thanks, but, what I did is just swap, reboot, than installed the app successfully than swap and reboot again.

The app is working fine afterwards of course.

But, I'll see if [MENTION=5395538]pedroleon99[/MENTION] workaround will work in the future.
[Galaxy Ace II Android Development] fluffi444:
This was the same I did with an 130 MB game....I'm on approx 2,8 GB Data and 100 MB internal SDCard (made this with http://xdaforums.com/showthread.php?t=2700727)
[Galaxy Ace II Android Development] Ryccardo:
Or just set default install for all apps to /data with Link2SD or the `pm` command...

...or much better install a ROM that doesn't use partition 8 ;)
[Galaxy Ace II Android Development] pedroleon99:
Yes these are other solutions, maybe better ;)

Inviato dal mio GT-I8160 utilizzando Tapatalk
[Galaxy Ace II Android Development] ChronoMonochrome:
CWM ReParted

Hello! There is a repartition method via CWM :)

All the described actions at your own risk! I am not responsible if for some reason the script will refuse to work exactly as planned, but I assure you that none of the "vital" phone partitions will not be removed. Do not try to flash this file on other phones, because they have a different memory layout.

1) You need to backup /data and /sdcard partitions first.

2) Then install aroma filemanager(maybe it also will work in terminal emulator, I haven't tried), goto console and type command(be careful, typing a wrong command may brick your phone):

dd if=/dev/zero of=/dev/block/mmcblk0p4 count=100

It's dirty trick, i know xD.

3) Then umount cache partition(via 'mounts and storage') and flash zip archive from attachment. Be patient, it may take a few minutes.

4) Format /data and /cache to filesystem that you used before repartition.

5) Restore /data

After repartition you'll have:

2,87 Gb on data

~320 Mb on cache (I didn't change cache partition size because I use F2FS and it's uses more memory in /cache. Anyway, you can edit repartition script as you want)

~51 kb on UMS and on HIDDEN

This script will not change your /system partition. It's not a final version because you need to backup and restore your data manually.