S2E and Galaxy ICS CM9 procedure - Samsung Galaxy Gio GT-S5660

Hi Guys,
this is my first post.
I managed to get S2E working with the latest CM9.
The key problem seems to be related with the ext4.
So, let's distinguish two cases:
1) Data wiped. In this case it should be enough to create an ext2 partition. You can refer to one of the many guides to do that. Then in recovery, just mount system and in the folder /system/etc/init.d and remove the file 90userinit. After this you can install S2E from the market or download and install it from the sdcard.
2) Already using S2E and not willing to wipe data.
Assuming you have the clockworkmod, go to recovery.
Backup your system.
Install the latest CM9 (galaxy-ics-latest).
Rename you sd-ext backup file (from sd-ext.ext4.tar to sd-ext.ext2.tar) in the folder just created inside /clockworkmod/backup, i did it mounting the usb in the usb and storage menu.
After this, you also have to open the nandroid.md5 file and do the same as prevoius point in the file. It shouldn't be required to generate a new signature.
Create an ext2 partition:
mkfs.ext2 /dev/block/mmcblk0p2
Restore the backup in the recovery menus: Advanced restore, restore sd-ext.
If everything went fine, just reboots and S2E should work.
Cheers.

Related

[Q] Q(s) does cwm 3.0.0.5 restore/backup sd-ext

Hi,
I searched various forums but cant find an answer to this.
Does cwm 3.0.0.5 backup and produce an sd-ext.img?
I recently got a replacement sd card, so I did a nandroid backup after I flashed cwm 3.0.0.5.
I copied this to my laptop, and g parted my new sd to have 2 partitions fat 32 first and the last 2 gb as ext3, as per the requirement for modaco no sense kitchen rom (a2sd+ version).
New sd in desire, I copied the whole clockworkmod folder onto the new fat32 partition.
Wiped everything I could using recovery (clockworkmod folder still remains present).
Tried to restore but got a message at the end that "sd-ext.img not found. Skipping restore of /sd-ext. Restore complete."
When I boot the desire gets past initial alpharev s-off replacement image I have (I have s-off), then presents a blank screen. This does eventually boot. However all apps are not installed. I assume that the original dalvik cache was not transferred and was reconstructed by the restore with what it had.
Is this a known problem with 3.0.0.5?
Is there another version I can flash which doesnt have this problem?
Just to provide all possible info require (I think). My desire is PVT4.
Thanks in advance.
I used CWM 2.5.0.7 from the alpharev release.
In my backup folder, I have sd-ext.img present.
I created this sd-ext with CWM itself. (I did a backup of the sd and formatted it)
So no doubt that CWM 3.0.0.5 did the same.
First, check if you actually have the sd-ext.img file.
Second, you might want to try to update to CWM 3, since the alpharev release is 2.5.1.8.
Well CWM will create the sd-ext.img backup if it detects that the partition is there. If out doesn't detect it then it will skip it like it did. There is nothing wrong with cwm at all and out works. You could upgrade your recovery to 3.2.0.1 but it won't make a difference really. Only way around it is to use titanium backup as it will restore straight to sd-ext
Swyped...
Meaple said:
Well CWM will create the sd-ext.img backup if it detects that the partition is there. If out doesn't detect it then it will skip it like it did. There is nothing wrong with cwm at all and out works. You could upgrade your recovery to 3.2.0.1 but it won't make a difference really. Only way around it is to use titanium backup as it will restore straight to sd-ext
Swyped...
Click to expand...
Click to collapse
Hi,
I used gparted to firstly create a fat 32 partition then secondly a ext3 partition (for apps) on a new sd card. I cant see a sd-ext.img file in the nandroid backup file produced by cwm 3.0.0.5 so I assume that it cannot detect the ext3 partition.
Do you have any idea as to why this is? Can I have done anything to help cwm "see" the partition.
I'll update to 3.2.0.1 to try if the same problem occurs in that release.
I take your point that I could use titanium backup to achieve the same. I dont really want to do this as as I find it a pain to re-install the large number of apps I like to carry about on my desire. The problem is that I know what runs well on a ext-3 partition and what only runs on int or system space. I only allow apps into system or int if I really them to be there so this means thatyou have to manually install each one of them to the relevant space. Also I use ext3 for dalvik cache (seems to improve performance).
I cant see a reason why 3.0.0.5 didnt see the ext3 partition and ideally I would like a nandroid recovery solution that could auto detect all partitions if present (as I guess many others would).
I'll update this thread when I have run through the update to 3.2.0.1 and done some more testing.
I think CWM doesn't backup ext-partition if there's no data
try the old CWM.. the one comes while you root with unrevoked3 .. coz I have old CWM and it does backup sd-ext.

