[Q] Help Can't Mount Cache / Data / emmc / system on CWM recovery v6.0.1.5 - General Questions and Answers

After i try to flash kernel boot.img on CWM recovery
BootLoop
I found this from CWM recovery
E:Can't mount /cache/recovery/command
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
then I try restore my rom with CWM
i found like this
Checking MD5 sums...
Erasing boot before restore...
Restoring boot image...
Restoring system...
E:format_volume: make_extf4fs failed on /dev/block/mmcblk03
Error while formatting /system!
Can Anyone help me for resolve this.
My Device
Indonesian Polytron Crystall Wizard II (w3430)
Hardware : MT6577
Model : W3430
Build number : W3430
Build date UTC : 20121228-035645
Android v : 4.0.4
Baseband v: MAUI.11AMD.W12.22.SP.V5.P2, 2012/08/31 18:02
Kernel v : 3.0.13 ([email protected]) (gcc version 4.4.3 (GCC) ) #1 SMP Fri Dec 28 11:51:14 CST 2012
Uboot build v : MAIN2.2.ubt.2073
This Device Like Micromax A90s
8Mpix Camera
512 RAM
1Ghz Dual Core Processor
Now I stuck on On Bootloop and CWM
Try hard for Flashing new Rom, kernel etc.
The fact i can't do Anything with my Phone.
Help Me Guys.///:crying:
Sory My Bad English

before doing anything make sure you make a backup,like nandroid backup you could have made,now what you can do is, flash stock boot.img if boot.img is creating this error,else flash stock rom,then next time make sure you make nandroid backup,so if something goes wrong you can restore from backup.

aksingh05 said:
before doing anything make sure you make a backup,like nandroid backup you could have made,now what you can do is, flash stock boot.img if boot.img is creating this error,else flash stock rom,then next time make sure you make nandroid backup,so if something goes wrong you can restore from backup.
Click to expand...
Click to collapse
I have Nandroid BackUp But Only Can Restore Boot On advance Restore
Try Restore Other but Failed
Mount System Ext4 /dev/block/mmcblk0p3 failed
Mount Data Ext4 /dev/block/mmcblk0p5 failed
Mount Cache Ext4 dev/block/mmcblk0p4 failed
Maybe my partition goes wrong..
Are You Have Different way to fix this?
I Have Many Backup Files
Hope My Backup from MTK Droid Tools Are Helping Me
Can You Help Me Create Edify Script for some File like this
- boot.img
- DSP_BL
- files.md5
- firmware.info
- logo.bin
- MBR
- nodl_expdb
- nodl_misc
- nodl_pmt
- nodl_seccfg
- nodl_secro.bin
- nvram.bin
- phone.info
- preloader_and_dsp
- recovery.img
- uboot.bin
- userdata_nvram_only.ext4.tar
Or Can I Fix this With Terminal on Aroma File Manager?
Because i only can open CWM recovery And Aroma File Manager on my phone.
i'm So stupid make mistake this think...:crying:

kemasrio said:
I have Nandroid BackUp But Only Can Restore Boot On advance Restore
Try Restore Other but Failed
Mount System Ext4 /dev/block/mmcblk0p3 failed
Mount Data Ext4 /dev/block/mmcblk0p5 failed
Mount Cache Ext4 dev/block/mmcblk0p4 failed
Maybe my partition goes wrong..
Are You Have Different way to fix this?
I Have Many Backup Files
Hope My Backup from MTK Droid Tools Are Helping Me
Can You Help Me Create Edify Script for some File like this
- boot.img
- DSP_BL
- files.md5
- firmware.info
- logo.bin
- MBR
- nodl_expdb
- nodl_misc
- nodl_pmt
- nodl_seccfg
- nodl_secro.bin
- nvram.bin
- phone.info
- preloader_and_dsp
- recovery.img
- uboot.bin
- userdata_nvram_only.ext4.tar
Or Can I Fix this With Terminal on Aroma File Manager?
Because i only can open CWM recovery And Aroma File Manager on my phone.
i'm So stupid make mistake this think...:crying:
Click to expand...
Click to collapse
where is the system img?????????
better download the original stock rom,containing all flashing files,then flash via sptool
---------- Post added at 08:53 AM ---------- Previous post was at 08:32 AM ----------
kemasrio said:
I have Nandroid BackUp But Only Can Restore Boot On advance Restore
Try Restore Other but Failed
Mount System Ext4 /dev/block/mmcblk0p3 failed
Mount Data Ext4 /dev/block/mmcblk0p5 failed
Mount Cache Ext4 dev/block/mmcblk0p4 failed
Maybe my partition goes wrong..
Are You Have Different way to fix this?
I Have Many Backup Files
Hope My Backup from MTK Droid Tools Are Helping Me
Can You Help Me Create Edify Script for some File like this
- boot.img
- DSP_BL
- files.md5
- firmware.info
- logo.bin
- MBR
- nodl_expdb
- nodl_misc
- nodl_pmt
- nodl_seccfg
- nodl_secro.bin
- nvram.bin
- phone.info
- preloader_and_dsp
- recovery.img
- uboot.bin
- userdata_nvram_only.ext4.tar
Or Can I Fix this With Terminal on Aroma File Manager?
Because i only can open CWM recovery And Aroma File Manager on my phone.
i'm So stupid make mistake this think...:crying:
Click to expand...
Click to collapse
This usually happens by the incompatibility of this kernel3 with some SD cards, the installation is correct, but the internal card is not recognized at boot, no partitions are mounted system, data, cache. This is causing the boot not last rom and this error in cwm.
At this time the only solution to this problem is to change the internal SD.
Alternative solution is possible, this is a summary of my experience:
- Testing with several sd cards, some work well, others reproduce this problem.
- Sd card format with the problem, with
SDFormatter4,
now the SD card is working well!
- After a few reboots and install rom again reproduces the problem, boot logo stuck, and does not mount cache recovery. Surprisingly I turn off the tablet 2 min with on-off switch, restarting everything works fine.
This takes a little research to find a solution, possibly related to a correct SD card format.
found on google,try may it will help

I Can't Mount Via USB
now I have found alternative how to fix it, but i'm still confuse.
I use Console Terminal from Aroma File Manager.
i write
~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0: 3905MB
Sector size (logical/physical): 512/512B
Partition table: msdos
but i dont know what a format partition for :
mmcblk0p1 EBR1 (?)
mmcblk0p2 sec_ro (?)
mmcblk0p3 Android (system) (ext2 Convert to ext4)
mmcblk0p4 Cache (ext2 Convert to ext4)
mmcblk0p5 UserData (data) (ext2 Convert to ext4)
mmcvlk0p6 fat (?)

kemasrio said:
I Can't Mount Via USB
now I have found alternative how to fix it, but i'm still confuse.
I use Console Terminal from Aroma File Manager.
i write
~ # parted /dev/block/mmcblk0
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0: 3905MB
Sector size (logical/physical): 512/512B
Partition table: msdos
but i dont know what a format partition for :
mmcblk0p1 EBR1 (?)
mmcblk0p2 sec_ro (?)
mmcblk0p3 Android (system) (ext2 Convert to ext4)
mmcblk0p4 Cache (ext2 Convert to ext4)
mmcblk0p5 UserData (data) (ext2 Convert to ext4)
mmcvlk0p6 fat (?)
Click to expand...
Click to collapse
please visit here may this will work,
http://forum.xda-developers.com/showthread.php?t=1745601
& please go here for info on mmcblocks
http://forum.xda-developers.com/showthread.php?t=1665123
mmcblk0p1 qcsbl_cfg part of radio.img
mmcblk0p2 qcsbl <empty>
mmcblk0p3 osbl part of radio.img
mmcblk0p4 extended part of radio.img elf-header of rex/amss
--------- --------- -------
mmcblk0p5 modem part of radio.img
mmcblk0p6 adsp part of radio.img
mmcblk0p7 htc rcdata.img Radio settings (IMEI,CID,S-OFF)
mmcblk0p8 rf_nv <empty>
mmcblk0p9 nv_mfg <empty>
mmcblk0p10 cdma_user_data <empty>
mmcblk0p11 rf_delta <empty>
mmcblk0p12 reserved <empty>
mmcblk0p13 modem_fs1
mmcblk0p14 modem_fs2
mmcblk0p15 htc_data <empty>
mmcblk0p16 htc_reserved <empty>
mmcblk0p17 misc device info
mmcblk0p18 appsbl hboot
mmcblk0p19 splash1
mmcblk0p20 wifi WiFi module
mmcblk0p21 recovery
mmcblk0p22 boot kernel & ramdisk
mmcblk0p23 mfg device config ?, contains WiFi MAC-address and Serial number
mmcblk0p24 splash2 <empty>
mmcblk0p25 system
mmcblk0p26 data userdata
mmcblk0p27 cache
mmcblk0p28 devlog

Is Dead,... I format wrong Partition
now my phone only show up 1st bootloader Vol+ Power just restart Phone
Vol- Power same,...
Last Chance,.. bootloader + CWM from sdcard or SdCard android
maybe anyone can help me for make SD CArd bootable CWM or SD card Android?
i have download many SCDcard CWM on Xda but won't Work,..

Ignore this comment

you can install temporary recovery via temp recovery if adb shows your device
download this,if your phone supports fastboot,then it may help
http://forum.xda-developers.com/attachment.php?attachmentid=2303287&d=1380965873

lolerpro8 said:
Nope.. You can't have recovery on sd-card with an h-boot, sorry dude. And what partition did you formated, when you bricked your phone so the bootloader restarts?
Click to expand...
Click to collapse
To bad,... for the first I install other kernel,.. then my device only have CWM recovery because my partition error, my plan to repartition,.. and then i use Aroma File Manager Terminal for parted partition manual,.. maybe i wrong repartition mmcblk0p1 > 3 because mmcblk0p4 and mmcblk0p5 workfine with Ext4, on parted is only 4 primary partition, i got stuck because the real partition on my device mmcblk0p1 > 6.
at last on terminal i format mmcblk0p1,2,3, so i cannot format other partition 4 and 5 because partition can't unmount, i try unmount but fail to unmount... i think maybe must reboot.. after reboot,... i lost my recovery.. and only 1st boot...
if i format my partition succes maybe my phone will be work normaly.
@aksingh05 : No man,...... ADB cannot Detect my device... T_T..
My last chance is only on SDCard..

kemasrio said:
To bad,... for the first I install other kernel,.. then my device only have CWM recovery because my partition error, my plan to repartition,.. and then i use Aroma File Manager Terminal for parted partition manual,.. maybe i wrong repartition mmcblk0p1 > 3 because mmcblk0p4 and mmcblk0p5 workfine with Ext4, on parted is only 4 primary partition, i got stuck because the real partition on my device mmcblk0p1 > 6.
at last on terminal i format mmcblk0p1,2,3, so i cannot format other partition 4 and 5 because partition can't unmount, i try unmount but fail to unmount... i think maybe must reboot.. after reboot,... i lost my recovery.. and only 1st boot...
if i format my partition succes maybe my phone will be work normaly.
@aksingh05 : No man,...... ADB cannot Detect my device... T_T..
My last chance is only on SDCard..
Click to expand...
Click to collapse
I'm sorry to say this, but even an sd card recovery won't help... That is becouse you probably broke some partitions during the proces. The only 2 stuff i could think of is to use the j-tag box to repartition your mmcblk's, or somehow do it over h-boot Etheir way you have a big problem.

