[GUIDE] [21/03/2015] How to flash CyanogenMod 12 - HTC Pico (Explorer)

How to flash CyanogenMod 12
Code:
[CENTER]Neither I nor any other member of the forum not responsible for bricked devices and dead
SD cards. Whatever you do, you do it at your own risk![/CENTER]
What we need:
1. Last build of CyanogenMod 12
2. Last version of this recovery
3. HTC USB Drivers v4.0.1.001
4. MiniTool Partition Wizard
5. View attachment ADB.zip
How to do:
1. First you need to install HTC USB Drivers on your PC.
2. Now install MiniTool Partition Wizard.
Make a backup copy of the files on your SD-card. If you have any partitions on your SD-card you must delete them. Now insert your SD-card in card reader (don't use "Mount USB Storage" in recovery) and format it in file system FAT32 (note: all files will be deleted).
You must create two ext4 partitions on your SD-card.
Launch MiniTool Partition Wizard. You must delete partition on SD-card and create three new.
First partition SD with file system FAT32. Second partition SD-DATA with file system ext4 and size minimum 1Gb. Third partition SD-SYSTEM with file system ext4 and size 1.2Gb. All partitions must be Primary.
Partitions should look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
More instructions how to use MiniTool Partition Wizard you can find HERE.
3. Insert your SD-card in phone and boot it in recovery (use power button + volume down). In recovery go to "Wipe" menu [1] then in "Advanced Wipe" and do all wipes except sdcard and SD-Ext [2]. Now reboot your phone in Bootloader --> fastboot mode [3, 4].
Connect your phone to your PC using the cable.
Download ADB.zip and extract it on your PC. Download new recovery and rename it as "recovery.img". Put recovery.img in ADB folder and run recovery.bat from this folder.
After flashing recovery you must see cmd window like this:
4. Reboot your phone in recovery again. You need to convert your partitions from ext4 to f2fs.
Go to "Wipe" menu then in "Advanced Wipe" [1]. Now select "Data" and click on "Repair or Change File System" button [2], then click on "Change File System" button [3], choose "F2FS" [4] and swipe to change.
Go back and do the same with "System" [5].
After converting do all wipes except sdcard [6].
5. Download ROM and copy it on SD-card. Flash ROM. Flashing will take long so just wait.
6. After flashing ROM reboot your phone in Bootloader --> fastboot mode. Connect your phone to your PC using the cable.
Take out boot.img from ROM zip and put it in ADB folder on your PC. Run boot.bat from this folder.
After flashing boot.img you must see cmd window like this:
7. Now you can reboot your phone. After first boot you can back to recovery and flash Gapps if you need it.
Done!
Created 21-03-2015
Last Updated 21-03-2015

BCCCPCEKCAHET said:
How to flash CyanogenMod 12
Code:
[CENTER]Neither I nor any other member of the forum not responsible for bricked devices and dead
SD cards. Whatever you do, you do it at your own risk![/CENTER]
What we need:
1. Last build of CyanogenMod 12
2. Last version of this recovery
3. HTC USB Drivers v4.0.1.001
4. MiniTool Partition Wizard
5. View attachment 3220931
How to do:
1. First you need to install HTC USB Drivers on your PC.
2. Now install MiniTool Partition Wizard.
Make a backup copy of the files on your SD-card. If you have any partitions on your SD-card you must delete them. Now insert your SD-card in card reader (don't use "Mount USB Storage" in recovery) and format it in file system FAT32 (note: all files will be deleted).
You must create two ext4 partitions on your SD-card.
Launch MiniTool Partition Wizard. You must delete partition on SD-card and create three new.
First partition SD with file system FAT32. Second partition SD-DATA with file system ext4 and size minimum 1Gb. Third partition SD-SYSTEM with file system ext4 and size 1.2Gb. All partitions must be Primary.
Partitions should look like this:
More instructions how to use MiniTool Partition Wizard you can find HERE.
3. Insert your SD-card in phone and boot it in recovery (use power button + volume down). In recovery go to "Wipe" menu [1] then in "Advanced Wipe" and do all wipes except sdcard and SD-Ext [2]. Now reboot your phone in Bootloader --> fastboot mode [3, 4].
Connect your phone to your PC using the cable.
Download ADB.zip and extract it on your PC. Download new recovery and rename it as "recovery.img". Put recovery.img in ADB folder and run recovery.bat from this folder.
After flashing recovery you must see cmd window like this:
4. Reboot your phone in recovery again. You need to convert your partitions from ext4 to f2fs.
Go to "Wipe" menu then in "Advanced Wipe" [1]. Now select "Data" and click on "Repair or Change File System" button [2], then click on "Change File System" button [3], choose "F2FS" [4] and swipe to change.
Go back and do the same with "System" [5].
After converting do all wipes except sdcard [6].
5. Download ROM and copy it on SD-card. Flash ROM. Flashing will take long so just wait.
6. After flashing ROM reboot your phone in Bootloader --> fastboot mode. Connect your phone to your PC using the cable.
Take out boot.img from ROM zip and put it in ADB folder on your PC. Run boot.bat from this folder.
After flashing boot.img you must see cmd window like this:
7. Now you can reboot your phone. After first boot you can back to recovery and flash Gapps if you need it.
Done!
Created 21-03-2015
Last Updated 21-03-2015
Click to expand...
Click to collapse
One last question which is best cm12... is it Glade or cm12... performance wise ....
and thanks a lot for the guide......great post.
Doing many things wrong...
already pressed thanks button.

Pr.haddimal said:
One last question which is best cm12... is it Glade or cm12... performance wise ....
Click to expand...
Click to collapse
Performance in CM12 and Glade is identical.
1. For best performance you must use class 10 SD-card.
2. After booting ROM you can activate development settings and set up CPU governor as "ONDEMAND". You can find it in Settings --> Performance --> Processor. With this setting ROM working faster.

BCCCPCEKCAHET said:
Performance in CM12 and Glade is identical.
1. For best performance you must use class 10 SD-card.
2. After booting ROM you can activate development settings and set up CPU governor as "ONDEMAND". You can find it in Settings --> Performance --> Processor. With this setting ROM working faster.
Click to expand...
Click to collapse
ya hav this sdcard class 10
thanks
for assistance

How to take out boot.img from the ROM.zip in bootloader mode
Sent from my HTC Explorer A310e using Tapatalk 2

It is not possible to do so and it is not even required. The Dev means to say that you have to take out the boot.IMG from the zip ON YOUR computer and then use fastboot flash boot boot.img to flash the boot image as told by @kirmaniarslan.

help
i can't flash Rom, long wait

Same here.
Sent from my HTC Desire 616 dual sim using Tapatalk

Hi. Where i could find twrp 2.8 version? Link are broken
Regards

jmaa009 said:
Hi. Where i could find twrp 2.8 version? Link are broken
Regards
Click to expand...
Click to collapse
@Black_Eyes posted a new link in the ROM thread. Look for it
Sent from my Explorer A310e using Tapatalk

please help me my sd card has got corrupted how to revert back from f2fs to ext4 again

djmacpro said:
please help me my sd card has got corrupted how to revert back from f2fs to ext4 again
Click to expand...
Click to collapse
Use this guide : http://forum.xda-developers.com/showthread.php?t=2532212 and try again

MSF Jarvis said:
Use this guide : http://forum.xda-developers.com/showthread.php?t=2532212 and try again
Click to expand...
Click to collapse
Its for partition right?
My problem is my SD is corrupted and I can't do any thing add/delete files in SD card even if I add/delete files the SD card again becomes as previous I need to delete all f2fs partition

After you enter parted, type print. You'll see a list of partitions present. Just keep typing rm followed by the partition numbers like : rm 1 && rm 2
Do this till print returns no partitions. Then you can use the rest of the guide from that point onwards with required modifications for your specific use case. Be sure to thank @thewisenerd over there as well.
Sent from my HTC Desire 616 dual sim customised for Puchki using Tapatalk

MSF Jarvis said:
After you enter parted, type print. You'll see a list of partitions present. Just keep typing rm followed by the partition numbers like : rm 1 && rm 2
Do this till print returns no partitions. Then you can use the rest of the guide from that point onwards with required modifications for your specific use case. Be sure to thank @thewisenerd over there as well.
Sent from my HTC Desire 616 dual sim customised for Puchki using Tapatalk
Click to expand...
Click to collapse
i tried this thing still it didnt work, even after several rm 1 its showsing all the partition when typed print.
i think the sd card is gone and of no use as it not branded of any company

djmacpro said:
i tried this thing still it didnt work, even after several rm 1 its showsing all the partition when typed print.
i think the sd card is gone and of no use as it not branded of any company
Click to expand...
Click to collapse
That's the only logical explanation brother.

how copy ROM in SD-card? with card-reader? computer don't see my card.what to do next?

kesha_nsk said:
how copy ROM in SD-card? with card-reader? computer don't see my card.what to do next?
Click to expand...
Click to collapse
Use a card reader
Sent from my HTC Explorer A310e using XDA Labs

Do not work in TWRP - Change Filesytem to F2FS.... How to fix this ?

alidarkstone said:
Do not work in TWRP - Change Filesytem to F2FS.... How to fix this ?
Click to expand...
Click to collapse
What is the size of your /system ?

Related

Apps2SD version 2.5

Note: Newer version of Darktremor Apps2SD can be found here: http://forum.xda-developers.com/showthread.php?t=670087
Okay...since I ended up rebuilding the Apps2SD 2.0 due to improvements and to allow moving the dalvik-cache automatically (per request), I figured I better just release this.
Apps2SD version 2.5
Warning: Do not use this version if you are partitioning your SD card with ext4. This version is not compatible with that partition layout.
Apps2SD is a script that runs when you phone boots. Many of the ROM developers include the script in one form or another. Originally based on Cyanogen's Apps2SD, this script will allow a user to free up more storage space on their phone.
How does it do it? It uses an ext2 or ext3 partition (if one exists) to move all your free and purchased apps (not core apps) to the ext2/ext3 partition on your SD card. It also tricks Android into thinking it is storing your programs in the internal storage space by linking the install directories (/data/app and /data/app-private) to similar directories on the sd card.
Here's the program:
http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip
Requirement: An ext2 or ext3 partition on your SD Card.
HOW TO INSTALL:
Since you are flashing this version to your phone, do a nandroid backup of your phone before starting these instructions.
1. Download the program above.
2. Determine if you have setup your SD Card with an ext partition
If you have setup your SD card already (existing users of A2SD...any version):
a. Copy the program to your SD card. One way of doing that is to use ADB by typing this command: adb push a2sd-2.5-signed.zip /sdcard/a2sd-2.5-signed.zip
b. Reboot into recovery
Click to expand...
Click to collapse
If you have not setup your SD card (for those new to A2SD):
a. BACKUP YOUR SD CARD TO YOUR COMPUTER. Can't stress this enough, as partitioning will wipe the entire card.
a. Reboot into recovery
b. In Android System Recovery, select Partition sdcard
c. In the Partition sdcard menu, select Partition SD
d. Follow the instructions on the phone to partition your SD card. You can optionally set a swap file while you are partitioning your SD card.
e. In the Partition sdcard menu, select SD:ext2 to ext3. Follow the instructions on the screen. Do not select the option SD:ext3 to ext4 after this step completes, otherwise A2SD will not work.
e. Press the back button on the phone to go back to the main menu.
f. Put the A2SD file on the SD card (and all your other files you backed up earlier) by selecting USB-MS toggle and transfer the files to your computer.
Click to expand...
Click to collapse
3. In recovery, select Flash zip from sdcard.
4. In Flash zip from sdcard, select a2sd-2.5-signed.zip. Press HOME to flash.
5. Reboot phone.
NOTE: The first time your phone is booted after installing a2sd, you may experience a long delay before your phone completely boots. This is due to the dalvik-cache being redirected to your sd card. The contents of dalvik-cache are recreated on your SD card, which can take up to 10 minutes to complete.
Click to expand...
Click to collapse
NOTE: If you experience force closes or random reboots after you apply A2SD version 2.5, this could be that your SD card is not fast enough to handle the dalvik-cache. Perform the following steps to move your dalvik-cache back to your SD card:
1. Switch your phone into read-write mode by typing: adb remount
2. Enter your ADB shell by typing: adb shell
3. In the ADB shell, type /system/bin/a2sd nocache
4. Reboot phone by typing the following command: reboot
If that doesn't work, follow these commands:
1. Switch your phone into read-write mode by typing: adb remount
2. Enter your ADB shell by typing: adb shell
3. In the ADB shell, type rm /data/dalvik-cache/*
4. Reboot phone by typing the following command: reboot
If you have a swap partition and you suspect this may also be an issue, follow these instructions:
1. Enter your ADB shell by typing: adb shell
2. In the ADB shell, type /system/bin/a2sd noswap
Click to expand...
Click to collapse
What does this program do:
1. Moves applications to the sd card
2. Moves dalvik-cache to the sd card
3. Activates swap partition if one exists
4. Allows the user to deactivate a2sd without removing the ext2/ext3 partition (a2sd remove to deactivate, a2sd install to activate)
5. Allows the user to restore dalvik-cache back to the main memory (a2sd nocache to deactivate, a2sd cache to activate)
6. Allows the user to deactivate swap (a2sd noswap to deactivate, a2sd swap to activate)
7. Creates the /system/sd mount if one doesn't exists.
How to tell if it is working:
1. On your computer in the Android SDK Tools directory, type adb shell
2. In the adb shell, type ls -l /data
3. Look for the entries app and app-private. The entries should look like the following:
app -> /system/sd/app
app-private -> /system/sd/app-private
If they don't, follow these instructions:
1. Enter the ADB Shell by typing adb shell
2. In the ADB shell, type /system/bin/a2sd install
If you have any issues, you can PM me for assistance.
Thanks for this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Can this be done?
Can this be done with phone on?
Which mode: charge; htc sync; ect...
Thanks! I am finally going to take the plunge and go Apps2SD!
Can this be used with any 2.1 Rom?
thanks for the share big improvement...
Flash and partition from recovery. As always nandroid first and also backup sd card before partitioning as it will wipe the card.
jjjjayd13 said:
Can this be done with phone on?
Which mode: charge; htc sync; ect...
Click to expand...
Click to collapse
help
how do you reverse this im getting alot of apps FC on me please help
METHOD1911 said:
how do you reverse this im getting alot of apps FC on me please help
Click to expand...
Click to collapse
reinstall the apps
dont
this totally f**ked my phone up
i did something simliar last night, damage will have it in his rom shortly. Didn't check the download but the current way a2sd was implemented in the ramdisk on dc was wrong and has potential to hang the phone on boot (expecially moving dalvik)
wow, this worked beautifully, took a little while to boot, but now showing 138 free up from 79.
using fresh rom
METHOD1911 said:
this totally f**ked my phone up
Click to expand...
Click to collapse
Restore your Nandroid and try again. Also, what ROM are you using?
before i had 110mb used with 45 apps.After installing this now i have 24mb used..loving this upgrade...
puertoblack2003 said:
before i had 110mb used with 45 apps.After installing this now i have 24mb used..loving this upgrade...
Click to expand...
Click to collapse
It would beautifully for me. First I nandroid, converted my ex2 to ex3 (partitioned sd card), ran this script and it has worked wonders for me
works perfectly for me as well. everything s on the card and my phone is as smooth as silk
METHOD1911 said:
how do you reverse this im getting alot of apps FC on me please help
Click to expand...
Click to collapse
Ran this last night and same thing happened to me. It happens because your phone is on and suddenly all of your apps have moved to your SD card. Simply reboot and everything will be back to normal.
Running perfectly for me on Fresh 2.0d. Going entirely app crazy as a result.
luftwaffles86 said:
Ran this last night and same thing happened to me. It happens because your phone is on and suddenly all of your apps have moved to your SD card. Simply reboot and everything will be back to normal.
Running perfectly for me on Fresh 2.0d. Going entirely app crazy as a result.
Click to expand...
Click to collapse
lol or even better use titanium and backup up all apps and restored them back...
jjjjayd13 said:
Can this be done with phone on?
Which mode: charge; htc sync; ect...
Click to expand...
Click to collapse
It can if your phone is already setup with an ext3 partition. If not, you'll need to go to recovery first and do that.
It's easier to flash this via recovery, but if you want to do this manually, here's what you do:
1. Unzip the contents of the zip to a folder
2. Open a command prompt and type adb remount
3. Push the system/bin folder to the /system/bin directory on the phone by typing adb push <folder>/system/bin /system/bin where <folder> is the folder you extracted the zip to.
4. Push the system/lib folder to the /system/lib directory on the phone by typing adb push <folder>/system/lib /system/lib where <folder> is the folder you extracted the zip to.
5. Type adb shell "chmod 777 /system/bin/a2sd"
6. Type adb shell "chmod 777 /system/bin/e2fsck"
If you already have the ext2/ext3 partition, type /system/bin/a2sd to activate.
even though i entered the command on the first page and it says its active I still dont have all my space back? is that to do with the stock apps?

flashing custom rom without sd card

my sd card got broken and reflashed to original 2,3 rom. now i want to go back to custom rom. can any1 help me flash custom recovery without sd card. thanks
Sent from my LG-P500 using XDA
mrbulanescu said:
my sd card got broken and reflashed to original 2,3 rom. now i want to go back to custom rom. can any1 help me flash custom recovery without sd card. thanks
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
I doubt that's possible
Sent from my LG-P500 using xda premium
I think you can only flash official roms with kdz because custom roms needs SD card to use "flash zip from sdcard" in the recovery.
There must be a way for flashing ROM through adb.
there is, basically look up how to copy files from PC to phone using adb, and just copy everything in the ROM onto the / (root) of your phone, as all flashable zips do is copy the stuff from your sd card onto your phone
Flash mage
Use Android Commander version 0.7.9.10 by PanPiotr. It has a option to flash your phone under device menu. I have never used it so I don't know if it will work, but it might be worth a try. http://androidcommander.com/ here is the link for the software It is a very powerful application I would recommend to any andriod user, good luck I would like to know if it works for you. All of the features I have used work perfect.
mrbulanescu said:
my sd card got broken and reflashed to original 2,3 rom. now i want to go back to custom rom. can any1 help me flash custom recovery without sd card. thanks
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
I only understoood that you flashed.stock firmware using kdz and have no sd, so steps are as follows:
1.root optimus 1 using superoneclick
2.flash cwm using adb
3.reboot in recovery
4.mount /system
5.then format /system
6.flash rom using adb
or
just copy paste files in /system of your phone
I mean the files which are in zip of custom rom
How to Flash a ROM Without an SD Card
​
This is for all those who don't have a working sdcard, sdcard slot, etc. but want still to flash a new rom
Prerequisites:
Flash an Amon_RA recovery if you're using Clockwork
Access to a computer that had AndroidSDK tools on it - you'll be using ADB
Put whichever ROM.zip you want to flash in your android-sdk\tools folder - I would rename it to something simple. (My example which I'll be using for this tut is: C:\AndroidSDK\toosl\ROM.zip)
Directions:
Reboot into the Amon_RA recovery
Wipe data/factory reset, cache, and dalvik via the recovery menu
Open up cmd/terminal on your computer
Navigate to your android-sdk\tools directory
Enter the following in cmd/terminal:
Code:
adb shell
mount data
*wait a second or two* You may or may not get the "/ #" line returned.
Despite what happens press "Ctrl+C" to break the command and get back to the standard AndroidSDK\tools> directory
Enter the following in cmd/terminal:
(replace "ROM.zip" with the name you're using)
Code:
adb push ./ROM.zip /data/
*this will take anywhere from 30sec to a min depending on the rom.zip size*
Then we do this in cmd:
Code:
adb shell
recovery --update_package=DATA:ROM.zip
Wait for it to finish flashing/updating
Reboot
ENJOY
Brief rundown of what we just did:
Wiped /data/ to free up space for the zip
Put our ROM.zip onto the /data/ partition since we don't have an SD Card to work with.
Told the recovery to flash from our /data/ partition instead of /sdcard/
.......
is there a way to toggle signature verification through adb? My sd card slot is not working and i am trying to flash back to stock to go to sprint for repair but when I run the command and reboot into recover it says signature failed and then I can not pick the update.zip i put in the data partition.
by.adrian said:
How to Flash a ROM Without an SD Card
​
This is for all those who don't have a working sdcard, sdcard slot, etc. but want still to flash a new rom
Prerequisites:
Flash an Amon_RA recovery if you're using Clockwork
Access to a computer that had AndroidSDK tools on it - you'll be using ADB
Put whichever ROM.zip you want to flash in your android-sdk\tools folder - I would rename it to something simple. (My example which I'll be using for this tut is: C:\AndroidSDK\toosl\ROM.zip)
Directions:
Reboot into the Amon_RA recovery
Wipe data/factory reset, cache, and dalvik via the recovery menu
Open up cmd/terminal on your computer
Navigate to your android-sdk\tools directory
Enter the following in cmd/terminal:
Code:
adb shell
mount data
*wait a second or two* You may or may not get the "/ #" line returned.
Despite what happens press "Ctrl+C" to break the command and get back to the standard AndroidSDK\tools> directory
Enter the following in cmd/terminal:
(replace "ROM.zip" with the name you're using)
Code:
adb push ./ROM.zip /data/
*this will take anywhere from 30sec to a min depending on the rom.zip size*
Then we do this in cmd:
Code:
adb shell
recovery --update_package=DATA:ROM.zip
Wait for it to finish flashing/updating
Reboot
ENJOY
Brief rundown of what we just did:
Wiped /data/ to free up space for the zip
Put our ROM.zip onto the /data/ partition since we don't have an SD Card to work with.
Told the recovery to flash from our /data/ partition instead of /sdcard/
Click to expand...
Click to collapse
Flash using kdz uploader. Search and read before flash. There are some tutorials on these forums.
u can also use fastboot
i am following this way but i get error "device not found". please help
Didn't Work For Me
I Want To Flash CM9 ICS On My LG P500. I Followed The Steps EXACTLY LIKE IN THE GUIDE! I Have Amon_RA Build:RA_thunderg-3.0.6-GNM and it said can't install because no such thing exist in that directory...? I DONT Have A SD CARD Also... Is ClockWorkMod Recovery Any Better?
Isn't better buy a new sd card than anticipade some unnecessary problems?
orbit09 said:
Isn't better buy a new sd card than anticipade some unnecessary problems?
Click to expand...
Click to collapse
Sometimes the problem isn't about buy an sdcard, but the phone doesn't recognize any sdcard
orbit09 said:
Isn't better buy a new sd card than anticipade some unnecessary problems?
Click to expand...
Click to collapse
My LG phone doesn't even have an ad card slot. Entire phone is riveted shut so I can't even change the battery if I needed to. So this advice is completely relevant and necessary.

[GUIDE] How to Remove SD-EXT Via ADB {Create EXT / Swap Via ADB} [05/03/2013]

This article is for people with rooted Android phones. Everyone else please ignore. There are dozens of ways to remove SD-EXT Partition your SD card and I would like to share the one that has worked for me every time.
Requirements before getting started:
Custom Recovery (TWRP/ CWM etc).
SD Card (Any Class).
Android Device Bridge(ADB): Comes with the Android SDK.
These instructions apply to both the Windows command prompt and the Mac terminal.
As you can see from my screens, I was using Windows Vista. You can Remove/ Delete your SD-Ext Partition at any time, but you might as well do it before you flash a new build of Android and You want a different size SD-EXT Partition.
IMP: As always, back up your data when performing any hacks.
Formating your SD card will erase all data on it.
I split this guide into 5 steps, but it is not as difficult as it looks. Read the whole thing before starting.
Step 1: Connect your phone to your computer via USB. Reboot into recovery mode.
Command: adb shell reboot recovery
(this will reboot your phone into Custom recovery image.
Command: adb shell
(type this after your phone has booted and on the recovery screen. it should take you to a # prompt)
Step 2: Open parted to partition your SD card.
Command: parted /dev/block/mmcblk0
(opens parted and mounts your SD card)
Step 3: Check the size and partitions of your SD card.
The print command will display this info. You can see the size of my SD card is 7969 MB (8 GB). I have 1 partition which is fat32. If your SD card is blank and no partitions are listed, you can skip to Step 5.
Command: print
(displays SD card information)
Step 4: Remove all existing partitions. If you have multiple partitions, remove each one at a time.
Command: rm 1
(deletes partition number 1)
Command: rm 2
(if needed. keep going till all partitions are removed)
Command: print
(check when you are done to make sure all partitions are removed)
Step 5: Check the sizes of your SD Card.
Use the command print again to display the partition sizes (There should be no partition).
If you made any mistakes you can return to Step 4 and remove them.
Command: print
(displays your partition information)
IMP: Now Remove USB Cable from Phone and go to WIPE Menu in Recovery and Format/ Cleat SD Card..
Now Go to Advance Menu and Partition SD Card with What Size / Swap / ext You Want..
[Additional GUIDE]
How to manually Partition your SD CARD {EXT 2/ 3/ 4 And Swap / Linux} Via ADB.
For SD-EXT Partition Please Continue After Step 5 (Don't Remove USB cable from PC).
Step 6: Create your new partitions.
You can make these any size, but the most common setup is
32 MB linux-swap partition,
512 MB ext2 partition, and
remaining free space as a fat32 partition.
In order to work properly, the partitions must be created in this order:
fat32,
ext2,
linux-swap.
The linux-swap partition is used for a swap file on some builds. Not all builds use linux-swap, but I create one just in case I ever need it.
The ext2 partition is where your apps will be installed. I use 512 MB which gives me plenty of room but you can go larger like 1024 MB if you want.
IMP: Parted only creates ext2 partitions and we can convert them to ext3 or ext4 later.
When using the Linux command mkpartfs, you must tell it where to start and and end each partition. This can be done by taking the total SD card size and subtracting the linux-swap then ext2 partition sizes. See the following example for my 8 GB card.
Command: mkpartfs primary fat32 0 7425
(start is 0 and end is Total C)
Command: mkpartfs primary ext2 7425 7937
(start is Total C and end is Total B)
Command: mkpartfs primary linux-swap 7937 7969
(start is Total B and end is Total A)
For Example
7969 Total A
-32 Linux-Swap
7937 Total B
-512 EXT 2
7425 Total C
* If You Don't want Linux-Swap partition follow this
7969 Total A
-512 EXT 2
7457 Total B
IMP: Kindly Change Values for EXT / Linux-Swap Accordingly if You want more or less space for Partitions.
Step 7: Check the sizes of your partitions.
Use the command print again to display the partition sizes.
If you made any mistakes you can return to Step 4 and remove them.
Command: print
(displays your partition information)
Step 8: Exit parted and upgrade your ext2 file system to ext3.
For most users this is the final step.
I suggest all users upgrade to ext3.
Its main advantage over ext2 is journaling which improves reliability and eliminates the need to check the file system after an unclean shutdown.
Command: quit
(exit parted and return to # prompt)
Command: upgrade_fs
(script to upgrade from ext2 to ext3)
Step 9 (Optional): If you wish, you can upgrade your ext3 partition to ext4.
Skip to Step 10 is you wish to use ext3.
The file system (EXT 4) offers enhancements like delayed allocation.
Command: tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
(enter this command from the # prompt)
Command: e2fsck -fpDC0 /dev/block/mmcblk0p2
(run e2fsck after tune2fs. wait for the file check to finish)
Step 10: Finished.
Check your work with print
Command: parted /dev/block/mmcblk0
(open parted again)
Command: print
(check all your system partitions and their sizes)
Command: quit
(exit parted)
Command: reboot
(reboot your system to the operating system)
[Guide] How to Install SDK / ADB..
http://forum.xda-developers.com/showthread.php?p=37805872
Credits:
akshat.shenoy (For SDK / ADB installation GUIDE).
XDA.
Screen Shots Added in Second Post.
Re: [GUIDE] How to Remove SD-EXT Via ADB
For Step 1 to 5:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
For Step 6 to 10:
Sent from my LIL RDX using XDA premium
Re: [GUIDE] How to Remove SD-EXT Via ADB
Awesome man. Thanks ..
Didn't know of this method.. us there a way to partition via adb?
Sent from my HTC Explorer A310e using xda app-developers app
Re: [GUIDE] How to Remove SD-EXT Via ADB
akshat.shenoy said:
Awesome man. Thanks ..
Didn't know of this method.. us there a way to partition via adb?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Yes there is a simple method..
If u wanna know I ll post that too..
Sent from my HTC Explorer using Tapatalk 2
Re: [GUIDE] How to Remove SD-EXT Via ADB
R. SAINT said:
Yes there is a simple method..
If u wanna know I ll post that too..
Sent from my HTC Explorer using Tapatalk 2
Click to expand...
Click to collapse
Nice tutorial.
Screenshots are really helpful for me (as I know nothing about adb).
Thanks bro..
And yeah post it too.. :thumbup:
Edit
Some questions
1. So wiping SD ext comes under rm2 right... and it does nothing to partition fat32(1)
2.parting with Adb... will it cause erasing all data in SD card? And partition of any type ext3 ext4 ..?
Sent from my HTC Explorer A310e using xda app-developers app
Re: [GUIDE] How to Remove SD-EXT Via ADB
ptcpayme said:
Nice tutorial.
Screenshots are really helpful for me (as I know nothing about adb).
Thanks bro..
And yeah post it too.. :thumbup:
Edit
Some questions
1. So wiping SD ext comes under rm2 right... and it does nothing to partition fat32(1)
2.parting with Adb... will it cause erasing all data in SD card? And partition of any type ext3 ext4 ..?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
rm 1 - SD Fat32
rm 2 - SD-EXT (if available)
rm 3 - Swap / Linux (if available)
Partition via ADB delete all ur SD data.. I hv mentioned that in Guide already.
I ll add tutorial for Partition ext 2/ 3/ 4 and swap partition ASAP..
Sent from my LIL RDX using XDA premium
Or else, we can directly do it with Mini partition tool..!(duh!)
unknown_anonymous said:
Or else, we can directly do it with Mini partition tool..!(duh!)
Click to expand...
Click to collapse
U can.
Basically This guide is for ppl who r nt depended on different softwares.
Sent from my HTC Explorer using xda premium

Tutorial For Link2sd Error, read only FIle system fix

This tested and worked for me in LG P500
1. First check if you're rooted, you can find any apps in the app store for checking this
2.Second check if you can make folder or file in the sdext of your sdcard if not there problem with mounting or your second partition is corrupted
3.BackUP EVERY FILE IN THE SDCARD
1. Download amonra here then install amonra, then reboot recovery
2.Then choose Partion Sdcard, choose partition sd card(set swap to 0 then(navigate through the volume buttons)just choose how large the second partition be) then click the "menu" button to confirm
3.then Reboot to your OS and its done!
Please just click thanks! if this thread helps please

HELP! wrong sdcard size after flashing rom

I have flashed a new rom on my phone with twrp 3.4.0.0
When I got to the new UI I had no free space (both internal and sdcard)
Back to twrp I took these steps:
1. Boot into TWRP recovery.
2. Select Wipe » Advanced Wipe.
3. Tick/check the Data partition.
4. Select Repair or Change File System button.
5. And lastly select Resize File System button.
that solved the internal storage size, but the storage of sdcard shows 80MB when it should read 128GB.
I tryed the same method for sdcard but it cant be done on sdcard selection.
Is there any solution without formating sdcard?
if not please provide a solution with formating on twrp.
I have searched for a solution but no result...
Please help! i have no time to search right now!
PanosT said:
I have flashed a new rom on my phone with twrp 3.4.0.0
When I got to the new UI I had no free space (both internal and sdcard)
Back to twrp I took these steps:
1. Boot into TWRP recovery.
2. Select Wipe » Advanced Wipe.
3. Tick/check the Data partition.
4. Select Repair or Change File System button.
5. And lastly select Resize File System button.
that solved the internal storage size, but the storage of sdcard shows 80MB when it should read 128GB.
I tryed the same method for sdcard but it cant be done on sdcard selection.
Is there any solution without formating sdcard?
if not please provide a solution with formating on twrp.
I have searched for a solution but no result...
Please help! i have no time to search right now!
Click to expand...
Click to collapse
Problem solved by replacing twrp with pitchblack ver.3 and repeating the procedure mentioned.

Categories

Resources