[Q] how to create ext4 system partition?

like the title says, I want an EXT4 partition from my system, wich is needed to install mods.
im currently running cyanogenmod 7.2 rc1 rooted, clockworkmod installed.
to install the script, I need an EXT4 system partition. I know how to do this on my SD card, but how to do this on your system?
thanks
You find the tutorial in this thread:
http://forum.xda-developers.com/showthread.php?t=1397120
But you need a card reader, you can't format to ext4 with usb cable.
LegoGabi: he's talking about the internal memory.
IIRC the CM7 install script did the formatting for you.
Starting from RFS partitions, either:
-Install a ROM with CWM that includes the reformatting utilities in its zip along with the required commands in the script.
-Use an appropriate ext4 CWM recovery and use the format functions in there.
-You could also make your own script, there's a few out there for other devices that could be adapted...
Oh, i thought he wants to make app2sd work.
I think cyanogen are already EXT4, so you don't need to convert it anymore
Cyanogenmods for Gio are in EXT4.
It formats internal partitions during installation.
Sent from my GT-S5660

Using SDCARD as /data

I have a problem with my phone.
I believe that the internal partitions are messed up.
I have tried a couple of guides to fix this but no luck. I get "error formatting /data!" on recovery. I also tried using the formatting tools from adb shell (e2fsck, gparted).
The main problem is that when i restart my phone the /data partition gets wiped, and the phone reboots in blank, no apps no setting (some of them remain).
I wonder if i can solve this by setting my sd-card to be the new /data. I doesn't matter if i have to leave the sd-card on all the time. i mainly use this phone for developing apps.
Thanks.:good:
Felivel said:
I have a problem with my phone.
I believe that the internal partitions are messed up.
I have tried a couple of guides to fix this but no luck. I get "error formatting /data!" on recovery. I also tried using the formatting tools from adb shell (e2fsck, gparted).
The main problem is that when i restart my phone the /data partition gets wiped, and the phone reboots in blank, no apps no setting (some of them remain).
I wonder if i can solve this by setting my sd-card to be the new /data. I doesn't matter if i have to leave the sd-card on all the time. i mainly use this phone for developing apps.
Thanks.:good:
Click to expand...
Click to collapse
It could probably be done if you could get the sdcard to mount at boot, not sure if thats possible. You would need to create a flashable much like the ext4 mod, that edits the init.inc.rc file to mount the sdcard and /data to it. You would want to partition your sdcard with an ext3 or ext4 partition and use that for data.
Yes it can be done. That's how boot manager works, by modifying the ramdisk to load images from sdcard or emmc instead of the partition. I think I have an idea on how to make your request work.
Edit: If you feel like trying a project, what needs to be done is create a file data.img and mount it as loopback using busybox (ROM needs a working busybox).
Then the boot.img needs to be updated replacing the mount /data entry in init.inc.rc with the location of the loopback device and a loopback setup prior to this. The data.img created needs to be formatted ext3 or ext4. I know it's not too detailed but rather just a summary.

[Q] sd-ext not mounting properly