kemasrio said:
After i try to flash kernel boot.img on CWM recovery
BootLoop
I found this from CWM recovery
E:Can't mount /cache/recovery/command
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
then I try restore my rom with CWM
i found like this
Checking MD5 sums...
Erasing boot before restore...
Restoring boot image...
Restoring system...
E:format_volume: make_extf4fs failed on /dev/block/mmcblk03
Error while formatting /system!
Can Anyone help me for resolve this.
My Device
Indonesian Polytron Crystall Wizard II (w3430)
Hardware : MT6577
Model : W3430
Build number : W3430
Build date UTC : 20121228-035645
Android v : 4.0.4
Baseband v: MAUI.11AMD.W12.22.SP.V5.P2, 2012/08/31 18:02
Kernel v : 3.0.13 ([email protected]) (gcc version 4.4.3 (GCC) ) #1 SMP Fri Dec 28 11:51:14 CST 2012
Uboot build v : MAIN2.2.ubt.2073
This Device Like Micromax A90s
8Mpix Camera
512 RAM
1Ghz Dual Core Processor
Now I stuck on On Bootloop and CWM
Try hard for Flashing new Rom, kernel etc.
The fact i can't do Anything with my Phone.
Help Me Guys.///:crying:
Sory My Bad English
Click to expand...
Click to collapse
I have the same issue with cwm on my galaxy s3. If youre rooted download goomanager and install TWRP recovery. TWRP is better in every way!
Sent from my SPH-L710 using xda app-developers app

To late,.... now my device at service center,... hahahahahaha
fastboot is not working anymore,..
Lot of Tool For MTK device i already use it ,... but no one can detect my device....
hahaha,... i Must wait for one week back to my own..
^_^

Stessa cosa
anche a me è successa la stessa cosa dopo un memory test andato a male su sp flash a quanto pare nel mio dispositivo ho un bootloop e funziona solo la cwm e quando provo a montare le partizioni sd-ext e emmc mi da errore da parte di /dev/block/mmcblk0p7 invalid argument si può sbrikkare
Adb FUNZIONA!!
CWM RECOVERY (v5.0.4) FUNZIONA
Backup OK (manca il file system.img)
tutto l'altro ok

Related

Boot loop Unresolvable? Hardware problem?

