Hey guys, I accidentley wiped my sdcard when I reunlocked the bootloader. I have a custom rom that was on previously but its stock in a loop. I tried to push another room using adb sideload but when i do I got * Cannot read 'sideload'. I dont know any other way i can connect the phone to computer to flash another rom. please help.
Thanks
Update:
I can push the rom but i get this error when trying to install "E: unable to mount 'data' "
p1mpin said:
Hey guys, I accidentley wiped my sdcard when I reunlocked the bootloader. I have a custom rom that was on previously but its stock in a loop. I tried to push another room using adb sideload but when i do I got * Cannot read 'sideload'. I dont know any other way i can connect the phone to computer to flash another rom. please help.
Thanks
Update:
I can push the rom but i get this error when trying to install "E: unable to mount 'data' "
Click to expand...
Click to collapse
when I had that problem, I ended up wiping everything and then rebooted to recovery and it finally worked.
p1mpin said:
Hey guys, I accidentley wiped my sdcard when I reunlocked the bootloader. I have a custom rom that was on previously but its stock in a loop. I tried to push another room using adb sideload but when i do I got * Cannot read 'sideload'. I dont know any other way i can connect the phone to computer to flash another rom. please help.
Thanks
Update:
I can push the rom but i get this error when trying to install "E: unable to mount 'data' "
Click to expand...
Click to collapse
Try what @JudgeFutta said. The error's most likely due to corrupt partitions.
p1mpin said:
Hey guys, I accidentley wiped my sdcard when I reunlocked the bootloader. I have a custom rom that was on previously but its stock in a loop. I tried to push another room using adb sideload but when i do I got * Cannot read 'sideload'. I dont know any other way i can connect the phone to computer to flash another rom. please help.
Thanks
Update:
I can push the rom but i get this error when trying to install "E: unable to mount 'data' "
Click to expand...
Click to collapse
Try to get in Recovery and from mount option mount system and then try it will work or try this
Make Sure HTC Drivers are installed and ADB is already working
1. Reboot into TWRP
2. in TWRP, Hit andvanced and find Sideload
3. Swipe to start Sideload
4. Open a CMD Prompt window and Change Directories to where your adb.exe is
5. type adb devices and it should show your device conntected and say sideload
6. Your ZIP file should already be in your adb folder
7. You are now ready to push the zip.....
8. type adb sideload nameofzip.zip
9. Wait until it says 100% and reboot back into recovery to flash the ROM
10. If hitting power does not make the screen come one, type adb reboot recovery
11. if adb reboot recovery does not work, hold power and volume down until it reboots to fastboot then go to recovery
ADB Push from Recovery - If Sideload Fails For You
adb push rom.zip /data/media/0/
Be sure u r in Recovery when using ADB Push command.
Thanks guys. What i found out is that i had a corrupt partition so I formated the sdcard since there was nothing on it and it worked. I pushed the rom through adb but i didnt do the sideload method. I have liquid smooth on it now but I want a sense rom. any suggestions for a good one?
p1mpin said:
Thanks guys. What i found out is that i had a corrupt partition so I formated the sdcard since there was nothing on it and it worked. I pushed the rom through adb but i didnt do the sideload method. I have liquid smooth on it now but I want a sense rom. any suggestions for a good one?
Click to expand...
Click to collapse
Why not try the best Sense rom available. http://forum.xda-developers.com/showthread.php?t=2502430
Gd luck
User420s said:
Why not try the best Sense rom available. http://forum.xda-developers.com/showthread.php?t=2502430
Gd luck
Click to expand...
Click to collapse
@p1mpin Can vouch for that ROM, it's amazing. Might also want to flash Kangaroo Kernel while you're at it. It'll give you great battery life.
Related
Hi everyone.
I unlocked the bootloader and rooted a Telus HTC One. But the latest flash went wrong and I went into bootloop. Somehow, I seem to have gotten myself into a situation where there's no ROM installed. I can still get into Bootloader and Recovery. When I try to start the phone, it's stuck at "HTC Quietly Brilliant" screen.
I've tried factory resetting, wiping everything, relocking the bootloader and loading the Factory RUU Zip using the All-In-One tool kit by Hasoon, and sideloading a ROM. Nothing seems to work. I also managed to push a ROM to the phone using the adb push command. When I try to install it using TWRP, I get an error msg "Unable to open zip file." It failed using CWM recovery as well.
When I plug the phone into a computer, it recognizes something is plugged in. But I can't open the drive at all. I get error msgs when I try to mount sdcard, system, data, anything. Things don't seem to be mounting/recognized at all. HTC sync and drivers are installed.
Experts, what else can I try?
Try downloading a Telus clean nandroid backup. Then go back into recovery (depends of what nandroid you get, make sure you have the right recovery, so if you download a CWM nandroid use CWM).
G-Bus said:
Try downloading a Telus clean nandroid backup. Then go back into recovery (depends of what nandroid you get, make sure you have the right recovery, so if you download a CWM nandroid use CWM).
Click to expand...
Click to collapse
Thanks for the suggestion. Not having any luck finding a Telus nandroid. Would it make matters worse if I try to restore from a non-Telus nandroid? My phone can't mount the /sdcard right now. Suppose I'll have to adb push it to the phone again?
runlsd said:
Thanks for the suggestion. Not having any luck finding a Telus nandroid. Would it make matters worse if I try to restore from a non-Telus nandroid? My phone can't mount the /sdcard right now. Suppose I'll have to adb push it to the phone again?
Click to expand...
Click to collapse
You don't mount the sdcard in HTC One you mount the data partition.
Also what happens if you sideload a ROM?
PHP:
adb sideload <ROM>
Have you tried erasing cache after installing a ROM if successful?
Riyal said:
You don't mount the sdcard in HTC One you mount the data partition.
Also what happens if you sideload a ROM?
PHP:
adb sideload <ROM>
Have you tried erasing cache after installing a ROM if successful?
Click to expand...
Click to collapse
When I sideloaded, It said
Can't Open /sdcard/rom.zip" (bad).
Installation aborted
Sideloading now gives me this error
failed to open driver control: No such file or directory
Restarting adbd
hmm, okay. I thought since recovery says "Install zip from sdcard" i thought /sdcard needed to be mounted. /data is mounted at the moment. No connectivity between computer and the phone unless through the All-in-one kit.
Riyal said:
Have you tried erasing cache after installing a ROM if successful?
Click to expand...
Click to collapse
And I haven't had successfully installed a ROM since I bricked the phone.
Install a custom ROM and kernel on your USB from the computer, mount the USB in Twrp using the otg cable. Flash ROM, if it doesnt boot, flash the kernel.
Flashing the kernel fixed it for me.
Another way is to use an adb pusher app and transfer thevfiles to your SD card.
Sent from my Nexus 10 using XDA Premium HD app
Thanks everyone. Somehow it sideloaded when I tried for the twentieth time.
Hi everybody,
My HTC One is no more use full, i made a mistake i format every thing because i would like to update my rom and now i can only boot in recovery or bootloader so no adb command works.
I know you can install a rom thru fastboot command but it's only with file *.img (eg: system.img)
Does anyone know where i cant find this kind of file or can i make one with systel folder in any rom in zip files (eg:Android_Revolution_HD-One_10.3.zip)
Thank's for your help. :good:
Please sorry for my poor english (I'm french)
Regards
australfr said:
Hi everybody,
My HTC One is no more use full, i made a mistake i format every thing because i would like to update my rom and now i can only boot in recovery or bootloader so no adb command works.
I know you can install a rom thru fastboot command but it's only with file *.img (eg: system.img)
Does anyone know where i cant find this kind of file or can i make one with systel folder in any rom in zip files (eg:Android_Revolution_HD-One_10.3.zip)
Thank's for your help. :good:
Please sorry for my poor english (I'm french)
Regards
Click to expand...
Click to collapse
It's not bricked.
Get this tool http://forum.xda-developers.com/showthread.php?t=2183942
install htc drivers
upload rom.zip VIA adb sideload. Make sure file path is simple. e.g C:\rom.zip. This will start the installation after uploaded.
mih3y said:
It's not bricked.
Get this tool http://forum.xda-developers.com/showthread.php?t=2183942
install htc drivers
upload rom.zip VIA adb sideload. Make sure file path is simple. e.g C:\rom.zip. This will start the installation after uploaded.
Click to expand...
Click to collapse
Hi,
Thank's for your answer.
When i do that, the process start and stop at 1% with the following message :
* failes to write data 'protocol fault (no status)' *
The command line i used is : adb sideload rom.zip
The One is unloacked and was in recovery with TWRP in which i selected adb sideload.
Regards
Go into recovery and use the command:
Code:
adb push name_of_rom.zip /sdcard/0
or
Code:
adb push name_of_rom.zip data/media
and flash the rom
Guich said:
Go into recovery and use the command:
Code:
adb push name_of_rom.zip /sdcard/0
or
Code:
adb push name_of_rom.zip data/media
and flash the rom
Click to expand...
Click to collapse
Thank's for your help.
Both commands return the following message : protocol failure
australfr said:
Thank's for your help.
Both commands return the following message : protocol failure
Click to expand...
Click to collapse
You wiped your internal sd.. sd isn't formatted, you can't put anything into
Just in recovery make sd formatting.. and then adb sideload procedure
tash2013 said:
You wiped your internal sd.. sd isn't formatted, you can't put anything into
Just in recovery make sd formatting.. and then adb sideload procedure
Click to expand...
Click to collapse
Ok it's work.
My One is back thank you again :good:
Regards
Thank's
I will thanks all of you three :
- mih3y
- Guich
- tash2013
For your help to bring my HTC one Back
best Regards
Eric
tash2013 said:
You wiped your internal sd.. sd isn't formatted, you can't put anything into
Just in recovery make sd formatting.. and then adb sideload procedure
Click to expand...
Click to collapse
It's not formatting, formatting just deletes files system table, partitions are still there, they only need to be mounted.
So before pushing or sideloading the easiest way is in recovery go to Mounts and Storage options and mount data partition (this will also automatically mount sdcard partition (since it is contained on data partition).
Hey guys,
Today I attempted to root my HTC One. I successfully unlocked it and successfully flashed twrp 2.5 onto my phone. Without creating a backup and after flashing superuser and arhd 11.0 my phone would only boot into bootloader. Then I found I had trouble going back into recovery. I tried reflashing twrp and it worked and led me back into recovery. I was unable to find any of the ROMs I put into the internal memory and I get an error that says I am unable to mount data. I've tried flashing cwm recovery, which only lead to booting into bootloader, and then back to twrp which worked at first, but now I can't get either to work. I've been at this for hours. Hope any of you guys could help me out. Thanks in advance!
Also, I think my problem began by trying to flash arhd 11.0 from stock without doing a full wipe.
Update: Was able to get twrp to work again by clearing cache, but still unable to mount data.
This is an error i see inside twrp.
E : Unable to mount '/data'
E : Unable to recreate /data/media folder.
Updating partition details...
E : Unable to mount '/cache'
E : Unable to mount '/data'
E : Unable to mount internal storage.
E : Unable to mount /data/media during GUI startup
E : Unable to mount '/cache'
E: TWFunc : : Copy_Log -- Can't open destination
etc...
Click to expand...
Click to collapse
Update: SOLVED. Tried flashing Viper Rom and it worked great.
I believe that you install ARHD 11 from a 4.1 based rom, right? If that's the case, moving from 4.1 to 4.2 will mess up your data structure a bit. Because you have flashed arhd 11, all the rom files you had put earlier on 4.1 will be at other folder. My advice is you boot into twrp, open adb sideload (advance menu). On your computer use "adb sideload rom.zip" (rom.zip is the name of the rom you wanna flash). After it loaded the rom to the sd card, reboot to bootloader and you should see a file named sideloaded.zip. flash it. After finish, clear cache and reboot system.
or you can search in media/0
hope it helps
ryryzz said:
I believe that you install ARHD 11 from a 4.1 based rom, right? If that's the case, moving from 4.1 to 4.2 will mess up your data structure a bit. Because you have flashed arhd 11, all the rom files you had put earlier on 4.1 will be at other folder. My advice is you boot into twrp, open adb sideload (advance menu). On your computer use "adb sideload rom.zip" (rom.zip is the name of the rom you wanna flash). After it loaded the rom to the sd card, reboot to bootloader and you should see a file named sideloaded.zip. flash it. After finish, clear cache and reboot system.
or you can search in media/0
hope it helps
Click to expand...
Click to collapse
So I should sideload and flash a 4.1 based rom or a 4.2?
I've tried sideloading ARHD 11 and it brings me into the same bootloader loop. Could you send me a link to a ROM that may work?
Here's the steps I am taking if it helps;
1. fastboot erase cache
2. fastboot flash recovery twrp.img
3. go into recovery
4. adb sideload arhd11
5. reboot into recovery
6. flash sideload
7. reboot system
8. gives me a message saying my phone is not rooted would I like to install SuperSU now?
9. regardless of if i put 'do not install' or 'swipe to install' phone reboots into bootloader and I start over with the same problem
Click to expand...
Click to collapse
zasuncion said:
So I should sideload and flash a 4.1 based rom or a 4.2?
I've tried sideloading ARHD 11 and it brings me into the same bootloader loop. Could you send me a link to a ROM that may work?
Here's the steps I am taking if it helps;
Click to expand...
Click to collapse
Can you access recovery?
If yes, adb push name_of_rom.zip /sdcard/
rom will now be on your sdcard after the transfer. install it.
all roms using aroma installer crash sometimes, just keep trying.
edit: IF you can't find it, select install zip from sideload in recovery and command
adb sideload name_of_rom.zip
after the transfer it will begin to install automatically - you shouldn't need to reboot after a sideload.
redbull123 said:
Can you access recovery?
If yes, adb push name_of_rom.zip /sdcard/
rom will now be on your sdcard after the transfer. install it.
all roms using aroma installer crash sometimes, just keep trying.
Click to expand...
Click to collapse
Yes, I can access recovery. Just tried this. After flashing ARHD11 again I am still rebooting into bootloader.
Maybe it's just the ROM itself that I'm having trouble with? Could anyone direct me to one that will work for sure in my case?
Also after every flash, when I choose to reboot, twrp gives me a message saying my phone is not rooted and if I should install SuperSU. Should I say yes or not install? or is there a problem with flashing the ROM?
zasuncion said:
Yes, I can access recovery. Just tried this. After flashing ARHD11 again I am still rebooting into bootloader.
Maybe it's just the ROM itself that I'm having trouble with? Could anyone direct me to one that will work for sure in my case?
Also after every flash, when I choose to reboot, twrp gives me a message saying my phone is not rooted and if I should install SuperSU. Should I say yes or not install? or is there a problem with flashing the ROM?
Click to expand...
Click to collapse
So ARHD goes through and installs (as in gets to 100% in aroma) then reboots to bootloader?
Sent from my HTC One using xda premium
redbull123 said:
So ARHD goes through and installs (as in gets to 100% in aroma) then reboots to bootloader?
Sent from my HTC One using xda premium
Click to expand...
Click to collapse
Yes. And the only way to get back into recovery from there is to reflash. I also can't use cwm, I can only use twrp. If that means anything.
I'm worried.
I went to install a new rom, so formatted my sd card first, without realising it I've wiped my backups and also the rom I was going to flash. I can still get into twrp but I have no idea how to get a rom across to my handset.
ive tried fastboot update but i just get "waiting for device"
Someone please help
gsusx said:
I'm worried.
I went to install a new rom, so formatted my sd card first, without realising it I've wiped my backups and also the rom I was going to flash. I can still get into twrp but I have no idea how to get a rom across to my handset.
ive tried fastboot update but i just get "waiting for device"
Someone please help
Click to expand...
Click to collapse
Triy adb sideload, links for how to http://www.google.nl/url?sa=t&rct=j...v4l4QSOgEwWvPXvTXm_X0Kw&bvm=bv.48705608,d.ZWU.
1. Connect your phone make sure it's actually connected and you have the drivers.
If you don't have the drivers check this out: http://forum.xda-developers.com/showthread.php?t=1983470
2. Rename the ROM you want to flash to something basic, I used Find5.zip
3. Open CMD (command prompt), navigate it to the folder you placed the ROM
(e.g. code: cd C:\Users\Jelle\Downloads\ will navigate to my Downloads folder)
4. Boot to recovery on your phone and enable the ADB sideload function.
5. in CMD type adb sideload Find5.zip
6. Let TWRP or CWM flash the zip and prompt for reboot.
7. Reboot and be happy, your phone is fixed!
gee2012 said:
Triy adb sideload, links for how to http://www.google.nl/url?sa=t&rct=j...v4l4QSOgEwWvPXvTXm_X0Kw&bvm=bv.48705608,d.ZWU.
1. Connect your phone make sure it's actually connected and you have the drivers.
If you don't have the drivers check this out: http://forum.xda-developers.com/showthread.php?t=1983470
2. Rename the ROM you want to flash to something basic, I used Find5.zip
3. Open CMD (command prompt), navigate it to the folder you placed the ROM
(e.g. code: cd C:\Users\Jelle\Downloads\ will navigate to my Downloads folder)
4. Boot to recovery on your phone and enable the ADB sideload function.
5. in CMD type adb sideload Find5.zip
6. Let TWRP or CWM flash the zip and prompt for reboot.
7. Reboot and be happy, your phone is fixed!
Click to expand...
Click to collapse
you're a gentleman
im downloading the drivers now
gsusx said:
you're a gentleman
im downloading the drivers now
Click to expand...
Click to collapse
its installing now, thank you so much !!!!
Hi everybody, i have htc m7, sd card is empy, twrp working but doesn't work while i try to mount something. I can't use adb push And OTG cable works but on twrp the OTG0 folder seems empy but on pc it doesn't..i can't install ruu because s-on and i can put to s-off only if the phone doesn't go to bootloop.:silly:
-twrp working
-no rom to flash
-unable to mount /data /sdcard
-OTG usb empy
-no ruu
-S-on
-unlocked
Thanks to you , XDA, and for all you guys
dexploit said:
Hi everybody, i have htc m7, sd card is empy, twrp working but doesn't work while i try to mount something. I can't use adb push And OTG cable works but on twrp the OTG0 folder seems empy but on pc it doesn't..i can't install ruu because s-on and i can put to s-off only if the phone doesn't go to bootloop.:silly:
-twrp working
-no rom to flash
-unable to mount /data /sdcard
-OTG usb empy
-no ruu
-S-on
-unlocked
Thanks to you , XDA, and for all you guys
Click to expand...
Click to collapse
What version of Twrp recovery are you using?try to flash the Twrp either 2.3.3 or later but not the new version. Then try adb sideload
Sent from my HTC One using Tapatalk
dexploit said:
Hi everybody, i have htc m7, sd card is empy, twrp working but doesn't work while i try to mount something. I can't use adb push And OTG cable works but on twrp the OTG0 folder seems empy but on pc it doesn't..i can't install ruu because s-on and i can put to s-off only if the phone doesn't go to bootloop.:silly:
-twrp working
-no rom to flash
-unable to mount /data /sdcard
-OTG usb empy
-no ruu
-S-on
-unlocked
Thanks to you , XDA, and for all you guys
Click to expand...
Click to collapse
I'm guessing you have HTC drivers installed.
Connect USB to windows Boot into Recovery, selecr Advanced, choose Sideload, then swipe to start sideload
then with adb use command 'adb devices'
Does your phone up? it'll have a name beginning with sideload
If it doesn't, possible driver issue. What OS are you using?
dexploit said:
Hi everybody, i have htc m7, sd card is empy, twrp working but doesn't work while i try to mount something. I can't use adb push And OTG cable works but on twrp the OTG0 folder seems empy but on pc it doesn't..i can't install ruu because s-on and i can put to s-off only if the phone doesn't go to bootloop.:silly:
-twrp working
-no rom to flash
-unable to mount /data /sdcard
-OTG usb empy
-no ruu
-S-on
-unlocked
Thanks to you , XDA, and for all you guys
Click to expand...
Click to collapse
Did u mount USB OTG ??
CYNiCAL2KX said:
I'm guessing you have HTC drivers installed.
Connect USB to windows Boot into Recovery, selecr Advanced, choose Sideload, then swipe to start sideload
then with adb use command 'adb devices'
Does your phone up? it'll have a name beginning with sideload
If it doesn't, possible driver issue. What OS are you using?
Click to expand...
Click to collapse
yes lastest driver installed. i have twrp 2.7, i've done adb sideload customROM.zip but than ?
dexploit said:
yes lastest driver installed. i have twrp 2.7, i've done adb sideload customROM.zip but than ?
Click to expand...
Click to collapse
CYNiCAL2KX said:
I'm guessing you have HTC drivers installed.
Connect USB to windows Boot into Recovery, selecr Advanced, choose Sideload, then swipe to start sideload
then with adb use command 'adb devices'
Does your phone up? it'll have a name beginning with sideload
If it doesn't, possible driver issue. What OS are you using?
Click to expand...
Click to collapse
Did you do 'ADB devices'???
raghav kapur said:
Did u mount USB OTG ??
Click to expand...
Click to collapse
yes but on twrp in logs page it says "unable to mount otg" and "unable to mount /data /system /cache" Seems like the one doesn't recognize the partition
CYNiCAL2KX said:
Did you do 'ADB devices'???
Click to expand...
Click to collapse
yes and "sending: 'HTC_One_-_****************_32.0.0 (2).zip' 100%"
but than ? Phone bootloop and where is the rom that i've placed ?
dexploit said:
yes and "sending: 'HTC_One_-_****************_32.0.0 (2).zip' 100%"
but than ? Phone bootloop and where is the rom that i've placed ?
Click to expand...
Click to collapse
The phone bootlooped? Strange. TWRP usually runs the script straight after sideload. The zip is on sdcard/0/sideload.zip
What happens when you try to install the sideload.zip?
CYNiCAL2KX said:
The phone bootlooped? Strange. TWRP usually runs the script straight after sideload. The zip is on sdcard/0/sideload.zip
What happens when you try to install the sideload.zip?
Click to expand...
Click to collapse
in in twrp if i go to install i see only empy sdcard!!! but the adb sideload command was completed at 100 %...no errors, nothing..(yesterday i had cwm 5 and always all folder empy and unable to mount all !!!!)
Flash latest CWM recovery the same way you flash Twrp.twrp is unsecure coz you deleted all your system data in twrp recovery.after flash,cwm shoud work,and adb too.then put superuser.zip on internal storage,install thru cwm to gain root.flash arhd 52.0 rom to get it boot.
Sent from my HTC One using xda app-developers app
dexploit said:
in in twrp if i go to install i see only empy sdcard!!! but the adb sideload command was completed at 100 %...no errors, nothing..(yesterday i had cwm 5 and always all folder empy and unable to mount all !!!!)
Click to expand...
Click to collapse
I think you have a corrupted partition. Try this: http://android-revolution-hd.blogspot.co.uk/2013/10/fix-data-htc-one.html
Just something I found with a quick search but, I hope that will fix your problem, if not you should google around for more alternative methods to repairing a corrupted data partition
How Do I Recognise The Problem?
When trying to mount the DATA partition from inside the custom recovery using the mount /data command you will most likely see this output: mount: mounting /dev/block/mmcblk0p37 on /data failed: Invalid argument
To be 100% sure you can check filesystem structure with the following command: /sbin/e2fsck -n -f /dev/block/mmcblk0p37
Good luck
Click to expand...
Click to collapse
---------- Post added at 11:14 PM ---------- Previous post was at 11:06 PM ----------
shawek said:
Flash latest CWM recovery the same way you flash Twrp.twrp is unsecure coz you deleted all your system data in twrp recovery.after flash,cwm shoud work,and adb too.then put superuser.zip on internal storage,install thru cwm to gain root.flash arhd 52.0 rom to get it boot.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
Read the full thread before posting
He used CWM but it shows no files on sdcard
Thanks, but doesn't work. Buto now i can mount sd card, but not /system and /cache!
shawek said:
Flash latest CWM recovery the same way you flash Twrp.twrp is unsecure coz you deleted all your system data in twrp recovery.after flash,cwm shoud work,and adb too.then put superuser.zip on internal storage,install thru cwm to gain root.flash arhd 52.0 rom to get it boot.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
So, I did part of this because I'm having a similar issue. I was able to flash CWM, but unable to mount USB storage in order to get this thing booted up. I tried to sideload and that's unsuccessful.
When I use the devices command in adb, it doesn't list it. However, when I typed devices in fastboot, it listed it. Obviously, I'm starting to get pissed.
i had a same problem,needed 3 days to solve it.I understand that adb cant recognize the device(i was getting that error too)and(typing "adb devices" sometimes shows the device)--,but can you put a zip file on internal storage of the phone,now when you have cwm recovery?try to get many informations as you can,read,you will fix this.i didnt try to fix partitions mentioned above,but you can try with that.
Sent from my HTC One using xda app-developers app
It seems like your data partition is trashed, and maybe you need to format it. This is more aggressive than wiping /sdcard and /data. TWRP can do this, and CWM probably can, too. Also, "fastboot devices" should only show the phone when it's in fastboot mode, and "adb devices" will show the phone when it's in recovery or running Android (with USB Debugging enabled).
If you want to poke around a little bit before taking this drastic step, I would try one more time to get adb connected--boot the phone to recovery, wait a few seconds, attach the cable, then give "adb devices" another try. Also, I don't know if the driver necessary for ADB is the same as fastboot. It's possible your computer is configured to do one but not the other. Is there someone else's computer you can ask to use for a few minutes to check this?
Solved unmount /system /cache /data
i've format all the formattable things in twrp , reboot and used adb push and after flash cyanogenmod! ! Thank you all guys !:good: