Auto Partition Tool - G1 Android Development

Hello, Ive found it to be a hassle having to type all those commands everytime i want to partition my SD card for A2SD/Swap/fat32, so i decided to make a script for it
I dont know if this has been made before but I couldnt find anything like this. The instructions are from Cyanogen Wiki A2SD tutorial.
This particular script works only for 8GB SD Cards (which is what I have). If you want to make it work for a different size SD card just edit it for your Card or tell me what your total SD Card size is in MB (by typing in parted /dev/block/mmcblk0 print in ADB Shell) and Ill do it for you.
SD Card Format Tool

melterx12 said:
Hello, Ive found it to be a hassle having to type all those commands everytime i want to partition my SD card for A2SD/Swap/fat32, so i decided to make a script for it
I dont know if this has been made before but I couldnt find anything like this. The instructions are from Cyanogen Wiki A2SD tutorial.
Click to expand...
Click to collapse
Not to offend..But Amon_RA recovery all ready partitions the sd for you...rendering this script or whatever useless...Most people should be using that recovery, it makes wiping, partition and backing up simpler than your day job or school and that stuff...

Good job. Amon_Ra's newest recovery does this as well. Just a quick heads up.
Edit: Hey Ace. . . JINX!!! lol

well im using CM 1.4 Recovery

melterx12 said:
well im using CM 1.4 Recovery
Click to expand...
Click to collapse
You pretty much reinvented the wheel
If your as wise as i think you better get your arse over to the thread to upgrade from that relice thats older than my dad's model T w/ twin turbo V8.

does Amon_RA recovery do anything else CM 1.4 doesnt?

melterx12 said:
does Amon_RA recovery do anything else CM 1.4 doesnt?
Click to expand...
Click to collapse
Path to Manup life-style
Heres the sitrap:
Features
* full ADB access in recovery mode
* Busybox v1.15.2
* HW-Key navigation (volume keys + CALL-ANSWER) option
* Extended menu (with keyboard-shortcuts):
o [HOME+Back] Reboot system now :: reboot your phone
o [Alt+X] Go to console :: bring up the console
o [Alt+T] USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
o [Alt+B] Backup/Restore (recovery partition not included!)
+ [Alt+0] Nand backup :: Make a Nand backup
+ [Alt+1] Nand + ext backup :: Make a Nand + ext backup
+ [Alt+2] Nand restore :: Restore a Nand backup
+ [Alt+3] BART backup :: Make a BART backup (Nand + ext)
+ [Alt+4] BART restore :: Restore latest BART backup
o [Alt+F] Flash zip from sdcard :: Flash a zip update file from your sdcard
o [Alt+W] Wipe
+ [Alt+0] Wipe data/factory reset :: Wipe /data and /cache
+ [Alt+1] Wipe Dalvik-cache :: Wipe Dalvik-cache both on /data and ext
+ [Alt+2] Wipe SD:ext partition : Wipe the ext partition on your sdcard
+ [Alt+3] Wipe battery stats : Wipe the battery stats in /data
+ [Alt+4] Wipe rotate settings : Wipe the sensor settings in /data
o [Alt+P] Partition sdcard
+ [Alt+0] Partition SD :: Interactive SD partitioning
+ [Alt+1] Repair SD:ext :: Repair the ext partition
+ [Alt+2] SD:ext2 to ext3 :: Convert ext2 to ext3
+ [Alt+3] SD:ext3 to ext4 :: Convert ext3 to ext4
o [Alt+O] Other
+ [Alt+0] Fix apk uid mismatches :: Does extacly that
+ [Alt+1] Move apps+dalv to SD :: Moves all apps and Dalvik-cache to sdcard (This will NOT enable apps2sd!)
+ [Alt+2] Move recovery.log to SD :: Moves the recovery log f

ok ill go ahead and update to Amon_RA
well still useful script if you are on CM 1.4

Sweet. I have been using the sdparted.txt script to do that.
I will def upgrade my recovery next time I switch mods.
Thanks you very much.

Ace42 said:
You pretty much reinvented the wheel
If your as wise as i think you better get your arse over to the thread to upgrade from that relice thats older than my dad's model T w/ twin turbo V8.
Click to expand...
Click to collapse
lol some ppl still managed to use stock recovery like dat noob with eiclair build lmao
marlopainter said:
Sweet. I have been using the sdparted.txt script to do that.
I will def upgrade my recovery next time I switch mods.
Thanks you very much.
Click to expand...
Click to collapse
ouch yeah that was painful

