[Q] How to format partition in updater script? - Galaxy Ace II Q&A, Help & Troubleshooting

Hello.
When i try to add formatting partition in updater script, something goes wrong...
After formatting /system - ACE II won't boot at all. Recovery (CWM) fails too format that partition too...
Updater binary of custom ROM based on stock Jelly Bean requires 3 parameters (it fails if there is more or less), so i put something like that:
format("ext4", "EMMC", "/dev/block/mmcblk0p3");
There is no error during installation, but after installing - phone hangs...
Only Odin helps...
I know that guys use format command in updater script of our CM10(.1) ROMs, with more parameters:
format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/system");
But as i said - there can't be more parameters in stock JB roms..
So - is there any possibility to format /system, /data and /cache during installation of ROM?
How does recovery do the formatting??

Do you install system again after formatting?
Sent from my GT-I8160

I tried, but it's impossible to do it.
As I said before, only Odin helps
Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2

If you formt system partiion it is clear that phone wont boot. In same package include new system folder. Like flashing rom...
Sent from my GT-I8160

Rox said:
If you formt system partiion it is clear that phone wont boot. In same package include new system folder. Like flashing rom...
Click to expand...
Click to collapse
I'm afraid i don't understand what you wrote.
BUT: when i format /system via recovery - AND then - flash my ROM, there is no problem. But if i format via script - nothing helps (even format via recovery).
BUT when i tried to format /data via script - phone won't boot, but format via recovery helps...
So i suspect that something is missing when partitions are formatted during installation (in updater-script).

So if i get it
ROM+uptader-script format = no boot
ROM+recovery format = boot

Exactly
Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2

Are u sure you put "format" command before extracting and mounting system ?
Sent from my GT-I8160

Try
Code:
ui_print("Formatting system");
delete_recursive("/system");
delete_recursive("/preload/symlink/system/app");
delete_recursive("/data/dalvik-cache");
It might not be the most pretty method, but it will delete all folders in system (effectively formatting it) and no one will know the difference :victory:
Or use the updater binary from the cm roms and see if that works

Are you sure if recursive delete (I'm using it of course) /system will delete all subfolders?
I think it delete ONLY all files in /system.
To make it similar to format I'd have to put entry for every subfolder of /system partition
Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2

judas1977 said:
Are you sure if recursive delete (I'm using it of course) /system will delete all subfolders?
I think it delete ONLY all files in /system.
To make it similar to format I'd have to put entry for every subfolder of /system partition
Wysyłane z mojego GT-I8160 za pomocą Tapatalk 2
Click to expand...
Click to collapse
Yes, recursive instructs it to repeat itself for every folder found in a folder until its emptied out
Without recursive it would only do files

Related

[Q] how to WORK/enable/use ext4 in MERRUK kernel

anyone help is appreciated,, thnx in advance,,
kawe42 said:
Preparation
(1) Backup all apps with Titanium Backup
(2) Backup sdcard to the pc
(3) Fullwipe
(4) Flash stock rom to get rid of all possible points of failure
(5) copy Madteam cwm to sdcard
(6) start stock recovery -> start cwm via update.zip
(7) partition sdcard with cwm -> ends up with sdcard fat32 partition and 1024MB ext3 partition (as I chose)
(8) copy sdcard backup from pc to fat32 partition, including merruks 2.0 kernel
(9) flash merruk 2.0 via cwm
Setup
(10) boot up phone, initial setup, install link2d
(11) choose link2sd mount script ext3
(12) after reboot there is a link2sd script in /etc/init.d
(13) modify script: add 2 lines at the end of the script:
rm -r /sd-ext
ln -s /data/sdext2 /sd-ext
this links link2sd standart path /data/sdext2 to /sd-ext
(14) Install and restore all apps with Titanium Backup
(15) use link2sd to move apps to second partition -> "Create Link"
(16) check /sd-ext with root file explorer to see if apps get moved correctly
Click to expand...
Click to collapse
as for mine i stop at step 11 because it worked already without modifying scripts..
my point is ext4, i just read in merruk you need to flash ext4 using CWM,, because ext4 is a zip file,,
is ext4 is same as ext3 ext2,,
i have already ext3 running using a2sd,
kimerika said:
my point is ext4, i just read in merruk you need to flash ext4 using CWM,, because ext4 is a zip file,,
is ext4 is same as ext3 ext2,,
i have already ext3 running using a2sd,
Click to expand...
Click to collapse
Its not for the sd card.. Your mentioning ext2/3 for the 2nd partition of sd card.. Flashing ext4.zip wipes data and cache and converts it to ext4 from rfs.. It increases performance but a noticeable little battery drain..
Sent from my GT-S5360 using xda premium
hitme987 said:
Its not for the sd card.. Your mentioning ext2/3 for the 2nd partition of sd card.. Flashing ext4.zip wipes data and cache and converts it to ext4 from rfs.. It increases performance but a noticeable little battery drain..
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
thats what i need can u give link or TUT how to work it,
kimerika said:
thats what i need can u give link or TUT how to work it,
Click to expand...
Click to collapse
Its simple. After having your desired custom ROM flashed you can apply merruk kernel with ext4.
1) Flash the merruk kernel using kernel updater or using odin(refer merruk topic)
2) Flash ext4 . It wipes the data and cache.
3) You need to flash your custom rom/stock ROM now as youll get boot loops
4) If you still encounter bootloops after flashing stock/custom ROM, flash the merruk kernel again.
5) Reboot and check the kernel version in settings->About phone and make sure its merruk 2.0
6) Thats it. Profit

