My mobile is Lenovo S920 running official Android OS 4.4.2.
I am trying to install cwm recovery through fastboot. I tried executing the command
fastboot flash recovery recovery.img
But I am getting the error as partition ‘recovery’ not support flash. Please any one help me to fix this. Whether I need to change anything on the recovery partition?
asked Aug 14, 2014 at 7:50
Guna SekaranGuna Sekaran
371 gold badge1 silver badge4 bronze badges
3
Looks like this phone does not support flashing partitions via the fastboot
utility. According to this guide you will first need to root the phone by following the instructions from here:
- Download the latest version of Framaroot and side-load the APK.
- Open Framaroot select the action to perform. Select “Install SuperSU”.
- In the rooting menu, Select an exploit in list above to potentially root your device as Barahir or BOROMIR and proceed
further. The rooting has now started and you will be getting an
awesome success message.- After the end of the installation process, reboot your device and you can now enjoy the Rooted Lenovo s920.
After the phone is rooted, you will need to do the following:
- Download CWM For Lenovo S920 and extract it to the root of your SD Card.
- Install Mobile Uncle App from Google Play Store.
- Once installed, launch it from your app drawer.
- Select “Recovery Update” from the menu. The tool will search your SDcard automatically and find your “recovery.img” file. Select the
recovery under “Recovery file in SDCard”. Click “OK”- It will ask you if you want to reboot into recovery. Click Ok to confirm that your phone boots in CWM recovery.
- If installing Recovery.img doesn’t work on First Time, no problem, after reboot install it again through same procedure.
This installs the recovery temporarily. If you wish to install it permanently, also do the following:
- Install Root Explorer and run it.
- Mount the
system
partition to Read/Write.- Navigate to /system/ and delete the file named «recovery-from-boot.p».
- Re-install CWM as described above.
answered Aug 14, 2014 at 12:55
ChahkChahk
19.4k3 gold badges55 silver badges80 bronze badges
2
Try using SP Flash tools. It’s for MediaTek devices like yours. You will need the correct drivers. Look this up on XDA, there is a fair amount of risk involved. You MAY BRICK THE PHONE. I have a Canvas Knight, and the same problem occurred with me too. This ASE post (Thanks to @Gulam Mohammed for his detailed answer) has further guides (although it is not excatly for your device, but it is relevant).
answered Jun 16, 2015 at 12:02
You must log in to answer this question.
Not the answer you’re looking for? Browse other questions tagged
.
Not the answer you’re looking for? Browse other questions tagged
.
I am trying to install cwm recovery through fastboot. I tried executing the command
fastboot flash recovery recovery.img
But I am getting the error as partition ‘recovery’ not support flash. Please any one help me to fix this. Whether I need to change anything on the recovery partition?
Mike Laren
7,97817 gold badges50 silver badges70 bronze badges
asked Aug 14, 2014 at 10:18
6
try this:
first, root your device, and install root explorer. go to /system/ and delete this file «recovery-from-boot.p«.
use SP Flash tool, and install cwm through it.
it’s worked for me (lenovo a316i)
answered Dec 9, 2014 at 4:13
1
My mobile is Lenovo S920 running official Android OS 4.4.2.
I am trying to install cwm recovery through fastboot. I tried executing the command
fastboot flash recovery recovery.img
But I am getting the error as partition ‘recovery’ not support flash. Please any one help me to fix this. Whether I need to change anything on the recovery partition?
Best Answers
Looks like this phone does not support flashing partitions via the fastboot
utility. According to this guide you will first need to root the phone by following the instructions from here:
- Download the latest version of Framaroot and side-load the APK.
- Open Framaroot select the action to perform. Select “Install SuperSU”.
- In the rooting menu, Select an exploit in list above to potentially root your device as Barahir or BOROMIR and proceed
further. The rooting has now started and you will be getting an
awesome success message.- After the end of the installation process, reboot your device and you can now enjoy the Rooted Lenovo s920.
After the phone is rooted, you will need to do the following:
- Download CWM For Lenovo S920 and extract it to the root of your SD Card.
- Install Mobile Uncle App from Google Play Store.
- Once installed, launch it from your app drawer.
- Select “Recovery Update” from the menu. The tool will search your SDcard automatically and find your “recovery.img” file. Select the
recovery under “Recovery file in SDCard”. Click “OK”- It will ask you if you want to reboot into recovery. Click Ok to confirm that your phone boots in CWM recovery.
- If installing Recovery.img doesn’t work on First Time, no problem, after reboot install it again through same procedure.
This installs the recovery temporarily. If you wish to install it permanently, also do the following:
- Install Root Explorer and run it.
- Mount the
system
partition to Read/Write.- Navigate to /system/ and delete the file named “recovery-from-boot.p”.
- Re-install CWM as described above.
You may Also Like:
Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem.
If you are in Eclipse, you can do this by going through
Window -> Preferences -> Android -> DDMS -> ADB Connection Timeout (ms)
Your version of Eclipse is 64-bit, based on the paths and filenames.
However, the version of Java that it’s picking up is 32-bit, as indicated by where it is coming from, on this line:
-vm C:Program Files (x86)Javajre7binjavaw.exe
Program Files (x86)
is the folder where 64-bit Windows places 32-bit programs.
Program Files
is the folder where 64-bit Windows places 64-bit programs.
This can happen when a system has more than one JVM installed, as is often the case on Windows 64-bit (for example, the JRE download page uses the bit-ness of the browser to determine what bit-ness download to offer you, and many people use(d) 32-bit browsers even though they run 64-bit Windows).
The best way to fix this, assuming you do in fact have 64-bit JRE or JDK on your system, is to specify in eclipse.ini
exactly which JVM you want it to use. The instructions are detailed in the Eclipse wiki page, but basically you have to specify the -vm
option in the ini file — make sure to read the wiki page carefully as the format is very specific.
Specifying the JVM path in eclipse.ini
is strongly recommended because doing so isolates Eclipse from any potential changes to your system PATH
that some program installers might make (I’m talking to you, Oracle!).
Another option would be to download and use 32-bit Eclipse instead of 64-bit, but it’s still strongly recommended to specify the path to the JVM in eclipse.ini
.
Left for historical reference:
To check your version of Java, run
java -version
in a console (command prompt). On Windows 7 with 64-bit Java 6 I get:
java version "1.6.0_27" Java(TM) SE Runtime Environment (build 1.6.0_27-b07) Java HotSpot(TM) 64-Bit Server VM (build 20.2-b06, mixed mode)
Note the 3rd line, which shows that this is a 64-bit version.
On a 32-bit version you’ll get something like:
Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing)
If you are on a 64-bit machine, then you can install the 64-bit JDK and uninstall the 32-bit one. For instance on Windows 10, just go to Settings and under Apps, you will find Java. Click on it and you will find all the different versions. Now you can select which one to uninstall.
Is it possible to resize partitions?
Yes, it is theoretically possible, but it may not work on your device. If you’re ready to take a risk with your device (if something goes wrong, it may be bricked until you find what’s wrong with it), go ahead. Also, this modification isn’t recommended for beginners. Also notice that by this you will factory reset your device (all app data will be gone). You’ll need:
A rooted device with custom recovery
Basic knowledge of how ADB works
Basic knowledge of how partitions and partiton tables work
Patience and time since this could (and will) probably have some obstacles since you’re a beginner and these tutorials aren’t made for your specific device.
I successfully resized my partition using this tutorial on XDA, however, I skipped some steps in the way, since they were directed at different devices (Xperia phones), therefore, not all steps are compatible.
This tutorial may not support your device, so proceed with caution
I will try to briefly summarize what is going on that tutorial.
What will we do:
We will back up all the files present on the internal SD card (this is optional)
We will delete /sdcardpartition (that’s internal, emulated «SD card»), and we will delete /datapartition (that’s where your phone data, including apps, is stored)
We will then create new /sdcard and /datapartitions, but this time, they will be resized so that you’d have more space for apps.
If we backed up SD card earlier, we will now restore the original content of the internal SD
I assume you have worked with ADB and that you have a custom recovery present on your device (if you don’t fulfil these requirements, get familiar with those before proceeding)
Okay, before we start, you’ll need to download fs-utils.zip from this XDA page. These are file system utilities which we’ll use later. Unzip this file and place it a folder, somewhere on the external SD card (e.g. /sdcard/fs-utils)
Also, enable «USB debugging» on your phone, located in «Developer Options» on more recent devices, or «Applications» on older devices.
Backing up files from Internal SD card (optional)
Okay, this one’s pretty simple, you copy the files from internal memory to anywhere you want (i.e. PC, external SD card).
Editing the partition table
This is where it becomes tricky, so be sure that everything is working before starting this, and make sure that your phone has enough battery (just in case).
Enter the recovery on your phone.
Connect to ADB
Execute following commands
umount /storage
parted /dev/block/mmcblk0
print
This should print out the partition table, like:
Number Start End Size File system Name Flags
1 131kB 2228kB 2097kB TA
2 2228kB 3801kB 1573kB Boot
3 3801kB 5374kB 1573kB Boot2
4 6291kB 27.3MB 21.0MB Kernel
5 27.3MB 28.3MB 1049kB TZ
6 29.4MB 32.5MB 3146kB modemst1
7 33.6MB 36.7MB 3146kB modemst2
8 37.7MB 40.9MB 3146kB fsg
9 40.9MB 46.1MB 5243kB ramdump
10 46.1MB 54.5MB 8389kB ext4 apps_log
11 54.5MB 71.3MB 16.8MB FOTAKernel
12 71.3MB 2120MB 2049MB ext4 System
13 2120MB 2620MB 500MB ext4 Cache
14 2620MB 5692MB 3072MB ext4 Userdata
15 5692MB 15.6GB 9942MB ext4 SDCard
In this example, Userdata partition is on the 14th place, and SDCard is in the 15th. Notice how the Userdata starts at 2620MB, and ends at 5692MB, and SDCard begins where Userdata ends, and finishes at 15.6GB. Mark these numbers, as we’ll use them when we create the new partitions.
Following this example, we will remove these partitions:
rm 14
rm 15
Now, we calculate new sizes of the new partitions. Notice: You need to have emulated SD Card on your system, don’t completely remove it, it is hardcoded into the system, and removing could break the functionality of the device.
For example, if we want to increase the size of the Userdata to 6000MB, we simply add 6000MB to 2620MB (where the partition starts), to get the position where the partition ends. In that case, it would end at 8620MB. SDCard follows after the Userdata, so it begins at 8620MB and ends at 15.6GB.
So, after calculating the sizes, we enter:
mkpartfs logical ext2 2620 8620 (change the numbers for your device)
name 14 Userdata
mkpartfs logical ext2 8620 15.6GB (again, change the numbers)
name 15 SDCard
quit
Now, the space is allocated for these new partitions, but they aren’t correctly formatted yet. So, in your recovery, format your internal SD card (sdcard0 or whatever it’s called).
Now, in ADB, navigate to the folder on the external SD card, where the fs-utils are located:
cd /sdcard/fs-utils (change as appropriate)
After that, enter these commands, one by one:
tune2fs -j /dev/block/mmcblk0p14
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p14
e2fsck -fpDC0 /dev/block/mmcblk0p14
Now, the partitions are formatted.
You can reboot the phone now.
Try to write something to the SDCard, just to check do you have write permissions on it, and if you don’t, enter (via ADB):
su
chown -R 2800:2800 /mnt/media_rw/sdcard0
That should fix the problem.
After this, you can restore the backed up files to your SDCard.
Since this is my first community post, I encourage users to edit and expand this post as needed.