Unable to flash ROM, assert failed - HTC 10 Questions & Answers

I am trying to flash leedroid stable. I have:
- Unlocked bootloader
- Installed latest TWRP as of today
- Downloaded ROM to internal SD
- Made a full backup
- Wipe system data cache via factory reset
- Flashed ROM
And received error 7, assert failed package_ extract_dir(/system, system)
I believe TWRP shouldn't be mounting system read only, in Mount the checkbox for mount read only is not checked. And when I reboot recovery it doesn't prompt me to swipe to allow system modifications.
Another question,
I see that leedroids install instructions say to format data, deleting entire internal storage? This is the only thing I haven't done; I thought since twrp can decrypt data now, all that needs to be done is wipe system, data, cache like usual?
So, why am I getting the assert failed error, and is it related to not formatting data?
TWRP log attached. Also tried flashing from external SD and same error.
Thanks

Which version of TWRP are you using?
Sorry, just read and you said the latest.
Did it ask you to make changes?
Sent from my HTC 10 using XDA Labs

squ89r97 said:
Which version of TWRP are you using?
Sorry, just read and you said the latest.
Did it ask you to make changes?
Sent from my HTC 10 using XDA Labs
Click to expand...
Click to collapse
3.0.2.4,
When I first booted into recovery to make a backup I believe it asked me, I can't remember whether or not I swiped to allow modifications. But it hasn't asked me again since then. Now I'm just looking in Mount, and I've unchecked the box that says mount system as read only. Still get same error.

Updated OP with TWRP log. Also tried flashing from external SD and got same error.

Related

[Q] Unmountable SD

Hey all, as I was trying to factory reset under TWRP, it would not let me and showed,
E: Unable to mount `/sd-ext'
How would I fix this?
Harshizzle said:
Hey all, as I was trying to factory reset under TWRP, it would not let me and showed,
E: Unable to mount `/sd-ext'
How would I fix this?
Click to expand...
Click to collapse
Our device does not have an sd-ext partition. Use the latest TWRP 2.6 and erase system, data, cache, and dalvik cache.
Sent from my One V using xda premium
Ohh, I have been using TWRP 2.3
Thanks! I'll try flashing TWRP 2.6
After trying to wipe it in TWRP it says unable to wipe sd/ext
Sd_ext is just a partition on you sdcard that does not exist unless you have created one.
It's just stating could not format sd_ext because it's not there
Do not fret my friend, it still factory resets like it's supposed to

SM-T210R can't mount /system

Okay so today I tried to flash Inspirekat v2.1 rom on my galaxy tab 3 via latest TWRP, and after I wipe system, data, dalvik cache and cache I reboot into the system and I can't get passed the samsung galaxy tab 3 splash screen after some time I found out that the problem is the unability to mount the /system file, then I tried CWM and still the same thing.
Unfortunately I didn't make a backup because I didn't have any precious data there so I just thought I would skip that, I've also tried formatting all data on internal storage but with no avail...could anyone light up a candle for me?
shokolata said:
Okay so today I tried to flash Inspirekat v2.1 rom on my galaxy tab 3 via latest TWRP, and after I wipe system, data, dalvik cache and cache I reboot into the system and I can't get passed the samsung galaxy tab 3 splash screen after some time I found out that the problem is the unability to mount the /system file, then I tried CWM and still the same thing.
Unfortunately I didn't make a backup because I didn't have any precious data there so I just thought I would skip that, I've also tried formatting all data on internal storage but with no avail...could anyone light up a candle for me?
Click to expand...
Click to collapse
If you wiped "system" after you flashed, then you no longer have a rom installed. Re-flash the rom.
Sent from my SM-G920V using Tapatalk
gr8nole said:
If you wiped "system" after you flashed, then you no longer have a rom installed. Re-flash the rom.
Sent from my SM-G920V using Tapatalk
Click to expand...
Click to collapse
Sorry I messed it up a bit in my previous post, I didn't wipe system "after" I flash but before I flashed
Every time I try to flash it just takes a minute then I reboot into the system; same thing happens then I get back into recovery to see that the /system is unmounted and can't be mounted back also when I try "repair partition" it shows that only 54mb of /system partition is used and around 1300mb is free, any insight on that?
Some errors about not being able to read storage file context and can't find path to /sdcard also appear sometimes on the log window or however it's called at the top right.
shokolata said:
Sorry I messed it up a bit in my previous post, I didn't wipe system "after" I flash but before I flashed
Every time I try to flash it just takes a minute then I reboot into the system; same thing happens then I get back into recovery to see that the /system is unmounted and can't be mounted back also when I try "repair partition" it shows that only 54mb of /system partition is used and around 1300mb is free, any insight on that?
Some errors about not being able to read storage file context and can't find path to /sdcard also appear sometimes on the log window or however it's called at the top right.
Click to expand...
Click to collapse
TWRP does have some issues mounting system sometimes.
Once you boot into recovery, choose the reboot recovery option and try the flash sgain.
Sent from my SM-G920V using Tapatalk
gr8nole said:
TWRP does have some issues mounting system sometimes.
Once you boot into recovery, choose the reboot recovery option and try the flash sgain.
Sent from my SM-G920V using Tapatalk
Click to expand...
Click to collapse
After trying different combinations of wiping and repairing and also changing partition type IT WORKED, freaking nice.
Thanks for your support!