Related

[recovery][32A-OR/NR]RA-magic+-v2.2.1-bladyle

Hello,
I made this port some time ago with little help from seo, but didn't make a new thread for it. Now I want more people to look at it and use it because it have many new futures and make flashing ROMs more fun
So this is actually the amon_RA latest recovery for Nexus One.
What I made is just to port it to work with our phones.
Features :
Reboot system now :: reboot your phone
USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
Backup/Restore
Nand backup :: Make a selective Nandroid backup
Nand restore :: Restore a Nandroid backup
Backup Google proprietary system files :: Makes a backup of the Google proprietary system files in /cache/google
Restore Google proprietary system files :: Restores the Google proprietary system files from /cache/google
Flash zip from sdcard.
Choose zip from sdcard :: Flash a zip update file from any (sub)-directory on your sdcard
Toggle signature verification :: Toggles the signature verification for zip files.
Wipe
Wipe ALL data/factory reset :: wipes /data + /cache + entire ext partition + all apps installed on your sdcard (froyo a2sd).
Wipe /data :: wipes /data.
Wipe /cache :: wipes /cache.
Wipe /sdcard/.android_secure :: wipes all apps installed on your sdcard (froyo a2sd).
Wipe /sd-ext :: wipes the entire ext partition on your sd (if present).
Wipe Dalvik-cache :: wipes the dalvik-cache located in /cache + /data + /sd-ext is present.
Wipe battery stats :: reset the battery calibration.
Wipe rotate settings :: reset the sensor calibration.
Partition sdcard
Partition SD :: Interactive SD partitioning
Repair SD:ext :: Repair the ext partition
SD:ext2 to ext3 :: Convert ext2 to ext3
SD:ext3 to ext4 :: Convert ext3 to ext4
Mounts
(Un)Mount /system
(Un)Mount /cache
(Un)Mount /data
(Un)Mount /sd-ext
(Un)Mount /sdcard
Other
Fix apk uid mismatches :: Does extacly that
Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
Power off :: Powers off your phone
Click to expand...
Click to collapse
Use the trackball (up+down) to navigate through the menu, press the trackball to select items. Use the Volume-down key to go back to a previous menu.
Download:
recovery-RA-magic+-v2.2.1-bladyle.img
MD5sum: 98A8CAE41C0A7D2AEF69A4F62F2F6475
Install:
From fastboot:
Code:
Copy recovery-RA-magic+-v2.2.1-bladyle.img to a location where fastboot can find it.
Boot your phone into fastboot mode (power on while holding the back)
Connect your phone via usb to your pc/mac/...
fastboot devices (to make sure that fastboot "sees" your phone)
fastboot flash recovery recovery-RA-magic+-v2.2.1-bladyle.img
You can use RadioSwitchGUI_v4 too!
If you want just to try it:
Code:
fastboot boot recovery-RA-magic+-v2.2.1-bladyle.img
Thanks and credits go to :
Amon_RA
seo
carz12
sorry. ask a stupid question.is this recovery for 32a, 32b or both?
Sent from my Dream/Sapphire using XDA App
smartvincent said:
sorry. ask a stupid question.is this recovery for 32a, 32b or both?
Sent from my Dream/Sapphire using XDA App
Click to expand...
Click to collapse
sorry i forgot to mention this...it is for 32a only
I can try to make 32b version too but I need someone to test it.
Bladyle said:
sorry i forgot to mention this...it is for 32a only
I can try to make 32b version too but I need someone to test it.
Click to expand...
Click to collapse
If you make a 32b version i'd gladly test it
I've been using this recovery for some time and it runs perfectly. And it works in both new and old radio. Great work!
Note: It's features and not futures.
using this recovery too and im really happy with this! thank you Bladyle! great job!
thank you guys
BTW I need some testers to PM for 32B/MyTouch 1.2 port
I'm also using this on my Old Radio Magic, haven't tested on new radio yet
it works well
New radio, excellent work
Sent from my Sapphire using XDA Premium App
works like a charm with new radio
Bump. This amazing recovery need to be on the first page!
kanttii said:
Bump. This amazing recovery need to be on the first page!
Click to expand...
Click to collapse
Thanks mate!
This is my default recovery on my device.
Bladyle said:
Thanks mate!
This is my default recovery on my device.
Click to expand...
Click to collapse
For me too. When you first posted it, I didn't dare to try, but after a few days I did..and since then I have been using this all the time! A week ago I tried CWM to see if a ROM could be flashed through that, but since CWM is so frustrating with all the nonononono's I had to get back to yours. And it's amazing as I already said!
Thank you!
Hi bladyle ,
I´ve read this thread about your updated RA-recovery. Because of the fact, that I´ve a google branded magic, I can´t flash this recovery. So my ask to you, if you could make a 32B Version or could tell the steps, how to port a recovery from another device.
Greets
I would also be glad to test a 32B port of this. Just let me know!
Can somebody reupload this? Please...
blaster44 said:
Can somebody reupload this? Please...
Click to expand...
Click to collapse
first post updated
Bladyle said:
first post updated
Click to expand...
Click to collapse
my bad....
Wow...New radio version thanks for the great work
Sent from my HTC Magic
I'm glad you like it