Hey all, new to xda. Hope I'm not asking stupid questions.
My friend gave me a Galaxy S to fix. Model: GT-I9003.
It has a boot loop problem, cycling the Samsung introduction animation (and sound first time round). The recovery mode didn't work to start with - also trapped in a boot loop.
I followed the instructions here (using Odin3 v1.85) and flashed XXKPE. It seemed to all work fine, but the boot loop remained. I booted it into recovery mode and the following error messages appear.
E:failed to mount /data (No such file or directory)
Click to expand...
Click to collapse
and under -- Wiping data...
E:format_volume: rfs format failed on /dev/block/mmcblk0p3
Click to expand...
Click to collapse
then
Data wipe failed.
Click to expand...
Click to collapse
From my research I believe it's a corrupted internal SD-Card and is fixed via parted? Could anyone go into more detail on how I would do this?
Many thanks.
I am facing a similar problem on my Galaxy SL... Need a solution too... I would appreciate any help...
Data partition has been corrupted, try flashing userdata.rfs with heimdall. A friend of mine had an stock/untouched phone and this happened to it, even with the corrupted partition i was able to boot cyanogenmod, and tried a lot of things, but nothing worked, it was on warranty, so i flashed back the original firmware and he took it to the service center.
If you want to try do this:
Flash bam kernel PDA_BCK_CF-root_universal_beta14fix.tar (http://forum.xda-developers.com/showthread.php?t=1355675)
Then from CWM flash cyanogenmod (i used cm7, but you can try with cm9)
after that the phone should boot into cyanogemod and give an error on the notification bar
extract the 6 files off the zip i attached and copy them to /xbin
from terminal emulator or adb shell run this for the 6 files:
Code:
chmod 0755 <file>
then run:
Code:
parted /dev/block/mmcblk0 mkfs ext2
When it asks for the partition number, enter 3
finally reboot, and if it worked you can flash a stock rom again, thats it, good luck
My phone boots up, but there are random reboots. Tried a lot of stock and custom ROMs... Nothing works... Warranty expired last week...
Thanks for your time. I appreciate it.
bruisedcrow said:
Thanks for your time. I appreciate it.
Sorry, I'm very new at this - my first hour doing this kind of thing. Could you explain the procedure in more detail - I would like to learn (make the best of a bad situation).
Am I right to say that the Bam Custom Kernel gives super-root level privileges? Allowing the CWM to fiddle with partions?
I've downloaded the normalboot.img for BCK. How do I flash this to my device? Could you link me to a tutorial?
EDIT: Alternatively could you point me to all the prerequisites I need to properly understand the problem and the methods required to fix it?
Click to expand...
Click to collapse
I tried that... My phone was booting up...
I have Android SDK on my PC... It includes some tools like ADB.
If your phone is rooted, you can use ADB to do things, like formatting...
Connected my phone. Booted into recovery. From Command Prompt, I went to ADB folder, then typed "adb shell". Then, typed in the parted command, and followed steps. Successfully done...
But the problem continues...
I have found many other users have faced this problem -- http://forum.xda-developers.com/showthread.php?t=1736118
I am disappointed. My phone is no longer in warranty... I am too late...
it is possible that using cyanogenmod and S2E (simple2ext) will work as a workaround until you send it to service center.
grab a copy of s2e and push it to /system/app/
Repartition your External-SD using the same method used for phones with low storage capacity, warning: it will erase all the data in it, so make backups
Start s2e and mark to move:
App and Private app
Applications data
Dalvik and download cache
This makes another partition, and it does not fix data, but at least you should be able to install apps.
I face this problem too. Please someone give us the solution.
Update: I flashed BAM Custom Kernel and put it in recovery mode. Attached it to the computer, but I'm stuck at this error message.
Thanks again.
More information
EDIT: There doesn't seem to be a /data partition at all! I feel I'm getting closer to fixing this.
There are 2 storages chips on this phone, one is mmc and the other is onenand.
I think the mmc chip is dead... it contains both /data and internal-SD, the onenand still works, it contains (system cache and dbdata), you can still use the phone with cyanogenmod if you mount everything that should go on /data on a partition in the external-SD, (the method i described with s2e). However there are some drawbacks, the SD needs to be class 6 or above to maintain the system speed, and the life of the sd is going to be reduced because of the more intensive use.
alfrix said:
There are 2 storages chips on this phone, one is mmc and the other is onenand.
I think the mmc chip is dead... it contains both /data and internal-SD, the onenand still works, it contains (system cache and dbdata), you can still use the phone with cyanogenmod if you mount everything that should go on /data on a partition in the external-SD, (the method i described with s2e). However there are some drawbacks, the SD needs to be class 6 or above to maintain the system speed, and the life of the sd is going to be reduced because of the more intensive use.
Click to expand...
Click to collapse
Thanks. Is there a way to replace the mmc chip without sending it to Samsung?
I've flashed XXFPE then Bam Custom Kernel then when I try install cm7 from CWM it gives:
Checking state of RFS/EXT4...
assert failed: run_program("/tmp/updater.sh") == 0
E: Error in /emmc/update-cm-7.1.0-GalaxySL-Kang-singed.zip
(Status 7)
Installation aborted.
Trying with MIUI instead.
EDIT: MIUI does this too.
How do I get around this? Can't I flash cm7 via Odin like the stock roms?
bruisedcrow said:
Thanks. Is there a way to replace the mmc chip without sending it to Samsung?
I've flashed XXFPE then Bam Custom Kernel then when I try install cm7 from CWM it gives:
Checking state of RFS/EXT4...
assert failed: run_program("/tmp/updater.sh") == 0
E: Error in /emmc/update-cm-7.1.0-GalaxySL-Kang-singed.zip
(Status 7)
Installation aborted.
Trying with MIUI instead.
EDIT: MIUI does this too.
How do I get around this? Can't I flash cm7 via Odin like the stock roms?
Click to expand...
Click to collapse
I think that the problem is when /tmp/updater.sh tries to mount /emmc your internal memory (EDIT: I've just noticed you tried with CM7, so, if I remember correctly, /emmc is the external memory, but I think that the problem is always the impossibility to mount the internal memory.) to backup your /efs directory. Because of the not avaible internal memory (/emmc) it simply exits and aborts the installation.
A simple change in updater.sh will allow you to install CyanogenMod, but wait for a confirmation from alfrix, maybe there's something more.
Anyway here there's a thread of a user with the same problem, he solved this by using the external SD as internal SD, as alfrix suggested.
strange, before touching anything try with the release i used that time (14.12.2011), if it doesn't work, then edit the updater.sh and remove
Code:
if ! /tmp/busybox mount -t ext4 /dev/block/mmcblk0p3 /data ; then
/tmp/busybox umount /data
/tmp/make_ext4fs -b 4096 -g 32768 -i 8192 -I 256 -a /data /dev/block/mmcblk0p3
fi
EDIT: is there any mmcblk on /dev/block?
Code:
ls /dev/block/
Weird the has mmcblk0 reappeared.
Code:
~ # ls /dev/block
ls /dev/block
bml0!c bml6 loop6 ram13 ram9 stl6 tfsr2
bml1 bml7 loop7 ram14 stl1 stl7 tfsr3
bml10 bml8 mmcblk0 ram15 stl10 stl8 tfsr4
bml11 bml9 mmcblk0p1 ram2 stl11 stl9 tfsr5
bml12 loop0 platform ram3 stl12 tfsr0!c tfsr6
bml13 loop1 ram0 ram4 stl13 tfsr1 tfsr7
bml2 loop2 ram1 ram5 stl2 tfsr10 tfsr8
bml3 loop3 ram10 ram6 stl3 tfsr11 tfsr9
bml4 loop4 ram11 ram7 stl4 tfsr12
bml5 loop5 ram12 ram8 stl5 tfsr13
So I tried
Code:
C:\Users\Bruised>adb shell
~ # /sbin/parted /dev/block/mmcblk0 mkfs ext2
/sbin/parted /dev/block/mmcblk0 mkfs ext2
Warning: The existing file system will be destroyed and all data on the
partition will be lost. Do you want to continue?
/sbin/parted: invalid token: ext2
Yes/No? y
y
y
Partition number? 3
3
3
Error: Partition doesn't exist.
~ #
That mmcblk is you externalSD its 0 because the internal is missing/broken and it has only 1 partition, because you didn't do the Repartition yet.
Sent from my GT-I9003 using xda app-developers app
alfrix said:
That mmcblk is you externalSD its 0 because the internal is missing/broken and it has only 1 partition, because you didn't do the Repartition yet.
Sent from my GT-I9003 using xda app-developers app
Click to expand...
Click to collapse
What should I try next? 14.12.2011 download link is down.
try with this:
https://dl.dropbox.com/u/5013311/test_for_broken_mmc_cm-9-20120626-UNOFFICIAL-galaxysl.zip
alfrix said:
try with this:
https://dl.dropbox.com/u/5013311/test_for_broken_mmc_cm-9-20120626-UNOFFICIAL-galaxysl.zip
Click to expand...
Click to collapse
It installs it.
Code:
Checking state of RFS/EXT4...
Install from sdcard complete.
After I reboot CM9 boot screen loads then I get "Encryption unsuccessful" as shown here
After rebooting I get
Code:
CWM-based Recovery v5.5.0.4
Formatting /data...
E:format_volume: make_extf4fs failed on /dev/block/mmcblk0p3
Formatting /cache...
Data wipe failed.
Heres the log file from the sdcard:
Code:
+ /tmp/busybox test -e /sdcard/backup/efs/nv_data.bin
+ /tmp/busybox mount -t ext4 /dev/block/stl9 /system
+ /tmp/busybox mount -t ext4 /dev/block/stl10 /dbdata
+ /tmp/busybox mount -t ext4 /dev/block/stl11 /cache
+ /tmp/busybox umount -l /system
+ /tmp/busybox umount -l /cache
+ /tmp/busybox umount -l /data
umount: can't forcibly umount /data: Invalid argument
+ /tmp/busybox umount -l /dbdata
+ /tmp/busybox umount -l /efs
umount: can't forcibly umount /efs: Invalid argument
+ exit 0

[DualBoot]How-to[GB/JB/CM-10.1] now With Tool for devs

Hi guys,
finally I found a way to make dualboot on our beloved O3D working!!
This way isn't as much easy as on other devices like the desire HD where
you have just to install an app and everything is done by itself, so follow this
guide at your own risk!!
//Dualboot any rom and a cm10.1 based rom from external sdcard
Same as cm10 based but use the cm10.1.img
//Dualboot any and a cm10 based rom from external sdcard
Warning after following this guide your external sd card lost about 2gb!!!!
1. Make a backup of your external sdcard to your PC!! All your data on the sd card will be gone!
2. Reboot to cwm- or twrp-recovery (power+vol down+3d button)
3. connect your phone to your pc.
4, open up cmd or a terminal and type:
Code:
adb shell
(if your using twrp you can use the built in terminal)
5. type:
Code:
cd /dev/block
parted mmcblk1
print
on an 8gb sd it will show you something like this:
Model: Unknown (unknown)
Disk /dev/block/mmcblk1: 8051MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 8051MB 8051MB primary fat32 lba
Click to expand...
Click to collapse
6. type:
Code:
rm 1
all you data on the sdcard is now gone.
7. type:
mkpartfs primary fat32 1049kb 6000mb //instead of 1049 you have to enter the start that was told you by print and for 6000mb you have to enter your end minus 2 gb (my end is 8051mb - 2gb(=2000mb) ~ 6000mb
mkpartfs primary ext2 6000mb 6700mb //the end of your first partition (for me 6000mb) + 700mb = 6700mb
mkpartfs primary ext2 6700mb 7900mb //the end of your second partition (for me 6700mb) + 1200mb =
mkpartfs primary ext2 7900mb 8051mb //the end of your third partition and the end that parted told you after entering print before modifying anything (8051mb)
8. type:
Code:
print
you should get something like this:
Disk /dev/block/mmcblk1: 8051MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 6000MB 5999MB primary fat32 lba
2 6000MB 6700MB 700MB primary ext2
3 6700MB 7900MB 1200MB primary ext2
4 7900MB 8051MB 151MB primary ext2
Click to expand...
Click to collapse
9. type
Code:
quit
and turn off your phone and boot again to recovery
10. type on pc:
Code:
adb shell
mke2fs /dev/block/mmcblk1p2
tune2fs -j /dev/block/mmcblk1p2
mke2fs /dev/block/mmcblk1p3
tune2fs -j /dev/block/mmcblk1p3
mke2fs /dev/block/mmcblk1p4
tune2fs -j /dev/block/mmcblk1p4
Now you have 3 new partitions for data2 system2 and cache2.
The first part is done.
Now we have to edit the updater-script to make it install the system and maybe the data on our new partitions.
Open the updater-script of your jb based rom(for my pac man rom there is no need to cause I'll upload a versions for int and one for ext sd)
1. Open the zip you want to install as second rom with winrar or something like this.
2. Open the updater-scrip in the zip and change all the mmcblk0p7 to mmcblk1p2 and mmcblk0p8 to mmcblk1p3.
Flash your rom but stay in recovery
Now we have to change the boot.img in the zip to modivied one, just flash one of the zips that suits to your ROM
OK last step is to edit the gapps to be flashed on second ROM:
Just open the updater-script and change the line busybox mount system line to
mount("ext4", "EMMC", "/dev/block/mmcblk1p2", "/system");
And save it
//Dualboot a stock gingerbread based rom and a cm7 based rom from internal sdcard
Warning after following this guide your internal sd card is only 3545mb big!!!!
Here is a tool that makes all the work for you credits to defcomk:
http://d-h.st/hux
1. Make a backup of your internal sdcard to your PC!! All your data on the sd card will be gone!
2. Reboot to cwm- or twrp-recovery (power+vol down+3d button)
3. connect your phone to your pc.
4, open up cmd or a terminal and type:
Code:
adb shell
(if your using twrp you can use the built in terminal)
5. type:
Code:
cd /dev/block
parted mmcblk0
print
it will show you something like this:
Number Start End Size File system Name Flags
1 131kB 262kB 131kB x-loader
2 262kB 393kB 131kB nv1
3 393kB 524kB 131kB nv2
4 524kB 1049kB 524kB u-boot
5 1049kB 11.5MB 10.5MB kernel
6 11.5MB 22.0MB 10.5MB recovery
7 22.0MB 651MB 629MB ext4 system
8 651MB 1725MB 1074MB ext4 userdata
9 1725MB 1859MB 134MB fsswap
10 1859MB 1926MB 67.1MB ext3 cache
11 1926MB 1928MB 2097kB ext3 lgdrm
12 1928MB 1929MB 1049kB divxkey
13 1929MB 1950MB 21.0MB fota
14 1950MB 1955MB 4194kB ext3 misc
15 1955MB 7944MB 5987MB fat32 fat
6. type:
Code:
rm 15
all you data on the sdcard is now gone.
7. type:
Code:
mkpartfs primary fat32 1955 5500
mkpartfs primary ext2 5500 6100
mkpartfs primary ext2 6100 6200
mkpartfs primary ext2 6200 7944
8. type:
Code:
quit
9. turn off your phone and boot again to recovery
10. type on pc:
Code:
adb shell
mke2fs /dev/block/mmcblk0p16
tune2fs -j /dev/block/mmcblk0p16
mke2fs /dev/block/mmcblk0p17
tune2fs -j /dev/block/mmcblk0p17
mke2fs /dev/block/mmcblk0p18
tune2fs -j /dev/block/mmcblk0p18
Now you have 3 new partitions for data2 system2 and cache2.
The first part is done.
Now we have to edit the updater-script to make it install the system and maybe the data on our new partitions.
1. Open the zip you want to install as second rom with winrar or something like this.
2. Open the updater-scrip in the zip and change all the mmcblk0p7 to mmcblk0p16 and mmcblk0p8 to mmcblk0p18.
Now we have to change the boot.img in the zip to modivied one, just flash one of the zips that suits to your ROM
After flashing the zip you will boot into the second rom you have installed, to boot back to the first rom you will have to flash
a boot.img that suits to your rom (for stock rom something like the Promethius Kernel)
On stock roms it could happen that your sdcard isn't mounted correctly
you can try to change the vold.fstab in /system/etc to something like :
dev_mount sdcard /mnt/sdcard auto /devices/platform/mmci-omap-hs.0/mmc_host/mmc1
dev_mount extsdcard /mnt/sdcard/_ExternalSD 15 /devices/platform/mmci-omap-hs.1/mmc_host/mmc0
Click to expand...
Click to collapse
There are some great tools here
//For Kernel Devs Create your own DualBoot image
I wanted to see some more dualboot kernels and I don't have time to create the b myself so I made this tool.
Just extract it, put a kernel in the put_zImage_here folder and start the tool. For now there is only 4.1.2 but
4.2.2 will be added soon.
You can post the image in your kernel thread, and if you want you can send me a PM to add a link to the kernel
Please post any trouble.
Changelog:
-21/10/12 added acuramiui, cyan_beta, original_cm, original_miui and titanfusion kernels
-24/10/12 added tool for terminal work thanks to defcomk
-26/03/13 added 4.2.2 support
-??/??/13 aroma zip installer for all the kernels
modded recovery to backup 1st and second rom
Credits:
-Dreccon for his script
-Defcomk for his tool
-Samno for his kerne
-Acura for his kernel
-orlox for his guide on partitioning sdcard
-Ricardo Cerqueira for his awesome work on our O3D
Sent from my LG-P920 using Tapatalk
This will be great, thank you! I can't wait for the tutorial to be completed!
I love Cyanogenmod for speed, but I also like using 3D occasionally and the HDMI, so now I can do both. Thanks!
sounds great mate, thanks
Sent from my LG-P920 using Xparent Blue Tapatalk 2
great stuff
But you should write the undo method also, just in case someone wants to undo all the changes. So in theory any ROM made for P920 should work in dual boot? Can you do some sort of guide, a real working one, on how to have Ubuntu or GNU/Linux on the phone? I've tried a few guides but, or I'm very dumb (it might be so) or my phone is not working right.
BigBadSheep said:
But you should write the undo method also, just in case someone wants to undo all the changes. So in theory any ROM made for P920 should work in dual boot? Can you do some sort of guide, a real working one, on how to have Ubuntu or GNU/Linux on the phone? I've tried a few guides but, or I'm very dumb (it might be so) or my phone is not working right.
Click to expand...
Click to collapse
theres an simple app in the play store on how to boot ubuntu.
It worked for me I can post you a link.
@ Berni Aroma Zip Installer Could be used for users to choose Main or SUB ROM just add both boot.img into rom
so with this can we run the boot manager app??
rezzsha said:
so with this can we run the boot manager app??
Click to expand...
Click to collapse
No this Works a lil Differently this is an Actual true Dualboot method. The Best Would be to make a Bat File/script to automate the process
Sweeeeet...running thrillseeker with miui...just a quick kernel flash to switch...
I had some errors running code in adb ..my internel SD was formatted a couple bytes short...I choose not to fix when prompted and also chose ignore error when it came up..
Also needed SD card mnt fix in thrillseeker...your code worked perfect now both are running fine.
Thank you for this great contribution to our phones.
Sent from my LG-P925 using xda premium
Is it possible to boot Straight into Recovery without Key Conbo? If It is we could modd touch recovery to look something like this
Stock and CM7 would just Run package extract boot.img and last option Normal Recovery
Just a thought we would have the Ultimate Dual Boot
defcomg said:
Is it possible to boot Straight into Recovery without Key Conbo? If It is we could modd touch recovery to look something like this
Stock and CM7 would just Run package extract boot.img and last option Normal Recovery
Just a thought we would have the Ultimate Dual Boot
Click to expand...
Click to collapse
You can from Rom manager.
Sent from my LG-P925 using xda premium
Bdadd34 said:
You can from Rom manager.
Sent from my LG-P925 using xda premium
Click to expand...
Click to collapse
what's the script rom manager uses can it be extracted from the apk and used
Sent from my LG-P925 using xda app-developers app
!!!!!! JUst TEST!!!!
Made an App to Help Automate the Process
Here it is
XDA_Make DualBoot.zip - 4.03 MB
It just runs scripts and helps reboot the phone weird thing adb reboot recovery just does a normar reboot weird lg
Yea I noticed a long time ago our o3d doesn't reboot into recovery except the button combo or rom mananger kinda screwy of LG
Sent from my LG-P925 using xda app-developers app
Code:
adb shell "echo boot-recovery|dd of=/dev/block/mmcblk0p6 bs=1 seek=0; reboot"
found that for the asus tf101 reboot recovery also does not work on stock rom
defcomg said:
Code:
adb shell "echo boot-recovery|dd of=/dev/block/mmcblk0p6 bs=1 seek=0; reboot"
found that for the asus tf101 reboot recovery also does not work on stock rom
Click to expand...
Click to collapse
I think iBlueMind made a file you had to put in system/bin and the if you type in shell reboot-recovery you get strightly into recovery.
We could also put the boot.img of the second rom on the recovery partition so we could faster acces to the second rom
Here is the file.
http://db.tt/KlslJGQH
Sent from my LG-P920 using xda app-developers app
I made a .bat file for the first part. I don't know if it works 'cause i don't want to dualboot my phone yet.
u just extract it and put it in your adb directory and run it.
Please let me know if it works then i will write the second part.
I didn't "@echo off" because i wanted u to see what i have writed
Hi! Thanks for the great tutorial!
I have a problem.. I do the dual boot , i have new partitions , everything fine but on my first rom ( Acura Team 3D Max 3.1) , i can't mount the SD card's.
I tried to modify the vold.fstab file in the system but it wont work.
Please help! Thanks

[Completed] [Q] "E:Can't mount /cache" - ?enabling adb? - i9100

Hi
I've cm-11-20150607-NIGHTLY-i9100 on my Samsung Galaxy SII i9100
It has gapps-kk-20140105-signed (as far as I remember).
I do have cwm 6.0.5.1
Two days ago, there was some update (haven't seen what exactly).
Now, while booting the phone hangs on the boot screen.
When I lunch into cwm-recovery I do see:
CWM-based Revocery v6.0.5.1
E:Can't mount /cache/recovery/command
E:Can't mount /cache/recovery/log
E:Can't open/cache/recovery/log
E:Can't mount /cache/recovery/last_log
E:Can't open/cache/recovery/last_log
The show log says:
mount: mounting /dev/block/mmcblk0p7 on /cache failed: Invalid argument
W: failed to mount /dev/block/mmcblk0p7 (File exist)
E:Can't mount /cache/recovery/log
(and more like this)
...
I do have MTP enabled, and debugging USB disabled- this is a big problem since i can not access adb...
I would like to backup data, but how can I enable adb from cwm?
I did try to wipe dalvik (I think it did work) /format cache - It does not work - it hangs.
I did try to "reboot to receovery (or reboot to bootloader): from the cwm- it hangs
I did try to mount /storage/sdcard0 - it hangs
I did try to create a backup from phone memory to scracd1 - it hangs
I can boot into fastboot.
It looks like some error on partition, or problem with internal phone memory.
Anything that try to access internal sdcard0 hangs
How can I backup the phone (or at lest photo - not all were synced yet).
What would be the next step?
Any idea howto enable USB debugging?
I've seen this tutorial
(can add a link so google "enable usb debbuging through clockworkmod with adb")
but it is for the Nexus, not for the i9100...
I do have Ubuntu, with
adb version 1.0.31
I can switch to Windows if it would help...
Ok,
For the moment, I made the wrong assumption.
I can access adb.
The solution was to install latest android SDK (cm11 is some like Android 4.4.4) to get newest adb
(developer.android com/sdk/installing/index.html?pkg=studio )
To be clear, if you're having this same issue the problem is probably an out-of-date SDK. As of 4.2.2 there is a security feature that requires you to confirm the RSA fingerprint of the connecting device. Open the SDK manager and update the tools! Then reboot. - quote from stackoverflow com/questions/14993855/android-adb-device-offline-cant-issue-command
Click to expand...
Click to collapse
stackoverflow com/questions/14993855/android-adb-device-offline-cant-issue-commands
and
having Enabled ADB Integration via Tools > Android > Enable ADB Integration
stackoverflow com/questions/26079838/android-studio-adb-error-device-unauthorized-please-check-the-confirmat
Now I can access
adb shell (while booting into cwm recovery - Power+volUp+Home)
Code:
# parted /dev/block/mmcblk0 print
Model: MMC VYL00M (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 4194kB 25.2MB 21.0MB EFS
2 25.2MB 26.5MB 1311kB SBL1
3 27.3MB 28.6MB 1311kB SBL2
4 29.4MB 37.7MB 8389kB PARAM
5 37.7MB 46.1MB 8389kB KERNEL
6 46.1MB 54.5MB 8389kB RECOVERY
7 54.5MB 159MB 105MB CACHE
8 159MB 176MB 16.8MB MODEM
9 176MB 713MB 537MB FACTORYFS
10 713MB 2861MB 2147MB DATAFS
11 2861MB 15.2GB 12.4GB UMS
12 15.2GB 15.8GB 537MB ext4 HIDDEN
~ # cat /etc/fstab
/dev/block/mmcblk0p7 /cache ext4 rw
/dev/block/mmcblk0p10 /data ext4 rw
/dev/block/mmcblk0p9 /system ext4 rw
~ # mount -o ro -t ext4 /dev/block/mmcblk0p10 /data
mount: mounting /dev/block/mmcblk0p10 on /data failed: Invalid argument
The problem is - I can not backup the data nor mount the /data partition
Sir,
This forum is for helping new users to help members navigate the site, not for support.
I see you've found your device section and already know how things work on XDA.
So please note the sticky from the top of the Assist section and ask directly in this thread for I9100:
[Q&A][SGS2][Newbies][Experienced Users][RCs] New members friendly Q&A thread
Good luck

Successfully flashed a ROM but stuck on HTC Logo

i know there are a lot of threads out there having the same problem as mine, but i think my situation is different, so need help on this.
Here it goes:
After i flashed my unlocked S-On HTC Sensation 4G T-Mobile back to Stock, i experienced wifi problem so i decided to flash again a rom compatible with my handset. After flashing Android_Revolution_HD-Sensation_1.2.2_T-Mobile, it's stuck on HTC Logo, so i decided to flash the Rom again. Now it can't seem to find my system and data partition, it says E: Format_volume: make_extf4fs failed. I solved the problem by partitioning my external sd card as system and data and installing another rom with the updater-script configured. Now the installer says it is sucessful but after i reboot, it's still stuck in the HTC logo. What should i do? I'm really desperate for help. Hope you can rescue me in this situation.
HEre is the installation Log (i have to delete the extract logs since it's too long):
AROMA INSTALLER version 2.56
(c) 2012 by amarullz xda-developers
ROM Name : Revelation
ROM Version : 1.0.3
ROM Author : SebastianFM
Device : HTC Sensation/XE/4G
Start at : Fri Jan 2 00:11:37 1970
Preparing partitions
Formatting cache partition
unmount of /cache failed; no such volume
[Creating filesystem with parameters]:---
Size: 125784064
Block size: 4096
Blocks per group: 32768
Inodes per group: 7680
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 30709
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/7680 inodes and 1518/30709 blocks
warning: wipe_block_device: Discard failed
error: file_write: write: I/O error
E:make_ext4fs failed (1) on /dev/block/mmcblk0p24format: Can not format_ext4 emmc partition named "/dev/block/mmcblk0p24"ui_print
Installing system
Mounting system on sd-ext
about to run program [/sbin/busybox] with 6 args
Mounting Data on sd-ext2
about to run program [/sbin/busybox] with 6 args
Copying files
Setting permissions
Installing kernel
Copying kernel modules
Mounting /system on sd-ext
about to run program [/sbin/busybox] with 6 args
Extract: /system/lib/modules/bcmdhd.ko
Extract: /system/lib/modules/cdc-acm.ko
Extract: /system/lib/modules/option.ko
Extract: /system/lib/modules/pl2303.ko
Extract: /system/lib/modules/usb_wwan.ko
Writing boot image
Flashing Boot.img...
Kernel imaged flashed...
Finished
script result was [@Finished]
Installer Sucessfull (Status 0)
End at : Fri Jan 2 00:16:12 1970
did u flash boot.img after u flashed the rom?
jmcclue said:
did u flash boot.img after u flashed the rom?
Click to expand...
Click to collapse
no, how do i do that? if from fastboot, i don't think that's posible, adb can't detect my device.
iameg said:
no, how do i do that? if from fastboot, i don't think that's posible, adb can't detect my device.
Click to expand...
Click to collapse
adb & fastboot setup
http://www.google.ie/url?q=http://f...Z1GBjE&usg=AFQjCNG5wlDp1B-QvlsXu3HOD2a01TSDgw
plenty of guides here on xda for u to read if not sure of fastboot commands.
and u can always flash latest 4ext recovery and enable smart flash in settings, it flashes boot.img for s-on users.
HELP!
jmcclue said:
adb & fastboot setup
http://www.google.ie/url?q=http://f...Z1GBjE&usg=AFQjCNG5wlDp1B-QvlsXu3HOD2a01TSDgw
plenty of guides here on xda for u to read if not sure of fastboot commands.
and u can always flash latest 4ext recovery and enable smart flash in settings, it flashes boot.img for s-on users.
Click to expand...
Click to collapse
hi, after a few days of not having been able to attend to my htc sensation, now it doesn't charge (no led light indicator) and doesn't power on nor go to bootloader. how do i fix this? please help me.

ZP980 unbrick/study of partition table

Hi to all, I hope to be posting in the right section...otherwise...punish me plz
It's a long story, so i hope that someone has time and want to put some effort to help me understand what i'm doing wrong.
By the way i work in IT field and have some knowledge about linux (let's say 5 on 10) but not so many on how android really works, but i'm confortable with custom recovery and roms, i'm still using an s4 mini (GT-I9195) with mine android 9 custom rom and i'm super happy with it.
Now that presentation are done , here is the matter.
I've found an old zp980 32GB (NOT the "plus one") that some years ago i've rooted it flashed with recovery and custom rom. all was working, but at some point i started playing with fdisk and parted and i messed up things.
Honestly i don't remember what exactly i was doing, but now the status of the phone is:
System not booting
I can enter into Recovery (custom TWRP by dezmen3 v2.4.4.0)
I can connect to adb into recovery
I cannot flash rom trough recovery due the actual system partition (589 MB)
I cannot flash the original rom trough SP flash tool due "SFT enable dram failed (4032)" error
The partitions actually are (what i can see from recovery):
System (589 MB)
Data (54MB)
Boot (6 MB)
Recovery (6MB)
Cache (4 MB)
uboot(0 MB)
nvram (5 MB)
Free space: 27412 MB
Actually, I've tried to reformat the memory using SP flah tool, but i got the same error "SFT enable dram failed (4032)", all drivers are ok, i can see COM port in deivce manager tried win 10 and even win 7.
SP tool ver. used v5 1720 more updated version tells me that the brick i'm tringo to flash in not supported anymore xD
Here a dump of fdisk -ul /dev/block/mmcblk0 from adb shell
Bash:
Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 1024 1022 2147483647+ 5 Extended
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 26624 47103 10240 83 Linux
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 47104 67583 10240 83 Linux
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 93184 105471 6144 83 Linux
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 134144 1465343 665600 83 Linux
/dev/block/mmcblk0p6 4869120 1022 2145049599+ 83 Linux
if i make a print from parted (pushed with adb) I get:
Error: Can't have a partition outside the disk!
Before i was also having an error saying that there was an extended partition into a logical one (don't ask me how I do it), but i removed it
So, now....what to to to rescue this device?
by the way honestly except for the instinct of "recover things that doesn't work" my main purpose is understand:
What I've messed on the partitions
Why sp flash tool can't reformat/flash the memory (i haven't tried to manually modify it again)
no brave person hat want to help me to brick it in a bad way?
EDIT NEW INFO
i've understtod that the problem was caused by
/dev/block/mmcblk0p1
and
/dev/block/mmcblk0p6
start and end were inverted , them were overflowing.
Now i used fdisk to remove part 1 (the extended), so i've lost also 5 and 6 (system and cache) and i have recreated them using 1 GB for each and using correct sector order.
now SD and try to flash a ....random compatible rom....see u later for info.
Cross your finger for me xD
flash failed it cant mount system and emmc.....
and now
~ # cat /etc/fstab
/cache ext4 rw
/data ext4 rw
/emmc vfat rw
/system ext4 rw
/sdcard vfat rw
/sd-ext auto rw
if someone has a zp980/c2 working can please post me the result of
cat /etc/fstab
from adb shell??
and a fdisk -ul?

Categories

Resources