Hi
I installed (12/15/2012) [SS] Jelly Bean CM10 v2.9.1 (4.1.2) version 3.0 on my desire and followed all the settings for CPU governor and A2SD scripts. Configured my email, and installed all apps from scratch.
Everything seemed fine, worked smooth. Last night the phone crashed and rebooted and somehow lost most of the apps., including Google play which makes things harder ... Looking at memory usage, it look like there is a problem with /sd-ext.
if i open terminal, and try to run A2SD again, it also shows a problem:
/sd-ext not mounted properly, it might have errors
Found block device: /dev/block/mmcblk0ps
Removing flag a2sd
Removing flag ad2sd
Removing flag dc2sd
Setting flag a2sd
/system/bin/a2sd: line 74: /sd-ext/.a2sd: read-only file system
chmod: /sd-ext.a2sd: no such file or directory
would you also like to move DALVIK-CACHE
I put the SDcard in my computer and it showed no errors
When I go into recovery, I can mount all partiotions without problems??
For now I will go to reflash the phone and start all over.
How can I find out what happened here and how to prevent that?
And is there an easier way to repair this problem
hoping it will not occur again...
Happy new year, best whishes for everyone, and hoping for help
D.
UPDATE: cleared all data from within recovery, cleared cache from recovery and reflashed the zip
when I try to run the a2sd script error is still there!!!
put the sdcard in mu computer, deleted and recreated the partition
and then the error is gone ... ??
How did you create the partition? Use gparted or 4ext recovery only, not minitool or clockworkmod recovery
I used minitool
What is the difference?
So it will crash again?
Anything i can do as a repair or do i have to start all over again?
Thanx for your help!
Sent from my Transformer TF101 using Tapatalk 2
Minitool doesn't create the partitions properly.
Backup your sd card to pc. Then I recommend to delete all partitions and repartition using gparted. Search for guide in development section.
Copy everything back to sd card afterwards, then rerun the a2sd commands
Sorry for not understanding ...
Can I copy the ext4 partition as well then? If I delete that, I am in the same situation as yesterday after the crash (?)
Just running the a2sd again did not work then
Thx
D.
Sent from my Transformer TF101 using Tapatalk 2
duiksmurf said:
Sorry for not understanding ...
Can I copy the ext4 partition as well then? If I delete that, I am in the same situation as yesterday after the crash (?)
Just running the a2sd again did not work then
Thx
D.
Sent from my Transformer TF101 using Tapatalk 2
Click to expand...
Click to collapse
1. try to backup user apps only using titanium backup, don't know how many have been lost, but can try and save the others.
2. copy whole sd card to pc. this just copies the whole FAT32 partition of the sd card. you will not see the ext4 partition when connected to PC, don't worry about it.
3. delete all partitions and repartition using gparted (step 5 here)
4. copy the backup back onto sd card.
5. full wipe everything from recovery, flash rom, run A2SD commands and reboot etc.
6. restore any apps using titanium, should go to partition automatically if everything is working. install another app like diskusage to browse all your partitions.
How to fix the dreaded sd-ext not mounting properly, or fix A2SDGUI not rebooting/crashing
The reason this happens is because you have flashed a rom that doesnt support ext4. You will have to change the ext4 partitiion to ext3 in order to get a2sd to install properly.
If you have backed up your data and just need to get a2sd running follow this guide, I am not responsible for lost data or a corrupt sd card
1) Download aparted app. WARNING: If used incorrectly you can destroy the data in your sdcard
Click tools. There should be a partition called FS: ext4, Select it, then press delete(WARNING DATA FOR APPS WILL BE LOST)
2. Click create, then select EXT 3 this time, and the default size 999, dont touch any other settings or you'll corrupt your sdcard, dont touch the init and end parameters!
3. REBOOT the phone
4. Then try a2sd install in terminal or if your using the A2SDGUI, click Dalvik, select Dalvik on SD-EXT, then hit Move and Rebuild, wait for it to reboot, if it does not reboot hit Move! and wait for it to reboot. It should reboot, if it doesnt reboot or crashes you didnt read step 3 when I said to reboot your phone after adjusting the partition, or you mistakenly chose ext4 partition!
If your were silly enough not to backup your data, you can download gparted iso and boot it using your PC. Then connect the phone and goto the ext4 partition and COPY all the files and paste it in a temporary folder. Then delete the partition, then create an EXT3 partition and PASTE back all the data files in the ext3 partition.
alochet said:
How to fix the dreaded sd-ext not mounting properly, or fix A2SDGUI not rebooting/crashing
The reason this happens is because you have flashed a rom that doesnt support ext4. You will have to change the ext4 partitiion to ext3 in order to get a2sd to install properly.
If you have backed up your data and just need to get a2sd running follow this guide, I am not responsible for lost data or a corrupt sd card
1) Download aparted app. WARNING: If used incorrectly you can destroy the data in your sdcard
Click tools. There should be a partition called FS: ext4, Select it, then press delete(WARNING DATA FOR APPS WILL BE LOST)
2. Click create, then select EXT 3 this time, and the default size 999, dont touch any other settings or you'll corrupt your sdcard, dont touch the init and end parameters!
3. REBOOT the phone
4. Then try a2sd install in terminal or if your using the A2SDGUI, click Dalvik, select Dalvik on SD-EXT, then hit Move and Rebuild, wait for it to reboot, if it does not reboot hit Move! and wait for it to reboot. It should reboot, if it doesnt reboot or crashes you didnt read step 3 when I said to reboot your phone after adjusting the partition, or you mistakenly chose ext4 partition!
If your were silly enough not to backup your data, you can download gparted iso and boot it using your PC. Then connect the phone and goto the ext4 partition and COPY all the files and paste it in a temporary folder. Then delete the partition, then create an EXT3 partition and PASTE back all the data files in the ext3 partition.
Click to expand...
Click to collapse
Eh?
- The ROM supports ext4 just fine, most ROMs here do. ext4 is also faster than ext3...
- The problem was that the partition was poorly created in minitool partition wizard, likely that it was not properly aligned.
- The issue has already been solved...9 months ago...