[Q][Android 4.0.4] Encryption Unsuccessfull

I recently upgraded my phone from Stock 2.3.6 to Maclaw 4.0.4. I accidently flashed the ROM twice using CWM 5.0.2.6 without mounting my SD Card (/sdcard)(Not sure if it is important). Anyway, after Wiping data/Factory reset and wiping the Dalvik Cache, I rebooted my phone. After a successful reboot, It displayed a message saying "Encryption Unsuccessful" with a Reset button (which basically didn't do anything). What I did trying (Hopelessly) (using CWM) to remove this error was:
- Re flashing the ROM
- Formatting the sdcard and partitioning again
- Formatting everything (/system /data ....) and re-flashing
- Removing the battery (Hopelessly )
And with every step I re-wiped data and dalvik and rebooted with the same error.
I am thinking of restoring the stock rom and then re-installing this ROM but I'm not sure if it will be useful.
So any suggestions?
[Edit] Logcat:
11-07 09:35:38.099: E/Cryptfs(92): Bad magic for real block device /dev/block/stl13
11-07 09:35:38.099: W/CryptKeeper(469): Incomplete, or corrupted encryption detected. Prompting user to wipe.
11-07 09:35:38.099: E/Cryptfs(92): Error getting crypt footer and key
Try to install the rom with the following steps
- Boot into Recovery
- go to mounts and storage
- format /System and /data Only!
- Mount /data and /sdcard(unmount /system also)
- Flash Maclaw ICS rom
- Reboot device
- Done !
EddyGio said:
Try to install the rom with the following steps
- Boot into Recovery
- go to mounts and storage
- format /System and /data Only!
- Mount /data and /sdcard(unmount /system also)
- Flash Maclaw ICS rom
- Reboot device
- Done !
Click to expand...
Click to collapse
Didn't work! I did it step-by-step.
I posted my logcat, check updated first post.
Any Idea how to push the needed file to this folder via ADB?
Not again! First full wipe then flash ext4- formatter.zip then flash rom.
Sent from my GT-S5660 using xda app-developers app
batman38102 said:
Not again! First full wipe then flash ext4- formatter.zip then flash rom.
Click to expand...
Click to collapse
From where do I download ext4-formatter.zip?
ext4-formatter.zip says (Status 6) Installation aborded
Note that I'm moving from stock 2.3.6 to 4.0.4. Does this matters?
ZiadAk said:
ext4-formatter.zip says (Status 6) Installation aborded
Note that I'm moving from stock 2.3.6 to 4.0.4. Does this matters?
Click to expand...
Click to collapse
Where are you getting the ext4 formatter file from? If it wasn't designed or compiled specifically for the Galaxy Gio, it may not work. Have you tried the file found on this thread? It may be rare, however the ext4-formatter.zip file you downloaded could have become corrupted. If the file on the link above doesn't work, google 'Galaxy Gio ext4 Formatter' and some results should pop up.
Or instal phiexz cm7.2 there is his ext4 formatter inside :screwy:
Verstuurd van mijn GT-S5660
Here the rfs to ext4 formatter http://db.tt/rraDAX7X
Flash this first from cwm, then flash 4.0.4 maclaw or any custom ROM
Sent from my GT-S5660 using XDA Premium App
wiwid.colgate said:
Here the rfs to ext4 formatter http://db.tt/rraDAX7X
Flash this first from cwm, then flash 4.0.4 maclaw or any custom ROM
Click to expand...
Click to collapse
Thank you! I flashed your file then I flashed Maclaw's ROM like this:
EddyGio said:
Try to install the rom with the following steps
- Boot into Recovery
- go to mounts and storage
- format /System and /data Only!
- Mount /data and /sdcard(unmount /system also)
- Flash Maclaw ICS rom
- Reboot device
- Done !
Click to expand...
Click to collapse
Thank you both of you again!
Well, don't thanks to me...
That file from phiexz... I just re-upload since lot user can't download anymore...
Cheers
Sent from my GT-S5660 using XDA Premium App

[Q] Cant mount Sdcard

hey guys i am in desperate need of help.
i wanted to wipe out all caches from the phone before i installed a new rom.
i went into recovery and wiped out and formated cache,data and delvic cache.
after that i'm getting this error:
"E:Can't mount /dev/block/mmcblk0p1 Cant mount Sdcard"
and i can't do anything.
tried to format the sdcard from my pc using miniTool manager but it didn't work.
right now i have the wildfire and i can't use it...
any help plzzz?
Odp: [Q] Cant mount Sdcard
http://forum.xda-developers.com/showthread.php?t=1900259
Hope that some stuff from this thread will help (;
Wysyłane z mojego HTC Wildfire za pomocą Tapatalk 2
tried it already but it didn't recognise the card...maybe cause i used it by sd reader...
solved it with another way though.
flashed recovery v4.0.14(if i remember corectly) as a default recovery
did a wipe at everything
partitioned sd
and problem solved.
thanks for your help anyway.

[4.3] Can't mount external partition with Link2SD on rooted Xperia M

Hi all,
I have a sony Xperia M (C1905). Till some days ago I have the old android release with rooted access and link2sd. All worked good.
With the last 4.3 update I had some problems, since I'm not an expert android developer . However I managed to root my phone using the haresh311999 guide.
I have my phone rooted, checked also with Root checker. I've also SuperSu, BusyBox and Link2Sd app. I've enabled the debug mode and checked the MSC storage mode.
But in Link2sd I cannot mount my external partition in which I used to link all the bigger apps. I've an ext3 partition and before the 4.3 upgrade it worked good. Now If I try to rebuild the script I got an error:
Mounting script cannot be created (This string isn't the original one, since I'm not english).
"mount: Operation not supported on transport endpoint"
Click to expand...
Click to collapse
I've found in the forum that I should try this procedure but with adb I can't run adb mount or adb root:
adbd can't run as root in production builds
Click to expand...
Click to collapse
I've tried also with adb shell and su command, to mount system as r/w but till now I haven't succeded....
$ adb shell
$ su
# mount -o rw,remount /system
Click to expand...
Click to collapse
Any suggestion ?
You can try to set second partition with FAT32,,
My partition workin' perfect,,
Sent from my C1905 using XDA Premium 4 mobile app
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it... Now I just had an idea: I can try to do another partition with the minitool and try if there is only a filesystem problem...
must be ext4 on my working fine and fast
and i got bootloop :/
Root device clean partition and create new and mount script should be ok
Wysyłane z mojego C1905 za pomocą Tapatalk 2
orion_42 said:
Hi all,
I have a sony Xperia M (C1905). Till some days ago I have the old android release with rooted access and link2sd. All worked good.
With the last 4.3 update I had some problems, since I'm not an expert android developer . However I managed to root my phone using the haresh311999 guide.
I have my phone rooted, checked also with Root checker. I've also SuperSu, BusyBox and Link2Sd app. I've enabled the debug mode and checked the MSC storage mode.
But in Link2sd I cannot mount my external partition in which I used to link all the bigger apps. I've an ext3 partition and before the 4.3 upgrade it worked good. Now If I try to rebuild the script I got an error:
I've found in the forum that I should try this procedure but with adb I can't run adb mount or adb root:
I've tried also with adb shell and su command, to mount system as r/w but till now I haven't succeded....
Any suggestion ?
Click to expand...
Click to collapse
echo juned said:
You can try to set second partition with FAT32,,
My partition workin' perfect,,
Sent from my C1905 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
orion_42 said:
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it... Now I just had an idea: I can try to do another partition with the minitool and try if there is only a filesystem problem...
Click to expand...
Click to collapse
darekesp said:
must be ext4 on my working fine and fast
Click to expand...
Click to collapse
n00BXperia said:
and i got bootloop :/
Click to expand...
Click to collapse
darekesp said:
Root device clean partition and create new and mount script should be ok
Wysyłane z mojego C1905 za pomocą Tapatalk 2
Click to expand...
Click to collapse
Well, I am sure you must be using Link2Sd to mount games/applications on your Xperia.
Mind if I suggest that you can use FOLDER MOUNT
FOLDER MOUNT LINK
This is amazing little software which requires root but it doesnot do anything more than telling games where to find the OBB files.
In free version, you can mount upto 3 games where as in full version, you can use unlimited mounts!
Check it out and you wouldnot use Link2SD any more
orion_42 said:
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it....
Click to expand...
Click to collapse
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
Worked for me as well on Samsung Xcover2 GT-7710
br0ziliy said:
Worked for me as well on Samsung Xcover2 GT-7710
Click to expand...
Click to collapse
Had the same error, choose ext4 as the partition type and it created the script and asked me to reboot my phone just like it used to on all my other devices.
orion_42 said:
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it... Now I just had an idea: I can try to do another partition with the minitool and try if there is only a filesystem problem...
Click to expand...
Click to collapse
darekesp said:
must be ext4 on my working fine and fast
Click to expand...
Click to collapse
I couldn't believe that.
Will ext partitions work on our XM?
I had tried many times.
boot loop was the result :crying:
I had formatted all types of ext versions. no hope.
Now I am using Memory Swap (JB 4.3)
but still I want Link2SD to be worked.
I have Link2SD Pro App.
Will Link2SD work with swapping?
Now I have been using "nicky root" for rooting, since its a "full root" method.
I have a reserve of 5GB for second partition; not formatted.
Please guide me......
I have a LG L65, had the same problem, but could fix it
Hi, guys.
I have a LG L65 running Android 4.4.2 KitKat. I had the same problem. My phone was rooted (using towelroot), my SD Card was partitioned, but couldn't get the mount script. I tried what some of you said about creating an ext2 partition and choosing ext4 on Link2SD, and it worked.
Also, don't know if it matters or not, but I'll say it anyway; I was using FAT for my data partition, but switched to FAT32.
Great, ext4 did the trick. Thank you very much!
Sony E1 D2004 (4.4.2) fixed
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
*******
Also worked on my Sony E1 D2004 (4.4.2). Thanx, dangerzone!:good:
Who'd have thunk that 4 means 2? !!!
Rob
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
Thanks. Worked for me too..
Bootloop?
I did the ext4 option trick, but somehow now it just turns off suddenly after that and keeps looping at the boot until I remove the SD Card. Any tips?
PS: I also re-formatted the SD Card over to the ext4 format, and that didn't work either.
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
Confirmed - 4 does in fact equal 2. Worked fine.
choosing ex4 partition is the solution
i choosed ex4 partition and the problem solved
thank you very much
LG L70
:laugh::laugh::laugh::good::good:
Not working for me in any way. I have the second partition formated ext3, and Link2Sd says the following for each format:
mount script cannot be created...
ext3
mount: operation not supported on transport end point
ext4
mount: invalid argument
ext2
mount: no such device
... ?... WTH is going on?
Sent from my LG-D855 using XDA Free mobile app
CNK80Q3MX said:
Not working for me in any way. I have the second partition formated ext3, and Link2Sd says the following for each format:
mount script cannot be created...
ext3
mount: operation not supported on transport end point
ext4
mount: invalid argument
ext2
mount: no such device
... ?... WTH is going on?
Sent from my LG-D855 using XDA Free mobile app
Click to expand...
Click to collapse
are your kernel support move app to sd feature?

Internal storage is reduced from 54 GB to 24 GB after rooting my oneplus 3 using TWRP

Hi,
I have rooted my one plus 3 recently by using TWRP, installed CM 13 Stable Sultan ROM and Google Apps and Super SU. Initially I have done the rooting with out wiping old data, after rooting I have faced finger print issue and heating issue and phone working is very slow. Then i thought of re rooting again so I took the back up of cache and system and data by using TWRP and after that i have wiped the data and cache and system then I flashed the CM 13 stable sultan ROM then after Google Apps and Super SU. Now the phn is working excellent but after some time I realized that the internal storage is reduced, initially it was 54 GB but now it was showing 24 GB. .
Can anyone tell me how to get my internal storage. I have not lost my data i have lost my internal space more specific.
Initially total space is 54 GB
After rooting it was showing total space as 24 GB.
Use mega unbrick tool it will reformat your device to factory state.
billyJ said:
Use mega unbrick tool it will reformat your device to factory state.
Click to expand...
Click to collapse
Do I need to root again after this factory reset?
Yes, it will revert your phone to old Stock ROM and wipe data partition and internal storage.
Wysłane z mojego ONEPLUS A3003 przy użyciu Tapatalka
@tirumalchalla
This is happening when you run fastboot format command ! Just make a full wipe in twrp (whole userdata partition).
TWRP > WIPE > FORMAT DATA
Warning : it will erase your internal storage !!
billyJ said:
Yes, it will revert your phone to old Stock ROM and wipe data partition and internal storage.
Wysłane z mojego ONEPLUS A3003 przy użyciu Tapatalka
Click to expand...
Click to collapse
Ok Thank you
HeadFox said:
@tirumalchalla
This is happening when you run fastboot format command ! Just make a full wipe in twrp (whole userdata partition).
TWRP > WIPE > FORMAT DATA
Warning : it will erase your internal storage !!
Click to expand...
Click to collapse
Thank you I will do that.

Categories

Resources