4EXT/Partitioning Help!

Hello there! if I just want 1gb partition for games,apps, and I got a 8gb card, whats the correct way to do this on 4EXT recovery?
Also one of the things says....
Warning sd-ext2 is not formatted!
how do i format sd-ext2???
how do I go about clearing everything and starting again? there is a option in the wipe/format menu, called Wipe all Partitions (DANGEROUS!), does this clear everything? I dont want to do it without checking with experienced forum members first, so if you can help, please leave below....
You've got one solution
Make a backup from your sdcard on your PC, and format partition and increasing the size of three of them ( system, data, cache, sd_ext and ext2) with your recovery on EXT4.
Like this:
- system => Ext4
- data => Ext4
- Cache => Ext4
- SD-ext => Ext4
- SD-ext2 => EXt4 or Ext3
- sdcard => fat32
then, restore your files on your sdcard.
biggary said:
Hello there! if I just want 1gb partition for games,apps, and I got a 8gb card, whats the correct way to do this on 4EXT recovery?
Also one of the things says....
Warning sd-ext2 is not formatted!
Click to expand...
Click to collapse
Use the EXT4 recovery as suggested, although are you sure that you'll need this space as the DS had over 1GB of internal user storage available to you by default. Mine has over 700mb free with all my applications installed.
The un formatted message relates simply to the non existence of the partition and isn't anything to worry about.
To wipe everything, the easiest way is to simply perform a factory reset, either from bootloader or from settings
The wipe all isn't what you are after as this is used by ROM cooks and wipes all partitions, which should only be used when installing new roms
Swyped from HTC Desire S using XDA Premium

[Q] Convert SDCard to EXT4?

Running the latest version of A2SD on my EVO Shift w/ the Supreme Sense ROM, but when I execute a2sd convert-ext4 I get "invalid command". Ideas?
Cooknn said:
Running the latest version of A2SD on my EVO Shift w/ the Supreme Sense ROM, but when I execute a2sd convert-ext4 I get "invalid command". Ideas?
Click to expand...
Click to collapse
flash twrp recovery and use that to convert to ext4
kendotelie said:
flash twrp recovery and use that to convert to ext4
Click to expand...
Click to collapse
Ok. I have TWRP Recovery installed. But I'm not clear on what to do in order to convert my SDCard...
[EDIT]Disregard above. I just did a nandroid backup including sd-ext. That *is* my SDCard, correct?
Cooknn said:
Ok. I have TWRP Recovery installed. But I'm not clear on what to do in order to convert my SDCard...
[EDIT]Disregard above. I just did a nandroid backup including sd-ext. That *is* my SDCard, correct?
Click to expand...
Click to collapse
sd-ext is on the ext3 or ext4 partition
if youve never done it before. under twrp
Advanced Menu -> Partition SD Card -> Partition SD Card ->
from there set the size for your swap partition, and then the size for your sd ext partition- and it will let you choose ext3 or ext4
kendotelie said:
sd-ext is on the ext3 or ext4 partition
if youve never done it before. under twrp
Advanced Menu -> Partition SD Card -> Partition SD Card ->
from there set the size for your swap partition, and then the size for your sd ext partition- and it will let you choose ext3 or ext4
Click to expand...
Click to collapse
Appreciate your help, kendotelie! I'm completely ext4 now
Np. I'm glad I did. I love that my apps don't disappear when I mount the usb storage
Sent from my PG06100

[MOD] Move to sd-ext | Simple app, private-app and Dalvik cache to SD solution

