Hi I'm aware that there are similar threads as to this issue but the problem i'm having is my computer being able to detect my usb storage. Since I cannot boot the phone up I can't turn on usb storage. How do I go about flashing the right software since I cannot mount the files to my sdcard through my computer?
As it stands right now:
1. SNS status = unlocked
2. I am able to boot in to clockwork recovery v3.0.2.4
3. I have tried a factory reset/wipe data from recovery
4. I am using windows vista, have downloaded the proper driver (i think)
I followed the nexusshacks guide so far
can anybody help?
Go into clockwork recovery, mounts and storage, mount USB.
Sent from my Nexus S using XDA App
vulcanrav3n said:
Go into clockwork recovery, mounts and storage, mount USB.
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Thanks for that! Now I know I can access my sd card. But now I just need help flashing the default software so I can access my sns again! This is my 1st android phone and would really appreciate a straight forward guide as to how to get out of my bad situation and back to a full system recovery. Once again here are my specs:
1. SNS I9020T Running Gingerbread 2.3.4
2. Phone status = unlocked in bootloader mode
3. I have wiped my SD card clean and tried a full factory/data reset through clockwork recovery
4. All I can do it boot to bootloader or boot to cw recovery
5. I need to flash the default software for this phone so I can start a new
Can anyone help me out? would be greatly appreciated
Do you want to reflash the stock ROM or do you want to try a custom ROM? I'd suggest you download a custom ROM, for example Cyanogenmod 7. If you do, it'll also have a compatible kernel and you'll be running your phone again in no time.
Otherwise, search the development section for a stock ROM that suits your phone (http://forum.xda-developers.com/forumdisplay.php?f=883)
Now, I'll assume you download CM7 but the same steps apply to the stock ROM.
1) Download the ROM, it'll be around 86mb in size, a zip file.
2) Copy it to your SDcard using CWM
3) In CWM, go to "install zip from sdcard"
4) "Choose zip from sdcard", obviously, select the ROM.zip file you just downloaded
5) Let it run the installer
6) Reboot
Should work, good luck, let me know if something goes wrong
Greetz
also if you haven't installed the su zip file yet do that. in clockwork recovery mount the usb, copy the su zip file to /sdcard, unmount, and install zip from sdcard.
not sure how you lost the stock 2.3.4 rom, but you can get the GRJ22 rom back onto your ns. read these threads if that's your cup of tea:
- http://forum.xda-developers.com/showthread.php?t=1060192&highlight=stock+2.3.4
- http://forum.xda-developers.com/showthread.php?t=1056062
if you're brave and step over to the dark side of custom roms, i can guarantee you won't turn back. i've tried several, but i usually oscillate back to nscollab. you'll want titanium backup to backup your apps and rom manager to make nandroid backups. also when you flash between different roms make sure you wipe data, cache, and dalvik cache to prevent foreclose issues.
Download one of the stock/ota roms from vulcan's post.
Extract the zip, and put boot.img in the same folder as fastboot.
<fastboot flash boot boot.img>
Reboot.
See if that works.
Related
so i was having alot of FC's with the 2.2 leak so i went back to 2.1 update 1 using Odin and i rooted with SuperOneClick.
everything went fine and i confirmed root with several root only apps, and also with Superoneclick and z4root.
but adb isnt working, and i can not get clockwork to load.
ADB
usbdebug is enabled
Mass Storage is abled
why is adb not working?
Clockwork
I did everything in the clockwork steps but the ONLY time clockwork actually works is if i reinstall clockwork with rom manager and then choose boot to recovery.
if i reboot the phone and choose reboot recovery via QuickBoot, or even via rom manager i am sent to the Samsung Recovery.
**addition per my 2nd post**
if/when i am able to get into clockwork i cant do anything because it keeps saying that it can not mount the sdcard and it also pretty much cant mount the phones file system.
i can not delete cache, or browse for a zip to flash on the sdcard or anything.
I also can not restore a backup via ROM Manager, it just keeps saying it cant delete anything, such as wiping cache, or formating partitions, etc.
Should i just reload stock 2.1 update 1 with odin again and root it again?
and what are the recovery mode boot steps
power Vol Down and home? or ??? that is the only method i have not tested yet.
oh yeah i forgot.
if/when i am able to get into clockwork i cant do anything because it keeps saying that it can not mount the sdcard and it also pretty much cant mount the phones file system.
i can not delete cache, or browse for a zip to flash on the sdcard or anything.
I also can not restore a backup via ROM Manager, it just keeps saying it cant delete anything, such as wiping cache, or formating partitions, etc.
its like my phone is rooted but only partially.
and yes i can move/delete/rename files on the phone /system/app etc etc
so i know i have root, but its like the nand is not unlocked or something like that.. i dont know.
I had the same problem in recovery with it not seeing the sd card. I was able to rectify this by removing and reinstalling the sd card while booted into recovery.
Sent from my voodoo froyo Mesmerize
If you have a rooted NS, go to ROM manager; if not, you have to have ABD on your computer (the latest version has adb and fastboot located in \platform-tools folder). http://forum.xda-developers.com/showthread.php?t=1396959
1. Download your favorite stock ROM from there: http://forum.xda-developers.com/showthread.php?t=1063664
2. Get "efghi" root.zip http://forum.xda-developers.com/attachment.php?attachmentid=821265&d=1324235293
3. (optional) Get your favorite kernel (I use Netarchy because it supports Voodoo)
Here are the procedures:
make sure your phone is fully charged to avoid ANY trouble
put all files into NS root directory and backup EVERYTHING in your internal storage
if your phone is rooted, go ahead to ROM manager and get the latest CWM recovery and install it, then go to recovery; if your phone is NOT rooted, read http://forum.xda-developers.com/showthread.php?t=1396959
now you're in CWM, MAKE SURE YOU DO NANDROID BACKUP!!! It's better to be safe than sorry
go to Mounts and Storage, format /data, /system, /cache, /boot
go to Install zip from SD card install the following by order: ROM, root.zip, kernel (if any)
run factory reset again
reboot
done and enjoy rooted phone
This is a consolidated install ROM + root guide and all credit goes to whoever provided the files and guides.
Mod, please put it sticky if you think it's useful.
I have the ATT One X and and installed a font that froze the phone so i went in CWM to restore but ive seemed to have erased everything in the sd card and don't know what to do. Can someone please help.
OptimusSteel34 said:
I have the ATT One X and and installed a font that froze the phone so i went in CWM to restore but ive seemed to have erased everything in the sd card and don't know what to do. Can someone please help.
Click to expand...
Click to collapse
Yea go to cnet.com and download Recuva. Connect ur phone to computer. Run Recuva enable deep scan and you stuff will be restored
Sent from my HTC One X using xda app-developers app
boot ur phone to bootloader and run ruu
Try going into Recovery, and wipe cache and wipe Dalvik, then reboot.
Not sure if this will work on the One X. But I've had occasional issues with the internal SD mounting on my HTC Flyer tablet, and wiping cache and Dalvik fix it every time.
Its worth a try, anyway.
If your problem is that you cannot mount the SDCard (as opposed to being able to mount it but it is empty) I ran into something similar during my 2nd ROM flashing experience. I got into this state by doing a factory wipe from the bootloader screen (as opposed to doing it from recovery). This wiped my entire SDCard partition, even the filesystem on it. So when I booted into Android, it failed to mount the SDCard altogether, saying that it was corrupted.
I had to re-format the SDCard from Windows in order to recover, by doing the following:
1. Boot into recovery (for me was TWRP 2.1.8.1)
2. Select "Mount"
3. Checkmark "Mount SDCard"
4. Connect device to PC via USB cable
5. Select "Mount USB Storage" in TWRP
6. On the PC, find the SDCard's drive in My Computer, right-click on it, and select "Format"
7. Proceed with formatting the SDCard ("Quick Format" is fine)
8. Safely remove the USB storage from Windows
9. Reboot the device
Upon rebooting, the SDCard mounted fine, although all data was erased.
Lesson learned: do factory reset from recovery, not the bootloader screen
denversc said:
If your problem is that you cannot mount the SDCard (as opposed to being able to mount it but it is empty) I ran into something similar during my 2nd ROM flashing experience. I got into this state by doing a factory wipe from the bootloader screen (as opposed to doing it from recovery). This wiped my entire SDCard partition, even the filesystem on it. So when I booted into Android, it failed to mount the SDCard altogether, saying that it was corrupted.
I had to re-format the SDCard from Windows in order to recover, by doing the following:
1. Boot into recovery (for me was TWRP 2.1.8.1)
2. Select "Mount"
3. Checkmark "Mount SDCard"
4. Connect device to PC via USB cable
5. Select "Mount USB Storage" in TWRP
6. On the PC, find the SDCard's drive in My Computer, right-click on it, and select "Format"
7. Proceed with formatting the SDCard ("Quick Format" is fine)
8. Safely remove the USB storage from Windows
9. Reboot the device
Upon rebooting, the SDCard mounted fine, although all data was erased.
Lesson learned: do factory reset from recovery, not the bootloader screen
Click to expand...
Click to collapse
I'm having the same issue, but I can't check the SD card box in TWRP?
Any idea what I can do to fix this?
I had the same issue. however if you USB to PC and format sd drive, twrp will sometimes find. Also notice that when I did that my rom zip, kernal files to flash were in the twrp file in recovery.
Make sure you have everything backed up.
I guess I should add that twrp wouldn't mount however USB to PC still found it.
Sent from my HTC One X using xda app-developers app
Dandan8118 said:
I'm having the same issue, but I can't check the SD card box in TWRP?
Any idea what I can do to fix this?
Click to expand...
Click to collapse
Ditto, exact same problem. Any solutions?
I've been having the same problems. My phone has been in a soft brick for 1 week and a half now and nothing seems to work.
Suggestions I've been given (None worked for me):
-Hold power button for 10 seconds for a force reboot
-Flash stock recovery, go in Hboot, Clear Storage, Flash TWRP, wipe cache.
-Connect an SD card reader to your phone with the rom in it.
-Partition SD from TWRP
-Relock phone and flash stock RUU (My phone is on 1.94 firmware and there is no equivalent RUU. I tried all of them and they all say I have the wrong ROM)
The only suggestion I have been given that would work is to buy a new phone... But I am not that desperate yet.
Maybe one will work for you
Dandan8118 said:
I can't check the SD card box in TWRP? Any idea what I can do to fix this?
Click to expand...
Click to collapse
Now that I think of it, it is probably not necessary to checkmark "Mount SDCard". The reason is that doing so only mounts (or unmounts) it for access within TWRP and should not affect the USB access. So if you cannot checkmark it, try just ignoring that step.
denversc said:
Now that I think of it, it is probably not necessary to checkmark "Mount SDCard". The reason is that doing so only mounts (or unmounts) it for access within TWRP and should not affect the USB access. So if you cannot checkmark it, try just ignoring that step.
Click to expand...
Click to collapse
Umm huge thanks, button not enough. Thought I'd have to start from scratch again! Will keep in mind in case of future issues.
Sent from my HTC One X using Tapatalk 2
So, wait, I'm having the same issue. How did you get your phone to a bootable condition without erasing the SD card?
wormyrocks said:
So, wait, I'm having the same issue. How did you get your phone to a bootable condition without erasing the SD card?
Click to expand...
Click to collapse
I didn't. I had to wipe the SDCard by formatting it. More correctly, the factory reset that I performed from hboot wiped the SDCard, so it was already wiped... I just had to format it. Lesson learned: only perform factory reset from recovery (TWRP or CWM), as it does not touch the SDCard.
denversc said:
I didn't. I had to wipe the SDCard by formatting it. More correctly, the factory reset that I performed from hboot wiped the SDCard, so it was already wiped... I just had to format it. Lesson learned: only perform factory reset from recovery (TWRP or CWM), as it does not touch the SDCard.
Click to expand...
Click to collapse
Ah, guess mine is gone then. Damn it.
wormyrocks said:
Ah, guess mine is gone then. Damn it.
Click to expand...
Click to collapse
My phone is now booting, but it still can't mount or recognize the SD card. Do I have to reflash again or is there some setting I can use to get it to mount?
I did this and this is what Xsmagical and I did to fix it.
Take the stock android recovery from a ruu or stock Rom. (I used the one from 1.85 ruu but it doesn't matter.)
Fastboot flash the stock recovery to your phone and then reboot into bootloader where you originally wiped.
Factory reset from hboot and then Fastboot flash twrp again, mount sd should be available now. Mount sd, copy whatever Rom onto sd card and flash from there.
Freaked me out too man
Sent from my JellyBean
ChongoDroid said:
I did this and this is what Xsmagical and I did to fix it.
Take the stock android recovery from a ruu or stock Rom. (I used the one from 1.85 ruu but it doesn't matter.)
Fastboot flash the stock recovery to your phone and then reboot into bootloader where you originally wiped.
Factory reset from hboot and then Fastboot flash twrp again, mount sd should be available now. Mount sd, copy whatever Rom onto sd card and flash from there.
Freaked me out too man
Sent from my JellyBean
Click to expand...
Click to collapse
How does one extract the stock recovery from a ruu or stock ROM? (or, would it be possible for you to send me the file?)
and does flashing the stock recovery require me to relock the bootloader?
thx u dolan
Gracias
ChongoDroid said:
I did this and this is what Xsmagical and I did to fix it.
Take the stock android recovery from a ruu or stock Rom. (I used the one from 1.85 ruu but it doesn't matter.)
Fastboot flash the stock recovery to your phone and then reboot into bootloader where you originally wiped.
Factory reset from hboot and then Fastboot flash twrp again, mount sd should be available now. Mount sd, copy whatever Rom onto sd card and flash from there.
Freaked me out too man
Sent from my JellyBean
Click to expand...
Click to collapse
muchas gracias!!
denversc said:
if your problem is that you cannot mount the sdcard (as opposed to being able to mount it but it is empty) i ran into something similar during my 2nd rom flashing experience. I got into this state by doing a factory wipe from the bootloader screen (as opposed to doing it from recovery). This wiped my entire sdcard partition, even the filesystem on it. So when i booted into android, it failed to mount the sdcard altogether, saying that it was corrupted.
I had to re-format the sdcard from windows in order to recover, by doing the following:
1. Boot into recovery (for me was twrp 2.1.8.1)
2. Select "mount"
3. Checkmark "mount sdcard"
4. Connect device to pc via usb cable
5. Select "mount usb storage" in twrp
6. On the pc, find the sdcard's drive in my computer, right-click on it, and select "format"
7. Proceed with formatting the sdcard ("quick format" is fine)
8. Safely remove the usb storage from windows
9. Reboot the device
upon rebooting, the sdcard mounted fine, although all data was erased.
Lesson learned: Do factory reset from recovery, not the bootloader screen
Click to expand...
Click to collapse
i love you sir saved my ass
I'm having these troubles for sure.
Rooted, tried loading CM10, got stuck on the looping CM screen.
Originally Posted by denversc
if your problem is that you cannot mount the sdcard (as opposed to being able to mount it but it is empty) i ran into something similar during my 2nd rom flashing experience. I got into this state by doing a factory wipe from the bootloader screen (as opposed to doing it from recovery). This wiped my entire sdcard partition, even the filesystem on it. So when i booted into android, it failed to mount the sdcard altogether, saying that it was corrupted.
I had to re-format the sdcard from windows in order to recover, by doing the following:
1. Boot into recovery (for me was twrp 2.1.8.1)
2. Select "mount"
3. Checkmark "mount sdcard"
4. Connect device to pc via usb cable
5. Select "mount usb storage" in twrp
6. On the pc, find the sdcard's drive in my computer, right-click on it, and select "format"
7. Proceed with formatting the sdcard ("quick format" is fine)
8. Safely remove the usb storage from windows
9. Reboot the device
I followed all the steps, but I'm stuck in TWRP recovery, I can't boot anything past it and I'm lost as to what to do. =\
I'll try to explain myself before people jump at me. I saw another thread with same question but seems like people misunderstood the question.
I am not talking about "lack" of memory, or not having another 32/64gb availble, etc.
I'll give you an example to what I am referring to:
Recently I decided that my rooted S2 needs a little 'refreshing', meaning - not just a wipe, but a complete format, to start from scratch. So I formatted everything, including /system and /emmc partitions. I then re-booted to recovery and had my rom file on the SD card so i was able to get a clean install.
Now, the question is - say I am at a stage when I need to 'refresh' the phone and wipe everything out. How do I then access the rom file for new install if I don't have external SD Card?
Thanks.
with adb.
What I do when I want a clean start, is I will load the rom/gapps/kernel to my phone, go to recovery, factory reset (with system if you choose), then flash all the things you want, then go back and wipe internal storage after. Then you're left with a fresh version of the ROM you want to install and no files whatsoever in the memory. Hope that helps.
I had the same suspicions a while ago. Basically with the nexus 5, even without an external sd, you can still do a full wipe of everything other than your storage. There is a path on the internal storage which essentially acts like an sd card, and when doing wipes in recovery it will not be wiped, unless of course you specifically choose to format /sdcard or all of /data. Read here for more info. I found that explanation very helpful.
So to answer your question, no, its not an issue.
Zepius said:
with adb.
Click to expand...
Click to collapse
This.
I have the same issue, with my OCD, that I always need a complete wipe of EVERYTHING.
One option, I recommend if that's not an option at the time of flash, is to simply "reset" in settings. It clears out the whole SD, which is something I usually want to do when I want a FULL flash
justinisloco said:
simply "reset" in settings. It clears out the whole SD, which is something I usually want to do when I want a FULL flash
Click to expand...
Click to collapse
Reset in settings just uses recovery unless something changed I haven't realised?
It should be down to what recovery you have (stock vs custom) as to whether a reset (regardless of how you initiate it) wipes /sdcard or not... or are you saying that's changed now?
Sent from my Nexus 5 using Tapatalk
Zepius said:
with adb.
Click to expand...
Click to collapse
Pardon my ignorance, but what is adb?
spitefulrain said:
What I do when I want a clean start, is I will load the rom/gapps/kernel to my phone, go to recovery, factory reset (with system if you choose), then flash all the things you want, then go back and wipe internal storage after. Then you're left with a fresh version of the ROM you want to install and no files whatsoever in the memory. Hope that helps.
Click to expand...
Click to collapse
Problem with factory reset, as far as I know, is that it does not wipe out everything. When I do factory reset in my S2, I still see old folders (even though empty) from before the wipe. That's why I like to format everything clean. When I mean clean, I don't want to see any old folder in there
justinisloco said:
This.
I have the same issue, with my OCD, that I always need a complete wipe of EVERYTHING.
One option, I recommend if that's not an option at the time of flash, is to simply "reset" in settings. It clears out the whole SD, which is something I usually want to do when I want a FULL flash
Click to expand...
Click to collapse
OK, but if you do that, where do you 'keep' the rom file and how do you flash it?
sbi1 said:
Pardon my ignorance, but what is adb?
OK, but if you do that, where do you 'keep' the rom file and how do you flash it?
Click to expand...
Click to collapse
Android Debug Bridge. It allows you to communicate with your phone via command line tools.
You would keep the rom somewhere on your internal storage (data/media) just like you would on any other phone. Then after wiping, you would simply choose to install zip from sdcard and your rom, along with any other flashable zip on your sdcard will be available to install. Basically when you do a typical full wipe from a custom recovery, the contents of your internal storage/sdcard are not wiped.
Chromium said:
Android Debug Bridge. It allows you to communicate with your phone via command line tools.
You would keep the rom somewhere on your internal storage (data/media) just like you would on any other phone. Then after wiping, you would simply choose to install zip from sdcard and your rom, along with any other flashable zip on your sdcard will be available to install. Basically when you do a typical full wipe from a custom recovery, the contents of your internal storage/sdcard are not wiped.
Click to expand...
Click to collapse
OK, this seems a bit too complicated for me
sbi1 said:
Problem with factory reset, as far as I know, is that it does not wipe out everything. When I do factory reset in my S2, I still see old folders (even though empty) from before the wipe. That's why I like to format everything clean. When I mean clean, I don't want to see any old folder in there
Click to expand...
Click to collapse
Which is why I said wipe your internal storage after
Sent from my Nexus 5 using Tapatalk
rootSU said:
Reset in settings just uses recovery unless something changed I haven't realised?
It should be down to what recovery you have (stock vs custom) as to whether a reset (regardless of how you initiate it) wipes /sdcard or not... or are you saying that's changed now?
Click to expand...
Click to collapse
Lately, I've noticed that it wipes the Data as well. Unless It was only on CWM that it happened? I had installed CM11 with CWM and wanted to reset my SD. I used the reset feature and it erased everything, except the OS
sbi1 said:
OK, but if you do that, where do you 'keep' the rom file and how do you flash it?
Click to expand...
Click to collapse
I would flash the Rom first, then do the factory reset, the only downside is the nandroid you made may be lost, unless you uploaded it to GDrive or something.
---------------------------------------
Using this guide, you will be able to learn about ADB
http://forum.xda-developers.com/goo...ide-nexus-5-how-to-unlock-bootloader-t2507905
In Step 3-
Chromium said:
3. Rooting
Now that your phone has an unlocked bootloader and a custom recovery installed you have a two options to gain root (Pick one or the other. You don't need to do both)
Option A) Flash SuperSU binaries which will give you root with the stock rom
Confirm that you have downloaded the SuperSU zip from the downloads section above and that it is located in the platform-tools folder inside of the android-sdk-windows folder on your desktop.
Turn the phone off then boot into the bootloader. (volume down + power). Once in the bootloader use the volume rockers to scroll onto Recovery Mode, then press power to select it. This should bring you into your newly installed custom recovery. Leave the phone at the home page of the custom recovery.
Open a command prompt window and run the following commands:
Code:
cd Desktop/android-sdk-windows/platform-tools
Code:
adb push UPDATE-SuperSU-v[COLOR="Red"]X[/COLOR].[COLOR="red"]XX[/COLOR].zip /sdcard/
This will copy the SuperSU zip onto your phone. Once the command has completed continue.
Instructions for TeamWin Recovery Project (TWRP):
Install > browse to SuperSU zip and select the it
Swipe to confirm the installation. Then reboot.
Click to expand...
Click to collapse
It shows how to "Push" a file to your phone. That is the best way, IMO. But instead of SuperSU, just "adb push ROM.zip /sdcard/"
sbi1 said:
OK, this seems a bit too complicated for me
Click to expand...
Click to collapse
Flashing the rom? Its honestly not any more complicated than flashing a rom for any other device. You download the rom to your internal storage. Boot into recovery. Then do a full wipe:
TWRP Full Wipe:
- Wipe
- Advanced wipe
- Select all, except internal storage
- Swipe to wipe
CWM Full Wipe:
- wipe data/factory reset
- wipe cache partition
- advanced > wipe dalvik cache
- mounts and storage > format /system
Finally you can then flash the rom (and gapps).
sbi1 said:
OK, this seems a bit too complicated for me
Click to expand...
Click to collapse
It's not really and if you're rooting and flashing any device, adb is essential knowledge.
Once you've installed adb (millions of guides on the net) you just boot into recovery then connect to pc via usb.
adb commands are run from cmd prompt.
For example...
adb push c:\users\sbi1\desktop\rom.zip /sdcard
Would push the file on your windows desktop called rom.zip to your sdcard.
You can even sideload from recovery.
Or better yet,.just don't wipe /sdcard. It has no benefit other than looking tidy anyway
Sent from my Nexus 5 using Tapatalk
---------- Post added at 10:20 PM ---------- Previous post was at 10:17 PM ----------
Ok too many cooks... i'm bowing out
Sent from my Nexus 5 using Tapatalk
OK, thank you all. So I should have no worries then. Was just wondering how this is done without external SD and it seems to be working fine. Thanks again!
Chromium said:
CWM Full Wipe:
- wipe data/factory reset
- wipe cache partition
- advanced > wipe dalvik cache
- mounts and storage > format /system
Click to expand...
Click to collapse
Parting note
Philz Touch Full Wipe:
- wipe data/factory reset > clean to install new ROM
(Does all the steps mentioned above at once)
Sent from my Nexus 5 using Tapatalk
Hi there,
I am having Lenovo a6000. I rooted it via King root. Few days back i installed chainfire3d on it. it asked for reboot so i just click yes. . now after reboot my phone went in boot loop. i have twrp recovery installed so i wipe dalvik, cache and system. Also i did factory reset. so i don't have root access and also i don't have my backup of android. So what should i do? I think installing stock ROM will do but is there any other way out of it?
[email protected] said:
Hi there,
I am having Lenovo a6000. I rooted it via King root. Few days back i installed chainfire3d on it. it asked for reboot so i just click yes. . now after reboot my phone went in boot loop. i have twrp recovery installed so i wipe dalvik, cache and system. Also i did factory reset. so i don't have root access and also i don't have my backup of android. So what should i do? I think installing stock ROM will do but is there any other way out of it?
Click to expand...
Click to collapse
Okay. If you have working TWRP installed the chances of fixing your phone are 98%.
Your system parition is invalid or corrupted. The only way is intalling stock rom and Gapps if you don't have a backup. If you have a backup just restore it.
Here are the steps:
1. Download these files on your computer:
https://userscloud.com/0mz53p05uoy1 - Micro Gapps
https://userscloud.com/vn2vevhp2vd0 - Stock rom
2. Put the files on your phone. Use an USB cable or a micro SD adapter for that.
If you need help with this just ask.
You can put them anywhere (SD card, internal memory), just remember where you put the files.
3. Enter your TWRP recovery.
Go to Wipe > Advenced Wipe
Now select Dalvik Cache, Cache, System and Data.
Swipe to wipe.
4. Go to main menu of recovery.
Select install.
Now find your Stock rom file and install it.
Select install again.
Now find the Gapps file and install that.
You are done. Set up your phone, install apps you need and then
make sure to make a NANDROID BACKUP!
Anyways you can bookmark this and use it to fix your phone any time.