This is a very nice guide!
I will link it from my own (more advanced) guide:
[DEV][REF] El Grande Partition Table Reference
I will link it from my own (more advanced) guide:
[DEV][REF] El Grande Partition Table Reference
Hey, great guide! I need some help but. I can't retrieve the common names / labels of my devices partitions. It's a GT-i8150 and there is no 'by-name' sub directory. Furthermore, parted does not work on mmcblk0 for some reason (unable to satisfy partition restraints or something). I also have no emmc file in proc.
Does anyone know how some other methods for getting the names of the partitions?
EDIT:
Another question - using ADB shell, is it possible to dump a partition straight from the phone onto the computers hard drive? My little 2GB sd card isn't coping! Thanks
I've successfully dumped an image with a size of 1.8GB, but now i want to create the SDCard-image, but thats up to 25GB i guess! How can i dump this rom direct to my PC? Because i can't save this on my phone, have only 32GB HTC One. Or is there an other option to just dump several folders of that sdcard?
Is it maybe possible to directly write over the OTG to the USB-portable-stick (Size about 32GB)?
I found it impossible to dump to pc windows / ubuntu (but there might be a way i have not heard of)
Anyway SDcard image is pointless because its available when phone plugged in usb
For sd backups i usually (i have set folder options to show hidden/system files <in windows>) open the sd on pc mark all items and zip it to my hdd as ie. sdback-260314.zip and if i ever need i can just unzip direct to sd again
I've successfully dumped an image with a size of 1.8GB, but now i want to create the SDCard-image, but thats up to 25GB i guess! How can i dump this rom direct to my PC? Because i can't save this on my phone, have only 32GB HTC One. Or is there an other option to just dump several folders of that sdcard?
Is it maybe possible to directly write over the OTG to the USB-portable-stick (Size about 32GB)?
I found it impossible to dump to pc windows / ubuntu (but there might be a way i have not heard of)
Anyway SDcard image is pointless because its available when phone plugged in usb
For sd backups i usually (i have set folder options to show hidden/system files ) open the sd on pc mark all items and zip it to my hdd as ie. sdback-260314.zip and if i ever need i can just unzip direct to sd again
Yes you can flash it back no need for modifications ...Have a question if I extract the recovery.img can I flash it back to get the stock recovery back without modifying it further when needed?
and which partitions are required to dump the bootloader that I seen often and bootl.img that replace the bootloader to install the custom recovery I want to go back to stock recovery after flashing a custom rom then removing the cracked bootloader and custom recovery to stock one as it was delivered
http://xdaforums.com/showthread.php?t=2714343
AND THEN ASK AGAIN !!!!
ARE WE TALKING PHONE FROM 1987 or 2014 ?
android cupcake or kitkat ?
is it nexsus 5 or huawei ?
you make me ask you more questions than you are asking ...
I think the mmcblk0p7 is bootloader because but I am not know it is full loader or a portion etc because searching around with example on other phone I see more than one blocks called as bootloader. My curiosity is that if I dump the mmcblk0p13 for recovery.img and mmcblk0p7 for bootl.img while on complete stock rom then install the custom rom and restore the recovery.img and bootl.img that I dumped from stock phone will be get back to stock state with custom rom i.e ICS Engineer mode in the start will disappear or not and I will get the simple stock recovery provided by LG.echo off
cls
echo.
adb.exe wait-for-device
echo.
pause
echo Flashing Recovery now...
adb.exe push recovery.img /sdcard/recovery.img
adb.exe push bootl.img /sdcard/bootl.img
adb.exe shell su -c "cat /sdcard/recovery.img > /dev/block/mmcblk0p13
adb.exe shell su -c "cat /sdcard/bootl.img > /dev/block/mmcblk0p7
adb.exe shell su -c "reboot recovery"
echo.
pause
Thanks
link of the thread you mentioned lead me to empty page showing message
Invalid thread specified. This can happen for a variety of reasons-- most likely because the thread or post you are trying to view has been moved or deleted. Please return to the forum home and browse for another similiar post.
Phone Details are:
LG-LU6200 aka LG Optimus LTE (Korean variant of LG Nitro HD) it is more likely from around 2012 lol
Android Jelly Beans OTA updated in mid 2013
when it was on ICS to root it was needed to downgrade to ICS Engineer version then can root and install the custom recovery now on JB it get root by script just but to install the custom recovery it flashed two files recovery.img and bootl.img but after that even the set is JB but the first screen after turning on with LG logo shows the ICS Engineer Version on the corner that I guessed the bootloader is replace with the one that is not locked I not know I am right or not though assuming this. However here is the code that flashes the custom recovery
I think the mmcblk0p7 is bootloader because but I am not know it is full loader or a portion etc because searching around with example on other phone I see more than one blocks called as bootloader. My curiosity is that if I dump the mmcblk0p13 for recovery.img and mmcblk0p7 for bootl.img while on complete stock rom then install the custom rom and restore the recovery.img and bootl.img that I dumped from stock phone will be get back to stock state with custom rom i.e ICS Engineer mode in the start will disappear or not and I will get the simple stock recovery provided by LG.
If you were to do it it will say "secure boot error"
In your case only unlocked bootloader allows you to have custom recovery and ROM.
why is it a trouble ?
do you just need to get rid of this engineer mode notification ?
bro in my case, the command ls -al /dev/block/platform having different name like "/dev/block/platform/mtk.msdc.0/by-num" what shall i do???
READ http://xdaforums.com/showthread.php?p=52082965#post52082965
post again .....
adb shell
cat /proc/partitions
adb shell
ls -al /dev/block/platform/[B][COLOR="Blue"]dw_mmc[/COLOR][/B]/by-name
adb remount
adb shell "su" "" "mount -o remount,rw /system"
adb push parted /system/bin/parted
adb shell
chmod 0755 /system/bin/parted
parted /dev/block/[B][COLOR="Blue"]mmcblk0[/COLOR][/B]
print
adb shell
cat /proc/partitions
adb shell
su
dd if=[B][COLOR="Blue"]/yourMountingPoint[/COLOR][/B] of=[B][COLOR="Green"]/yourDestination[/COLOR][COLOR="Red"]/partitionType[/COLOR][/B]
adb shell
su
dd if=[B][COLOR="Blue"]/dev/block/mmcblk0p9[/COLOR][/B] of=[B][COLOR="Green"]/sdcard[/COLOR][COLOR="Red"]/system.img[/COLOR][/B]
su -
mkdir -p /mnt/disk
mount -o loop [B][COLOR="Red"]yourImage.img[/COLOR][/B] /mnt/disk
cd /mnt/disk
ls -l
#1
Run remote shell interactively, as if you are in linux terminal.Code:adb shell
#2
cat binary is used to concatenate file(s) and print them to standard output display. In our example, it prints the content of partitions file which is found in proc folder to screen display.Code:cat /proc/partitions
#3
ls binary is used to list directory contents.Code:ls -al /dev/block/platform/dw_mmc/by-name
-al is the used option for ls which means to include entries that started with "." in long listing format. There are a lot of options for ls binary. You can always print ls --h to display help menu for other options available.
#4
Remounts the /system partition on the device read / write. This has been disabled in some devices (those with secure boot image); so you need to make sure that you have patched adbd that can run this command effectively.Code:adb remount
#6
Specific command to mount the /system partition on the device read / write (rw).Code:mount -o remount,[B][COLOR="Red"]rw[/COLOR][/B] /system
If you change rw to ro, you will get /system partition mounted as read only.
#7
adb push is used to copy file/dir from your local computer to android device. The usual format is adb push <local> <remote>Code:adb push parted /system/bin/parted
#8
chmod binary is used to set permissions for the specified file/dir.Code:chmod 0755 /system/bin/parted
The number after chmod is the permission used. See the next box for better understanding of chmod formatting:
In the above example, it is set to 0755 which means the following scheme:Code:[CENTER][B][COLOR="Red"]---------------- | CHMOD SCHEME | ----------------[/COLOR][/B][/CENTER] [B] r w x[/B] [B]4 2 1 [COLOR="Green"]= 7 (Full Permissions)[/COLOR][/B] User ( ) ( ) ( ) [B][COLOR="Green"]--> 2nd digit[/COLOR][/B] Group ( ) ( ) ( ) [B][COLOR="Green"]--> 3rd digit[/COLOR][/B] Other ( ) ( ) ( ) [B][COLOR="Green"]--> 4th digit[/COLOR][/B] Special UID GID STK ( ) ( ) ( ) [B][COLOR="Green"]--> 1st digit, ignored on most cases or put 0[/COLOR][/B]
As you can see, if you said 0755, it will be as same as saying ---rwxr-xr-xCode:[B] r w x[/B] [B]4 2 1[/B] User ([B][COLOR="Red"]*[/COLOR][/B]) ([B][COLOR="Red"]*[/COLOR][/B]) ([B][COLOR="Red"]*[/COLOR][/B]) [B][COLOR="Green"]--> This equals to 7 (rwx)[/COLOR][/B] Group ([B][COLOR="Red"]*[/COLOR][/B]) ( ) ([B][COLOR="Red"]*[/COLOR][/B]) [B][COLOR="Green"]--> This equals to 5 (r-x)[/COLOR][/B] Other ([B][COLOR="Red"]*[/COLOR][/B]) ( ) ([B][COLOR="Red"]*[/COLOR][/B]) [B][COLOR="Green"]--> This equals to 5 (r-x)[/COLOR][/B] Special UID GID STK ( ) ( ) ( ) [B][COLOR="Green"]--> This equals to 0 (---)[/COLOR][/B]
#9
dd binary is used to copy a file with converting and formatting.Code:dd if=/dev/block/mmcblk0p9 of=/sdcard/system.img
if means input file; here we pointed to the whole partition, not specific file.
of means outputting file to specific destination path; here it is to sdcard with system.img name.
#10
mkdir binary is used to make folder dir.Code:mkdir -p /mnt/disk
-p is mkdir option which means to create folder with sub-folder at the same time. Here we want to create mnt folder that contains disk sub-folder in it. If the folder and or sub-folder(s) are already exists, it will not give error but nothing will be created.
#11
This is linux way to mount images into specific directory (/mnt/disk in this example).Code:mount -o loop yourImage.img /mnt/disk
#12
cd used to get inside specific dir path.Code:cd /mnt/disk
#13
ls binary is used to list directory contents as described above.Code:ls -l
-l is the used option for ls which means to list contents in long listing format.
can i able to mount boot.img in android itself...actually i wanted to extract boot.img frm mobile without any tools or without the help of PC...if there be any possibilities..??