This is a simple and effective (moves most space hogging folders from internal memory to sd-ext) APP2SD solution.
It moves the following things from /data partition to ext partition on SD card:
/data/app => /sd-ext/app
/data/app-private => /sd-ext/app-private
/data/dalvik-cache => /sd-ext/dalvik-cache
and creates symlinks to new locations in place of original folders.
Solution consists of 2 via recovery flashable ZIPs:
sd-ext_patch-signed-vXX.zip - this updates/creates CyanogenMod 7/9 script that mounts SD card ext partition to /sd-ext so /sd-ext can be any ext version (by default it can be only ext3) and installs e2fsck. This must be re-flashed after each ROM update (unless you know that ROM will mount your /sd-ext out of the box).
to_sd-ext_patch-signed-vXX.zip - actually moves folders to ext partition on SD card. This can be flashed only after first boot into ROM after wiping /data. It should be re-flashed only in conjunction with wiping /data and /sd-ext.
This mod requires ext2/ext3/ext4 partition on SD card.
Always make full Nandroid backup before flashing this mod or updating ROM with mod installed!
Disclaimer: I am not responsible for anything that may happen as a result of using this mod.
Installation/usage:
To install mod on a working ROM:
Flash sd-ext_patch-signed-vXX.zip via Recovery.
Flash to_sd-ext_patch-signed-vXX.zip via Recovery.
After updating ROM:
Re-flash sd-ext_patch-signed-vXX.zip without booting into updated ROM.
After wiping /data from Recovery:
Delete moved folders from /sd-ext (in most cases you will want to do this by wiping /sd-ext from Recovery).
Boot into your ROM.
Re-flash to_sd-ext_patch-signed-vXX.zip via Recovery.
This mod is tested with CyanogenMod 7 (7.1 by mik_os and 7.2 official builds) and CyanogenMod 9 by hephappy and Amon RA recovery 3.0.6.
If you are using Clockworkmod Recovery see this post.
+1
Is this mod developed by you?
DJoptimus-One said:
Is this mod developed by you?
Click to expand...
Click to collapse
Yes
DavisNT said:
Yes
Click to expand...
Click to collapse
Nice work, I'm surely gonna try
Keep up.
Good work here!! Really nice to see some REAL development here
Will try it and report soon.........
Sent from heaven, wandering with Steve Jobs
Any feedback yet? Would love to give it a try :thumbup:
Sent from my LG-P500 using XDA
FitAmp said:
Any feedback yet? Would love to give it a try :thumbup:
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
Don't ask for that, try it yourself!!
nice work will try
Does this work on gb?2.3.3?
How to move app's ? Does this automatically moves it?
Sent from my LG-P500 using XDA
Just flashed on cm9 weekly... so for so good
Sent from my LG-P500 using XDA
Good work. Nice example of KISS approach - three symlinks + few lines of other code
dynamite33 said:
Does this work on gb?2.3.3?
How to move app's ? Does this automatically moves it?
Click to expand...
Click to collapse
You can make full Nandroid backup (Nand backup in recovery) and try whether it works on your ROM.
This requires the following things:
ext partition on SD card (you must have partitioned your SD card)
ROM that supports init.d scripts
kernel that supports ext filesystem version that is on SD card
You can test all this by (making full Nandroid backup and) flashing sd-ext_patch-signed-vXX.zip, booting in Android and issuing the following commands in Terminal Emulator:
Code:
su
mount
mount | grep sd-ext
If you see line like this somewhere in the output:
Code:
/dev/block/mmcblk0p2 on /sd-ext type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
then /sd-ext is mounted and you can proceed to flashing to_sd-ext_patch-signed-vXX.zip.
Apps are moved when flashing to_sd-ext_patch-signed-vXX.zip.
DavisNT said:
You can make full Nandroid backup (Nand backup in recovery) and try whether it works on your ROM.
This requires the following things:
ext partition on SD card (you must have partitioned your SD card)
ROM that supports init.d scripts
kernel that supports ext filesystem version that is on SD card
You can test all this by (making full Nandroid backup and) flashing sd-ext_patch-signed-vXX.zip, booting in Android and issuing the following commands in Terminal Emulator:
Code:
su
mount
mount | grep sd-ext
If you see line like this somewhere in the output:
Code:
/dev/block/mmcblk0p2 on /sd-ext type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
then /sd-ext is mounted and you can proceed to flashing to_sd-ext_patch-signed-vXX.zip.
Apps are moved when flashing to_sd-ext_patch-signed-vXX.zip.
Click to expand...
Click to collapse
Ok thanx a lot! Will try it.
Sent from my LG-P500 using XDA
hi DavisNT
i use Link2sd now, and want to try ur script, can i remove link2sd and use ur script without problem and without losing my apps ?
GonDr said:
i use Link2sd now, and want to try ur script, can i remove link2sd and use ur script without problem and without losing my apps ?
Click to expand...
Click to collapse
Try it, but remember to take full Nandroid backup before trying.
You can do this:
do full Nandroid backup from recovery
With Link2SD move all applications back to internal memory
delete mount scripts created by Link2SD (probably there is a kind of uninstall option in Link2SD)
install my mod
If you don't have enough space in internal memory, then it is possible to use Titanium Backup to backup and restore apps (however I am not sure whether Titanium Backup can backup data of applications linked with Link2SD - probably can, but I am not sure).
DavisNT said:
Try it, but remember to take full Nandroid backup before trying.
You can do this:
do full Nandroid backup from recovery
With Link2SD move all applications back to internal memory
delete mount scripts created by Link2SD (probably there is a kind of uninstall option in Link2SD)
install my mod
If you don't have enough space in internal memory, then it is possible to use Titanium Backup to backup and restore apps (however I am not sure whether Titanium Backup can backup data of applications linked with Link2SD - probably can, but I am not sure).
Click to expand...
Click to collapse
I don't think that titanium can restore anything to sdext, it just saves anything, including linked stuff and if trying to restore everything together it will fail, if the total of backed apps is larger than internal storage...
However, if link2sd is installed, the later will start linking data/apps 'on the fly' as Tib restores them. That's why it is essential to install link2sd or similar before going to batch-restore everything.
I guess this script should handle it in a similar way? I'm going to try anyway.
My idea was backing up most of apps with Titanium Backup while using Link2SD, then removing them (and moving left apps back to internal memory, uninstalling Link2SD mount scripts) and restoring after installing my script (Move to sd-ext).
Move to sd-ext links all applications (and dalvik cache, but not application data and library files extracted to data folders) at once - Titanium Backup will restore directly to SD card
can you explain me what's the difference between this mod and d2sd ungaze?
thanks
mutia said:
can you explain me what's the difference between this mod and d2sd ungaze?
thanks
Click to expand...
Click to collapse
If I correctly got what D2SD ungaze does, then it moves applications, applications data and libraries (/data/app, /data/app-private and /data/data) to SD card ext partition and leaves Dalvik cache (/data/dalvik-cache) on internal memory (/data partition).
While my mod moves and links applications and Dalvik cache (see first post in this thread for details), leaving all other folders (some system configuration and application data and libraries) in internal memory (/data partition).
Also technical implementation is very different from my mod. D2SD ungaze copies everything and links back certain things. It looks like D2SD ungaze also doesn't free space on /data partition.
DavisNT said:
You can make full Nandroid backup (Nand backup in recovery) and try whether it works on your ROM.
This requires the following things:
ext partition on SD card (you must have partitioned your SD card)
ROM that supports init.d scripts
kernel that supports ext filesystem version that is on SD card
You can test all this by (making full Nandroid backup and) flashing sd-ext_patch-signed-vXX.zip, booting in Android and issuing the following commands in Terminal Emulator:
Code:
su
mount
mount | grep sd-ext
If you see line like this somewhere in the output:
Code:
/dev/block/mmcblk0p2 on /sd-ext type ext4 (rw,noatime,nodiratime,barrier=1,data=ordered)
then /sd-ext is mounted and you can proceed to flashing to_sd-ext_patch-signed-vXX.zip.
Apps are moved when flashing to_sd-ext_patch-signed-vXX.zip.
Click to expand...
Click to collapse
i flashed the first zip file, then made this test through Terminal Emulator and got a line similar to the one you mentioned (my sd-ext is type 3, and the info in brackets was a bit different).
then i flashed second zip file.
the free RAM space increased (which necessarily means that things were moved to the sd-card, right?)
i then installed an app - and saw RAM decreasing accordingly, plus - the sd-ext folder is empty
how can i know if it works ?!?