[Q] CWM Backup to extSdCard

Hi,
I think my question have to be the thread in the Developer Section but I'm a new user and not allowed to post there at the moment so I have to write here.
I've rooted my I9195 and also installed the ClockworkMod Recovery v6.0.3.3 from arco68. When I want to make a backup the device offers me the option "backup to external sdcard" but selecting it brings the error "Can't mount backup path".
Is there any chance to solve this problem? I would like to have my backups on the sdcard and not in the internal memory.
Another problem is that CWM sets doesn't set the folder name correctly. On my Desire the folder was the actual date and time (e.g. 2013-07-26.08.33.25) but my backup from last week has the foldername 2013-01-01.09.14.57.
Regards,
Marco
I'll look into the backup thing.
The date/time thing is because your device didn't have it up to date when you made the backup. This device doesn't store the time between reboots afaik. To fix that it requires a change in the kernel, which I have already done in my custom kernel for CM10.1, but I can apply it to the insecure kernel as well.
arco68 said:
I'll look into the backup thing.
The date/time thing is because your device didn't have it up to date when you made the backup. This device doesn't store the time between reboots afaik. To fix that it requires a change in the kernel, which I have already done in my custom kernel for CM10.1, but I can apply it to the insecure kernel as well.
Click to expand...
Click to collapse
This would be great!!!
dietmarthebiker said:
I've rooted my I9195 and also installed the ClockworkMod Recovery v6.0.3.3 from arco68. When I want to make a backup the device offers me the option "backup to external sdcard" but selecting it brings the error "Can't mount backup path".
Click to expand...
Click to collapse
I had the same problem. It seems that this ClockworkMod Recovery doesn't support exFAT file system. The phone formats my sdcard in exFAT file system by default. The solution is to format sdcard in FAT32 file system. I formatted my sdcard in FAT32 and ClockworkMod Recovery properly made a backup using "backup to external sdcard".
One can use EaseUS partition manager for Windows, or gparted for Linux, to format sdcard in FAT32 file system.

Categories

Resources