Phone stuck in bootloop. Tried tons of things.

So, I have an N7100. I have rooted my phone a few times. The last time was over a year ago and it worked fine. Yesterday, suddenly (I haven't attempted to flash anything) it restarted on its own and won't boot. I tried to go into the TWRP recovery I had installed over a year ago, but TWRP will only load for a second and then disappear and the phone would restart again and go into the bootloop. As a result, I can't wipe cache partition.
I can confirm that I can connect successfully to ODIN and flash a different version of TWRP. I have failed to flash CWM so far... maybe I couldn't find a correct version since my phone has knox???
I tried flashing a different kernel, but that didn't work either. Do I need a specific kernel?
The only thing I need to do is recover my files, whether it is through recovering the phone, or accessing the internal storage.
Can someone please help me? I don't want to do a complete wipe.
And in case this is relevant, my ROM is the custom OMEGA rom, I'm not sure which version though. Either 31, or 26, which is either for android 4.3 or 4.4.2.
Thanks
Hey,
I have the same problem, the phone just restarted on it's own yesterday, restarted again and is now stuck at the bootlogo.
Wiping Cache and Dalvik on it's own doesn't suffice, Wiping the system partition too (TWRP) gets the phone to boot, but it will restart again after a couple of minutes, again stuck at the boot logo.
I'm using the limbean ROM.
shadnixx, wiping the system partition does not mean that you're going to loose your data - you should try that, after the factory reset the phone is usable for a couple of minutes, I will now try to flash a newer ROM and gapps, maybe the problem will go away with that.
quickhash said:
Hey,
I have the same problem, the phone just restarted on it's own yesterday, restarted again and is now stuck at the bootlogo.
Wiping Cache and Dalvik on it's own doesn't suffice, Wiping the system partition too (TWRP) gets the phone to boot, but it will restart again after a couple of minutes, again stuck at the boot logo.
I'm using the limbean ROM.
shadnixx, wiping the system partition does not mean that you're going to loose your data - you should try that, after the factory reset the phone is usable for a couple of minutes, I will now try to flash a newer ROM and gapps, maybe the problem will go away with that.
Click to expand...
Click to collapse
Thanks for replying. I can't wipe the partition. That requires that I get into recovery, right? I can't even get into recovery. TWRP loads for just 1 second and then the phone reboots.
shadnixx said:
Thanks for replying. I can't wipe the partition. That requires that I get into recovery, right? I can't even get into recovery. TWRP loads for just 1 second and then the phone reboots.
Click to expand...
Click to collapse
have you tried to reinstall TWRP recovery? Maybe yours is corrupted, try to flash the latest version again. If that help you boot in recovery, things will be easier to haddle after.
https://dl.twrp.me/t03g/twrp-3.0.2-0-t03g.img.tar.html
also see this if it can help you
http://techbeasts.com/install-latest-twrp-recovery-on-samsung-galaxy-note-2-all-variants/
logosA said:
have you tried to reinstall TWRP recovery? Maybe yours is corrupted, try to flash the latest version again. If that help you boot in recovery, things will be easier to haddle after.
also see this if it can help you
Click to expand...
Click to collapse
Yeah I already tried that. Thanks though
@shadnixx Well use every possible way to flash and enter custom recovery. Try Philz, TWRP, CWM, everything...
If everything fails you'lll have to reflash Stock ROM using Odin. I've heard is wipes data but not internal storage but I'm not sure and don't balme me if it happens. Search xda a little.
See these threads: http://forum.xda-developers.com/showthread.php?t=2583588
http://forum.xda-developers.com/showthread.php?t=1121817
If that fails then the phone has hardware damage I think. Needs to go to service.
Option58 said:
@shadnixx Well use every possible way to flash and enter custom recovery. Try Philz, TWRP, CWM, everything...
If everything fails you'lll have to reflash Stock ROM using Odin. I've heard is wipes data but not internal storage but I'm not sure and don't balme me if it happens. Search xda a little.
See these threads: http://forum.xda-developers.com/showthread.php?t=2583588
http://forum.xda-developers.com/showthread.php?t=1121817
If that fails then the phone has hardware damage I think. Needs to go to service.
Click to expand...
Click to collapse
Thanks for your reply. That's what I'm trying to do. One question... do I have to have a specific CWM version that is compatible with my ROM?
Progress
OK, while flashing TWRP failed to help, flashing Philz Touch enabled me to get into recovery. I was able to mount the external SD card and browse the files, but the real problem is with the internal storage, since the SD card is removable. I couldn't manage to mount it. Can someone help with that?
Wiping the cache partition didn't help either.
You tried different tar versions of twrp?
What is the error message in Odin when trying to flash twrp?
Tried flashing twrp with different USB cables and USB ports?
audit13 said:
You tried different tar versions of twrp?
What is the error message in Odin when trying to flash twrp?
Tried flashing twrp with different USB cables and USB ports?
Click to expand...
Click to collapse
I'm sad to report, after I wiped the cache and restarted my phone, Philz would behave like TWRP did, which is to load for 1 second then reboot. Yes, I tried 4 different versions of TWRP, same result. Odin doesn't give any errors. It says that flashing was successful. Tried different cables and ports too, yes.
Possible power button or battery problem?
audit13 said:
Possible power button or battery problem?
Click to expand...
Click to collapse
Don't think so. I just replaced the battery... still same problem. And when I enter Odin "Download" mode, it doesn't keep restarting, so I don't think it's the power button.
I got a small update though...
Flashed another version of philz, which works every time I boot to recovery. A few problems though...
1. I can wipe cache partition, no problem. But When I try to wipe Dalvik, the phone reboots as soon as I try.
2. Aroma file explorer doesn't show any files.
3. I can mount external SD, but I can't mount internal storage
4. When using ADB, it could finally initiate pulling files from the internal storage (or that's what it appears to be doing), but only while on recovery mode. A few seconds after it says "listing files" or something, the phone reboots and the ADB operation aborts. It doesn't behave like this when I access other sections of philz recovery.
Any thoughts?
Another small update...
While using philz, I clicked the "install zip from sdcard" and it showed my folders. I think my files are intact, but I guess I can't be certain.
Small update again...
I flashed Aroma File Explorer from Philz, I managed to enter my internal storage browse around for a bit, but then the phone rebooted again. I tried to repeat so I could copy my internal storage, but now my internal storage says symlink error.
shadnixx said:
OK, while flashing TWRP failed to help, flashing Philz Touch enabled me to get into recovery. I was able to mount the external SD card and browse the files, but the real problem is with the internal storage, since the SD card is removable. I couldn't manage to mount it. Can someone help with that?
Wiping the cache partition didn't help either.
Click to expand...
Click to collapse
Listen up - Transfer any ROM to your external SD card, touchwiz based to avoid any complications if you can.
When you get into recovery (at least on TWRP 3 on my Galaxy Note 2 LTE this works) you can connect your phone to PC and transfer all the files, it just gets recognised.
If that fails then wipe /data and /cache partition and see if it boots. If that fails/succeeds then try to flash new ROM and wipe /data and see if it will boot. Data is not the same as internalSD. Data is your apps and settings, you can reinstall that later. InternalSD is your pictures and all. You want your pictures, not your apps, right? It is different.
But who knows what happened here. Malware? Corrupt partition? Hardware failure of some kind? Don't blame me if flashing a new ROM breakes everything even more.
Option58 said:
Listen up - Transfer any ROM to your external SD card, touchwiz based to avoid any complications if you can.
When you get into recovery (at least on TWRP 3 on my Galaxy Note 2 LTE this works) you can connect your phone to PC and transfer all the files, it just gets recognised.
If that fails then wipe /data and /cache partition and see if it boots. If that fails/succeeds then try to flash new ROM and wipe /data and see if it will boot. Data is not the same as internalSD. Data is your apps and settings, you can reinstall that later. InternalSD is your pictures and all. You want your pictures, not your apps, right? It is different.
But who knows what happened here. Malware? Corrupt partition? Hardware failure of some kind? Don't blame me if flashing a new ROM breakes everything even more.
Click to expand...
Click to collapse
I'll try that, thanks.

TWRP failed to mount /system (invalid argument)

I've recently updated my htc 10 to Android 7.0 using the 2.38.617.6 firmware and added twrp to use for backup purposes. I have attempted to root the device with chainfire's supersu, but failed due to data being in the wrong format.
First off, I managed to find out the the system partition is ridiculously large (17,592,186,044,365 MB) leading me to believe that the system partition has been corrupted.
I've checked the format type for each partition (data, system and cache) they check out to be ext4.
As the title of the post states, I've also ran into that problem before the system partition size issue.
Also, when trying to reboot the system through twrp, I get the message, "No OS Installed! Are you sure you..." but the phone boots up just fine.
Any help is appreciated.
ensure you flashed the latest unoffical twrp from the xda twrp thread. not the official one.
j to the 4n said:
ensure you flashed the latest unoffical twrp from the xda twrp thread. not the official one.
Click to expand...
Click to collapse
I have fixed the issue. I had to find and flash the latest ruu because I had restore the /data partition from when I had the phone rooted and downloaded xposed. I ran through the same process after the flash without restoring the data partition and now it work.
Only downside is that I can't restore my data until xposed has a compatible framework. Thanks for replying.
I got a clean backup of the twrp formatted the sd card with external memory I mounted the backup in the external sd and restored the system .... With that I was successful:dedos cruzados::dedos cruzados:

Guys Please help. Unable To Mount... error. Tried everythng. Video given.

I have watched a lot of tutorials but nothing is working please someone help
I made a video of the problem and what I tried. Can anyone understand what happened
https://www.youtube.com/watch?v=VaN-y-Worlg
Update: In Data i Changed the file system and went back to original. Didn't work.
I even wiped system. But i guess the only problem is to fix the "data". Since it shows 0 Mb size. But i can't find any way or guide. The ones i did find are too advanced and use cmd commands and toolkits which i don't think an inexperienced user like me should be following.
Some background information: i attempted to install Open gApps and enable Camera2 API. I Entered "read only" mode.
The adb shell commands for enabling it wasn't working (some "proprietary" something shown )
So I tried another method. I downloaded the latest Magisk and flashed it. Then i tried gApps. I don't remember when i started to think what went wrong but yeah..
I found this and I think it may be related.
But I don't understand it properly.
And its and Old post for some other Recovery
https://forum.xda-developers.com/go...o-repairing-corrupted-data-partition-t2577447
See if this will help you
https://forums.oneplus.com/threads/closed-solved-twrp-unale-to-mount-storage-help.544878/
Essentially reboot twrp then wipe-> format data
jaybeeee said:
See if this will help you
https://forums.oneplus.com/threads/closed-solved-twrp-unale-to-mount-storage-help.544878/
Essentially reboot twrp then wipe-> format data
Click to expand...
Click to collapse
DId that in the video. Doesn't work
Did you reboot twrp first? I don't see that
jaybeeee said:
Did you reboot twrp first? I don't see that
Click to expand...
Click to collapse
Oh yeah didn't do it in the video.. But yeah no good.
Crap, sorry to hear it, hopefully someone better than me chimes in. Good luck!
Why did you wipe internal storage? And what are you trying to mount. If you are trying to install a new rom all you need to wipe is cache, dalvik, system and data. Wiping internal storage removes everything from the internal SD card and if you do this then you have no OS.
Sent from my iPad using Tapatalk
Stransky said:
Why did you wipe internal storage? And what are you trying to mount. If you are trying to install a new rom all you need to wipe is cache, dalvik, system and data. Wiping internal storage removes everything from the internal SD card and if you do this then you have no OS.
Click to expand...
Click to collapse
At this point i can't care less about the data in internal storage. I just need to flash the official MIUI ROM back, enable Camera2 API and live in peace. At this moment I'm halfway through downloading the ROM but I'm not sure if i can flash it due to the Mount Issue of internal storage. I plan on transferring it to my micro SD card and flashing it from there to System Image. Will it work? And Internal Storage formatting failed in case you didn't notice. Practically nothing worked except the file system change of "data". And even that didn't fix the unable to Mount issue.
Stransky said:
Why did you wipe internal storage? And what are you trying to mount. If you are trying to install a new rom all you need to wipe is cache, dalvik, system and data. Wiping internal storage removes everything from the internal SD card and if you do this then you have no OS.
Click to expand...
Click to collapse
Btw i gave more information on the first post.
Have you tried redwolf recovery? If it has the same error then flash your phone with fastboot rom
devcon69 said:
Have you tried redwolf recovery? If it has the same error then flash your phone with fastboot rom
Click to expand...
Click to collapse
Hevent tried redwolf recover. Just Fastboot flashed the ROM on intuition. And it Worked!!

Categories

Resources