[GUIDE] Convert /data to f2fs with TWRP 2.8.+ [TF700T]

Prerequisites:
You need to be on the 10.6.1.14.10 bootloader
You need to know how to flash a recovery
Some background reading on f2fs: http://en.wikipedia.org/wiki/F2FS
Step 1:
Backup all your data off the tablet because it will get wiped!!
Step 2:
Install a recovery that supports conversion to the f2fs file system
You can use the official TWRP 2.8.x from here:
http://forum.xda-developers.com/tra...overy-kang-twrp-tf700t-2-8-x-xarea51-t3049395
Do not use TWRP 2.8.5 - it has a bug with the f2fs conversion - or 2.8.6 for that matter. It has another bug: won't reboot to anything from recovery...
For Transformer users I would highly recommend to install @lj50036 TWRP Kang version from here:
http://forum.xda-developers.com/tra...overy-kang-twrp-tf700t-2-8-x-xarea51-t3049395
His Kang TWRP allows you to format/convert/backup external partitions or entire cards which will come in very handy for data2sd or rom2sd users.
It even supports the dock SD!
Step 3
Flash your chosen recovery in fastboot and reboot.
Optional but recommened
Since you are at it anyway I would recommend you format your /data partition before you convert to f2fs. The TWRP build-in "Format data" option does a "a secure erase" which trims and wipes every single block. A great way to start with a fresh and clean data partition. This process takes time - could be upwards of 60 minutes - do not interrupt it!!! You find the option under the Wipe menu
Step 4:
Enter TWRP, choose Wipe > Advanced Wipe
To Convert INTERNAL /data to f2fs
Check the box for "data"
Tap "change or repair file system"
Tap "Change file system"
Tap "F2FS"
Swipe the button
DATA2SD/ROM2SD users only:
To Convert EXTERNAL /data to f2fs (with lj's Kang TWRP TF700T only - official TWRP does not support this)
Check the box for Ext/data
Proceed as above
Step 5
Go back to TWRP Home screen, and reflash your ROM - which you have stored somewhere you did NOT wipe with the preceding steps!! Like: your microSD
Notes:
With /data on f2fs you need to run your ROM with a kernel that supports that file system. Read the OP of your ROM thread
Convert ONLY /data to f2fs. Do NOT convert /system (or anything else for that matter)
If you forma /data back to ext4 for any reason it will take up to 90 minutes. Do not interrupt it!!!
DATA2SD/ROM2SD ONLY
If you have the official TWRP installed and do not want to flash lj's Kang TWRP, you can - as always - use the data2sd1.zip/rom2sd1zip to have TWRP act on your external partitions.
MINE ......
Cool!
berndblb said:
Convert EXTERNAL /data to f2fs (lj's Kang TWRP TF700T only)
Check the box for Ext/data
Proceed as above
5. Step
Go back to TWRP Home screen, and reflash your ROM - which you have stored somewhere you did NOT wipe with the preceding steps!!
Click to expand...
Click to collapse
Convert EXTERNAL /data to f2fs
-- > ??? Is this a folder or a partition as stated in " post #2 Using GParted to setup a micro SD for ROM2SD or DATA2SD support"
reflash your ROM - which you have stored somewhere you did NOT wipe with the preceding steps!!
--> ??? It must be on external, I presume?
Where could it be located? If on external i suppose it is on:
--> ??? 14. FAT 32 : Size 16GB – this will be /dev/sdc1 in gparted and will be your sdcard for storage in Android
eRPeeX said:
Convert EXTERNAL /data to f2fs
-- > ??? Is this a folder or a partition as stated in " post #2 Using GParted to setup a micro SD for ROM2SD or DATA2SD support"
Click to expand...
Click to collapse
It's the second partition if you are running data2sd/rom2sd
data2sd:
1. partition fat32 = your microSD storage
2. partition f2fs (or ext4) = /data
rom2sd
1. partition fat32 = microSD storage
2. partition f2fs or ext4 = /data
3. partition ext4 = /system
[*]reflash your ROM - which you have stored somewhere you did NOT wipe with the preceding steps!!
--> ??? It must be on external, I presume?
Click to expand...
Click to collapse
The fat32 partition on the microSD (or just plain microSD if you don't run data2sd/rom2sd) is probably the safest place, yes.
Where could it be located? If on external i suppose it is on:
--> ??? 14. FAT 32 : Size 16GB – this will be /dev/sdc1 in gparted and will be your sdcard for storage in Android
Click to expand...
Click to collapse
Yes
berndblb said:
It's the second partition if you are running data2sd/rom2sd
data2sd:
1. partition fat32 = your microSD storage
2. partition f2fs (or ext4) = /data
rom2sd
1. partition fat32 = microSD storage
2. partition f2fs or ext4 = /data
3. partition ext4 = /system
The fat32 partition on the microSD (or just plain microSD if you don't run data2sd/rom2sd) is probably the safest place, yes.
Yes
Click to expand...
Click to collapse
So for f2fs you always need a Gparted formatted SD.
f2fs only on internal /Data is not possible?
Sure it is. Read step 4
I just only converted Internal /data to f2fs.
Flashed beta 4.
Seems to be possible to have f2fs only on internal.
eRPeeX said:
f2fs only on internal /Data is not possible?
Click to expand...
Click to collapse
berndblb said:
Sure it is. Read step 4
Click to expand...
Click to collapse
eRPeeX said:
I just only converted Internal /data to f2fs.
Flashed beta 4.
Seems to be possible to have f2fs only on internal.
Click to expand...
Click to collapse
Where does it say you can't????????????????
Edit: Ahhh! I see where your thinking went off track. You thought you had to convert both internal and external data for f2fs to work, right?
Nope - external data only concerns data2sd/rom2sd users. Edited OP to make that clear - I hope.
berndblb said:
Where does it say you can't????????????????
Edit: Ahhh! I see where your thinking went off track. You thought you had to convert both internal and external data for f2fs to work, right?
Nope - external data only concerns data2sd/rom2sd users. Edited OP to make that clear - I hope.
Click to expand...
Click to collapse
Yes, you could read my mind.
Just thought I'd share my experience, in case someone else makes the same mistake I did ...
I put the card into my computer and ran gparted to create the partitions. I fiddled with it for a while, resizing partitions while trying to decide how much space to allocate to each and what format to use for /data. I ended up with what graphically looked like the right layout:
I---sdcard---II--------------data--------------II---system---I
The rom2sd install seemed to go fine (Crombi-kk at the time). However I couldn't get it to boot.
Turns out in my fiddling I managed to get the second two partition table entries switched - partition 1 was fine, partition 2 pointed to the rightmost block graphically, parition 3 pointed to the middle block. I don't really know whether it was the installer or TWRP that got confused, or if it installed ok but the boot got confused.
In any case, deleting the partitions and re-creating them in order worked.
I have Zombi-X on a TF700T. I picked the F2FS option during install but didn't realize I had to have the /data partition formatted to F2FS first. So I'd like to minimize my update time. Can you tell me if this is how to proceed?
I have TWRP 2.8.4.0 already installed,
When you say backup data do you mean do a TWRP backup of the system/data/boot or just the /data section?
Or do you mean copy files to an SD card or PC?
I would then do the "optional" format of the /data partition using the existing data format ext4.
Then choose Wipe > Advanced Wipe
Check the box for "data"
Tap "change or repair file system"
Tap "Change file system"
Tap "F2FS"
Swipe the button
"Go back to TWRP Home screen, and reflash your ROM"
Do I have to do this? I don't want to change anything, the original install had F2FS enabled?
If I do have to do it, do you mean TWRP "restore" the ROM backup (system/boot/data) or actually TWRP
"install" the ROM zip file?
Then I would TWRP "restore" the /data backup and the tablet would work like it did before the reformat or would I have to reinstall apps, photos etc.?
Thanks for your help.
The easiest would be if you nandroid system/boot/data to your microSD. You gotta have it off internal storage. Nothing in internal /data will survive a format.
Then do the formatting and convert to f2fs
Restore your nandroid
You may get a warning from TWRP that the nandroid is off a different file system but you can safely ignore it.
Now, I do not quite remember where in Aroma the f2fs option was, but I think it's on that page about data journaling... So I'm not sure what selecting that option in Aroma actually does and if it gets implemented when the preinit script finds an ext4 partition instead.
But you can try it. Just restore the nandroid, pay attention during boot and read the script under the penguins.
If then your nandroid doesn't run as expected, reflash the rom with the same options, then restore only data from the nandroid you made earlier (during restore just uncheck boot and system). That also would give you an identical installation to what you have now.
berndblb said:
The easiest would be if you nandroid system/boot/data to your microSD. You gotta have it off internal storage. Nothing in internal /data will survive a format.
Then do the formatting and convert to f2fs
Restore your nandroid
You may get a warning from TWRP that the nandroid is off a different file system but you can safely ignore it.
Now, I do not quite remember where in Aroma the f2fs option was, but I think it's on that page about data journaling... So I'm not sure what selecting that option in Aroma actually does and if it gets implemented when the preinit script finds an ext4 partition instead.
But you can try it. Just restore the nandroid, pay attention during boot and read the script under the penguins.
If then your nandroid doesn't run as expected, reflash the rom with the same options, then restore only data from the nandroid you made earlier (during restore just uncheck boot and system). That also would give you an identical installation to what you have now.
Click to expand...
Click to collapse
Perfect, thanks. I will let you know my results. Might be a few days away.
IIRC the option is to turn on/off data journaling (one or two "l"s?) on ext2/3/4 partitions, with a final option of "f2fs user" where journalling is unnecessary. But it will not automatically format to f2fs in any case.
Hello. Yesterday I rebuilt my TF700 from the ground up. My intent was to get to Zombi-Rom with data2sd, to get a performant system. Here's what I did:
- started with twrp 2.8.6.x and Zombi-Rom beta 6, internal data, nice but laggy
- created two partitions on my samsung class 10 microSD card using gparted: 1. FAT32 at approx 4GB, 2. F2FS at approx 24GB
- flashed lj's kang twrp 2.8.6.1 recovery to replace 'standard' twrp 2.8.6.x
- formatted internal data using the kang twrp to f2fs (but it only took a second?) (I think this step was unnecessary, I meant to go to data2sd...)
- i *think* i formatted the new f2fs partition on the ext sdcard again using kang twrp, but don't recall. Rem: it was formatted f2fs by gparted already...I may have assumed I didn't need to do it again.
- flashed Zombi-Pop Android 5.1 beta 6, choosing the only kernel which has _that in the name
-- choosing f2fs
-- choosging data2sd (the ultimate goal of the exercise - get rid of TF700's awful lags/freezes)
-- choosing overclock (said it was required since _that kernel is selected)
-- choosing rest of default options
However I find performance is worse? I am sure I have done something wrong.
I have no data to protect or worry about tryig to restore. Before I do it all over again, do the steps above look correct, or am I making a mistake somewhere?
Thanks in advance.
Some people - me among them - have reported that data2sd doesn't work that well with ZOMBi-POP anymore. I do not get any performance improvement out of it with the same card that did well on other roms.
Could also be just your specific card - hard to tell.
I see no mistakes in your procedure but did you at any point do the secure erase the "Format Data" option provides? Read the "Optional but recommended" section in the OP.
Try different kernels. I like the Omni kernel best so far.
So my advice is: format internal data, then convert it to f2fs again, flash the rom with the omni kernel and all tweaks.
My TF700 runs very well with those options but it's still slower than my TF701 or my HTC M8 (there's actually no comparison to the latter..) and it always will be.
This is a what - almost 3 year old device now. These roms improve it by 300% but nothing will turn the TF700 into a smooth-as-silk-under-any-circumstances device....
berndblb said:
Some people - me among them - have reported that data2sd doesn't work that well with ZOMBi-POP anymore. I do not get any performance improvement out of it with the same card that did well on other roms.
Could also be just your specific card - hard to tell.
I see no mistakes in your procedure but did you at any point do the secure erase the "Format Data" option provides? Read the "Optional but recommended" section in the OP.
Try different kernels. I like the Omni kernel best so far.
So my advice is: format internal data, then convert it to f2fs again, flash the rom with the omni kernel and all tweaks.
My TF700 runs very well with those options but it's still slower than my TF701 or my HTC M8 (there's actually no comparison to the latter..) and it always will be.
This is a what - almost 3 year old device now. These roms improve it by 300% but nothing will turn the TF700 into a smooth-as-silk-under-any-circumstances device....
Click to expand...
Click to collapse
Same here Bernd - I see no improvements with data2sd anymore on zombi-pop.
I think we got internal running as sweet as can be
Bernd and dags,
thanks for the input, and again for all the great work to get it running the way you and your teammates have. Wish I had your know-how. At any rate I re-built it as originally posted and it's now working well. Backed that up and am trying it on internal today.
One more, maybe trivial question - the version of Nova Launcher says 'mod'. I can't install any other wallpaper with it. (I use Nova all the time, never seen this before.) Do you know if there something in the mod that makes it the default zombi-rom wallpaper or nothing?

Categories

Resources