Cannot access /sdcard directory - One (M7) Q&A, Help & Troubleshooting

Basically I accidentally factory reset my phone from the bootloader (i was supposed to enter recovery but went 1 option down and pushed the power button then it started the reset).
Now when I flashed the ARHD rom again (which was working perfectly fine before), i cannot take pictures, it says "unable to save file to sd card due to insufficient file permissions". If I open file manager it shows nothing, but if I go to the settings it shows the SD card only has 5GB left.
I can also open TRWP's file manager and go to the /sdcard directory and see all my pictures etc there on the sdcard.
When I plug in the HTC One via USB to my laptop I cannot access the sdcard contents...
I even tried to push some files via adb but it says "remote object "file name" does not exist" when it definitely does because I can see it on the TRWP file manager.
Any help is very much appreciated, I tried full wiping and reflashing but it still exists...
Is there any way I can fix this without losing all my sdcard contents?
Help is very much appreciated!

Lanky09 said:
Basically I accidentally factory reset my phone from the bootloader (i was supposed to enter recovery but went 1 option down and pushed the power button then it started the reset).
Now when I flashed the ARHD rom again (which was working perfectly fine before), i cannot take pictures, it says "unable to save file to sd card due to insufficient file permissions". If I open file manager it shows nothing, but if I go to the settings it shows the SD card only has 5GB left.
I can also open TRWP's file manager and go to the /sdcard directory and see all my pictures etc there on the sdcard.
When I plug in the HTC One via USB to my laptop I cannot access the sdcard contents...
I even tried to push some files via adb but it says "remote object "file name" does not exist" when it definitely does because I can see it on the TRWP file manager.
Any help is very much appreciated, I tried full wiping and reflashing but it still exists...
Is there any way I can fix this without losing all my sdcard contents?
Help is very much appreciated!
Click to expand...
Click to collapse
Try this, using a Terminal emulator on your phone. (you can download one from the play store if you need one) Enter these commands
Code:
su
restorecon -FR /data/media/0
Reboot and check sd. If that fails you should be able to fix it with e2fsck and an adb command window but try the terminal emulator first. :good:

Related

Need help with SGS on ADB!

Hi, I want to transfer a file called undo.zip from my computer to my phone, but it is bricked.
The file is in the external-sd, but in the recovery I can't flash it because my phone won't acces the external-sd in recovery mode.
The file is a zip to be flashed in the internal sd OR I can also have a framework to be moved directly to system/framework. Both ways should FIX my brick.
Okay, I can enter in recovery and download mode, but I don't want to wipe it or to change the ROM.
What I tried to do is:
Flash the file on the external sd on the recovery mode: Transfered the file to the external sd with an adapter... The recovery option for mount external sd in mounts and storage WON'T let me mount it. I think it's because of the kernel (I've got a DOC's kitchen rom with speedmod, but I installed Super Optimized Kernel and overclocked my phone up to 1.2GHz), so I can't mount the external-sd on the recovery.
So the other only solution is
Transfer the file to the internal sd with ADB
The file is in
C:\android\android-sdk-windows\undo.zip
And I have to move it to the ROOT of the Sdcard, but I don't mind where do I move it if it is on the internal sdcard.
This is what I exactly do:
-Connect the phone on the USB on recovery mode
-Open CMD.exe (I'm on wvista) and type adb.exe in the correct folder. A lot of scripts appear, so I suposse I'm doing it good.
-In adb, type ums_enable. DOES NOT WORK (does not recognize the command). I can't activate USB connection in that way.
-In adb, push my framework-res.apk to system/framework. Superuser error, DOES NOT WORK and my phone is rooted. I could do adb shell and then su, but I can't accept the su request in my phone because... well, it's on the recovery!
LAST AND ONLY SOLUTION: In adb, push the file to my sdcard root
--------------------------------------------------------------------------------------------------------------------------------------------------
SHORT STORY:
All I do is "adb push C:\android\android-sdk-windows\undo.zip sdcard", but it gives me error because it's a folder. So, YES, it's a folder because I want to move it to that folder! If I try to move it to a folder in the sdcard, for example by typing "adb push c:\android\android-sdk-windows\undo.zip sdcard/foldernameIwant" it gives me the same error.
------------------------------------------------------------------------------------------------------------------------------------------------
PART 2, IGNORE THE TEXT ABOVE
So, I managed to be able to move files to my sd on the recovery, but when I want to restore my framework by installing a JS5 stock theme, phone won't de-brick even if it has got a new stock framework that should make it boot... Any help? I'm sure the problem is on the framework-res, but it's now restored by another from a JS5 stock theme (I'm using a self-made JS5) and it continues bricked...

[Q] Cant flash ClockworkMod Recovery (cannot open for read: No such file or directory

When i type the dd if=/data/recovery.img of=/block/mmcblk0p6 bs=4096 to flash over the clockworkmod, into my command promt it says 'cannot open for read: No such file or directory' and i dont know what im doing wrong.
I mean everything else seemed to workout fine. i downloaded the recovery image it said to save it but it was already saved to my computer after i downloaded it so i dont know if this could be the problem.
Then i used the adb push recovery.img/data command to push the recovery image to my phone, i think this might be where i messed up. After i put in the command a long list of text pops up on the command prompt. It starts out showing 'Android Debug Bridge version 1.0.26' then is followed by a long list of adb commands. Idk know if this is what its supposed to show.
Next i did the adb shell, su, dd if=/dev/block/mmcblk0p6 of=/sdcard/mmcblk0p6.backup bs=4096 command and that worked fine it said 2560+0 records out, 2560+0 records in 10485760 bites transfered in 0.413 secs and i actually found that file on my sdcard. So i think i did that right.
Next i tried to use the command 'dd if=/data/recovery.img of=/block/mmcblk0p6 bs=4096' and like i said earlier it just says 'cannot open for read: No such file or directory'
Lastly i tried the rm /data/recovery.img command and it said rm failed for /data/recovery.img, No such file or directory in the command prompt.
Im sorry i am new at this but i thought i followed the directions perfectly and any help anyone could give me would be greatly appreciated.
First off, before someone else says it, you shouldn't start a new thread for something we already have a topic for. But anyways,
Sounds to me like recovery.img never got pushed to /data. Not sure if its a typo in your post but 'adb push recover.img/data' should be 'adb push recovery.img /data'. The space is important. On your phone use a root file explorer and go to your /data partition and see if recovery.img is there. You may need to either change permissions for /data or just put recovery.img on your sdcard and move it to /data with a root explorer.
Sent from my LG-P925 using Tapatalk
Well im sorry im new to this kind of thing, i didnt want to make anyone mad i just wanted some help and i apologize if ive ticked somone off. How would i change the permissions for the data? And could you tell me how to use the root explorer to put the recovery image in the right place? Again i appreciate any help you can offer.
Is recover.img in the same folder as adb? Because the instructions assume your recovery.img is in the same folder you are working from. So if you have to cd to your adb folder to use adb then recovery.img should be in that folder as well. Look at your cmd window, whatever directory/ folder it says you are in that is where you should put recovery.img.
If you saw a bunch of commands it means the .img did not go through your command did not work. You dont have the recovery.img in /data either put the file on your sdcard and use a root explorer to move it to /data or try the adb push again, you most likely made a typo or something.
You would put recovery.img on your sdcard through your computer. Open root explorer and navigate to your sdcard, long press on the recovery.img select move, go to/ data on the root of the phone, not the one on either sdcard it MUST be /data not /mnt/sdcard/data or anything like that once there paste file to /data and finish up in adb shell.
Alright i copied the recovery image to the /data folder and finished up in command prompt and everything worked out like it was supposed to. what was i supposed to do next to put it into cwm recovery mode? I held power, volume down, 3d button but i just went into normal recovery mode. then i went to rom manager to try and put it into cwm recovery that way but it just rebooted my phone. And when i went back into the /data folder i couldnt find the recovery image there anymore and i did a search on my root explorer and couldnt find it anywhere.
Hold vol down + 3D + power when lg logo appears release power but keep vol down +3D held down until recovery pops up. If you still don't boot into cwm try flashing recovery.img again. Do NOT use rom manager at all to install cwm on this phone.
Well ive tried to take the recovery image from the sd card to the /data folder but when i run 'rm /data/recovery.img' on the command prompt then reboot my phone, i turn it off then try and put it in recovery mode but its just regular recovery mode not cwm recovery mode. And everytime i run the 'rm /data/recovery.img' when my phone boots back up the recovery image is no longer in the /data folder or anywhere. But if i dont run the 'rm /data/recovery.img' after moving the recovery image to the /data folder it stays in the folder. Is it supposed to dissapear from the /data folder?
And i tried putting the recovery image in the same folder as abd which is the platform tools folder then flash it over and i got the same message. (cannot open for read: No such file or directory.)
Im sorry for all the questions and I am thankful for your help. I feel like i cant be the only person having this problem, well i hope im not that would make me feel really stupid. Thanks.
powers.jereme said:
Well ive tried to take the recovery image from the sd card to the /data folder but when i run 'rm /data/recovery.img' on the command prompt then reboot my phone, i turn it off then try and put it in recovery mode but its just regular recovery mode not cwm recovery mode. And everytime i run the 'rm /data/recovery.img' when my phone boots back up the recovery image is no longer in the /data folder or anywhere. But if i dont run the 'rm /data/recovery.img' after moving the recovery image to the /data folder it stays in the folder. Is it supposed to dissapear from the /data folder?
And i tried putting the recovery image in the same folder as abd which is the platform tools folder then flash it over and i got the same message. (cannot open for read: No such file or directory.)
Im sorry for all the questions and I am thankful for your help. I feel like i cant be the only person having this problem, well i hope im not that would make me feel really stupid. Thanks.
Click to expand...
Click to collapse
rm is the command to remove. So yes, recovery.img is supposed to disappear after that command. Put it back on /data and run the whole process from the CWM thread again making sure you do every step. Sounds like you may have accidentally skipped a step.
Sent from my LG-P925 using Tapatalk
Double post.
Ugh...keep selecting quote instead of edit on Tapatalk...Triple post...
Alright ill try that again, so i should put the file back on the /data folder and then still do the step where you try to flash over cwm from the cwm thread, even though its already there? Thanks
powers.jereme said:
Alright ill try that again, so i should put the file back on the /data folder and then still do the step where you try to flash over cwm from the cwm thread, even though its already there? Thanks
Click to expand...
Click to collapse
Yea just do it all again. Worst case is you flash cwm back over cwm
Sent from my LG-P925 using Tapatalk
I got it to work Urabewe was right i just needed to put the recovery image in the correct folder and everything worked perfect. Thanks guys.

[Q] Can't get gapps to install on NC CM7.2

Hello...i've search4ed and searched and no answer pertains to my problem that I can find. I followed this guide to get CM7.2 loaded on my 16gb sandisk sd card: http://forum.xda-developers.com/showthread.php?t=1000957 The gapps I'm using the CM7 download link. The CM7.2 rom is the newest one available on the download link
Everything loaded smooth and works great except when I get to the part of installing gapps, I reboot into recovery mode (blue penguin with scrolling writing) and everytime it cannot find gapps installer so it ignores it!! I don't know what else to do here.. I've verified the hash using md5sum and it matches... I have my gapps.zip file located on the ROOT of my sd card /sdcard/gapps.zip. I've also tried putting gapps in /sdcard/boot. I've also tried changing the name to gapps-update.zip, update-gapps.zip, gapps-gd....etc.zip, etc etc etc. No matter what or where I put the file it isn't found.
When I boot the NC i can get to a boot menu from there, i've tried all combinations of booting (internal, sd, normal, etc etc). I've tried installing through boot manager and that doesnt work. It reboots to recovery mode and still doesn't find the file. I've flashed clockwork in boot manager and that didn't help anything.
I'm not sure what I just did, but i rebooted and now I have a "burrito manager" icon. I tried installing through that and no go. Don't know what else to do.
I DO have wifi setup/connected.
*EDIT... not sure if it matters, but I do seem to have an issue. I'm connected to wifi but NTP isn't updating my clock settings. It is setup in settings to auto update the date/time using network settings and it doesn't update. Could this be an issue with getting market to show up if the time is wrong??
Its most likely you are not placing gapps in the root of the boot partition... try this:
if adb works for you:
adb shell mkdir /sdcard/boot
adb shell mount /dev/block/mmcblk1p1 /sdcard/boot
adb push ***GAPPS INSTALLER*** /sdcard/boot
then when you reboot to sd recovery mode it will see the gapps installer.
DizzyDen said:
Its most likely you are not placing gapps in the root of the boot partition... try this:
if adb works for you:
adb shell mkdir /sdcard/boot
adb shell mount /dev/block/mmcblk1p1 /sdcard/boot
adb push ***GAPPS INSTALLER*** /sdcard/boot
then when you reboot to sd recovery mode it will see the gapps installer.
Click to expand...
Click to collapse
Hello...thanks for the reply! But I'm a little confused what you mean? I manually put the gapps.zip file on /sdcard/gapps.zip AND also copied to /sdcard/boot/gapps.zip. The file is there. What is the filename supposed to be??? I've tried gapps-...zip, update-gapps...zip, gapps.zip, etc.
Is there something that adb does that copy on the terminal doesn't do??
See attached screenshot, the file is there. For some reason the installer script in recovery mode isn't finding it. That's why i was asking what filename it's looking for?
ballgum said:
Hello...thanks for the reply! But I'm a little confused what you mean? I manually put the gapps.zip file on /sdcard/gapps.zip AND also copied to /sdcard/boot/gapps.zip. The file is there. What is the filename supposed to be??? I've tried gapps-...zip, update-gapps...zip, gapps.zip, etc.
Is there something that adb does that copy on the terminal doesn't do??
See attached screenshot, the file is there. For some reason the installer script in recovery mode isn't finding it. That's why i was asking what filename it's looking for?
Click to expand...
Click to collapse
Do not put the file in 'sdcard'. It needs to go in the boot partition like dizzy said. Take the card out of the nook and put in your PC. That will show the boot partition. Put the gapp file there. Make sure the name starts with gapps-gb-. Put the card back into the Nook and reboot to recovery like before.
leapinlar said:
Do not put the file in 'sdcard'. It needs to go in the boot partition like dizzy said. Take the card out of the nook and put in your PC. That will show the boot partition. Put the gapp file there. Make sure the name starts with gapps-gb-. Put the card back into the Nook and reboot to recovery like before.
Click to expand...
Click to collapse
That worked! thank you very much...

[Q] Fastboot will not see my device, Recovery does. Unable to push files.

I had the SD card issue where it wasn't seeing all my files. Recovery mode would see files I could not locate within the os.
What I did:
Backed up my contents. Always have a nandroid backup!
Downloaded and md5sum checked Trickdroid 8.0.0
Booted into recovery, wiped phone. Formatted all partitions.
My next plan of action was to adb push trickdroid. This failed, its not seeing my sdcard partion. I have attempted to format /sdcard. It returns no errors. I got to mount /sdcard, It fails to find the directory.
When I boot into fastboot (Thinking at the very worst I could relock my device nad flash an RUU)
It does not see any devices. I have verified multiple times that I am using the correct driver. I have removed all drivers from the system, attempted to use htc sync, uninstalled that, used the Naked Drivers, uninstalled those (still no device in fastboot), installed the ADB Driver installer (found using the search button). Still, no devices in fastboot.
If someone could point me in the right direction I would greatly appreciate it. I have been using adb and flashing devices for a number of years and have not yet encountered a problem like this.
-Erik
voltage88 said:
I had the SD card issue where it wasn't seeing all my files. Recovery mode would see files I could not locate within the os.
What I did:
Backed up my contents. Always have a nandroid backup!
Downloaded and md5sum checked Trickdroid 8.0.0
Booted into recovery, wiped phone. Formatted all partitions.
My next plan of action was to adb push trickdroid. This failed, its not seeing my sdcard partion. I have attempted to format /sdcard. It returns no errors. I got to mount /sdcard, It fails to find the directory.
When I boot into fastboot (Thinking at the very worst I could relock my device nad flash an RUU)
It does not see any devices. I have verified multiple times that I am using the correct driver. I have removed all drivers from the system, attempted to use htc sync, uninstalled that, used the Naked Drivers, uninstalled those (still no device in fastboot), installed the ADB Driver installer (found using the search button). Still, no devices in fastboot.
If someone could point me in the right direction I would greatly appreciate it. I have been using adb and flashing devices for a number of years and have not yet encountered a problem like this.
-Erik
Click to expand...
Click to collapse
I fixed it!!! Anyone that has a similiar issue. This is what I did.
In a previous thread, I saw that 4.2 will redo the sd card structure. After some research, it was recommended to change the path to /data/media/0. I was then attempting to do the command as follows 'adb push Trickdroid_8.0.0.zip /data/media/0' (without tick marks)
The file was pushing as it should (no progress bar) however, it would fail at the very end saying it was unable to locate the directory.
After seeing adb fail in that manner, I knew my sdcard was not mapped to the above path. What I did was boot into recovery, go to mounts and storage, mount my sdcard. Go back to the first menu now.....From here, select advance, and view log. It will tell you where your sdcard is being mapped to. Simply push your zip file to this directory and success! I have a working phone again.
Fastboot still doesn't recognize my device however. I'd be more then happy to be educated as to what I may have done wrong.

Asus MeMO Pad 7 unusable please help!

Hi,
I am really desperate! I turned on my rooted Asus MeMO Pad 7 ME176CX after several months of no use, but apps/services won't load (loads of error messages, all apps/services stopped etc.) like it was obsolete or screwed up. So I unrooted it and the issue got worse!
There is a Asus demo app in the notification bar that disables WIFI and software reset and says to plug in the power adapter (no difference, it won't go away).
1) I copied the necessary files to my memory card (to get rid of the Asus demo app as per other threads) but once I insert the memory card, even though it is recognized, it says no files present.
2) I did a hard reset with Vol - (or +, tried both) and Power but nothing happens (no recovery screen, it just stays black).
3) I removed the battery & waited 10 mins, no difference.
4) I formatted a card to FAT32 and copied the cleardata.zip unzipped files from Asus then rebooted pressing just Power but it just reboots normally like the card is not inserted.
Now basically the tablet shows a few apps (Calendar, Gallery etc.) and nothing else.
I cannot connect to wifi, bluetooth does not work, the memory card says no files present, vol + power does not work, cleardata trick did not work, I cannot send it back under warranty (ex-rooted) ... what else can I do??????
Many thanks!
Reboot into Droidboot (Volume Down + Power IIRC, could be up), boot the Temporary TWRP (http://forum.xda-developers.com/android/development/intel-android-devices-root-temp-cwm-t2975096), flash ROM
After a few experiments gone wrong I have now bricked the tablet for good (erased all data).
I can ONLY go from the dead droid to 'Android system recovery' which shows:
- reboot
- apply update from ADB
- wipe data
- wide cache
After 'wiping' the only option available is 'Apply update from ADB', so I installed ADB on my Mac and downloaded a few ROMs from the Asus site (even though their page says ME176C not ME176CX, but there is no ME176CX page there).
If I run adb devices from the terminal I see nothing. Only if I select 'Apply update from ADB' on the tablet I see the device from terminal, I believe it opens a bridge to the computer only with this option running. The command 'fastboot devices' never shows anything regardless.
I run 'adb sideload update.zip' (tried with several ROMS) but it always fails AFTER the transfer (either with messages 'status 0' or 'end of footer not 0xFFFF' etc.).
So now I am stuck with adb sideload never working, is there anything else I can do????
boredfish said:
After a few experiments gone wrong I have now bricked the tablet for good (erased all data).
I can ONLY go from the dead droid to 'Android system recovery' which shows:
- reboot
- apply update from ADB
- wipe data
- wide cache
After 'wiping' the only option available is 'Apply update from ADB', so I installed ADB on my Mac and downloaded a few ROMs from the Asus site (even though their page says ME176C not ME176CX, but there is no ME176CX page there).
If I run adb devices from the terminal I see nothing. Only if I select 'Apply update from ADB' on the tablet I see the device from terminal, I believe it opens a bridge to the computer only with this option running. The command 'fastboot devices' never shows anything regardless.
I run 'adb sideload update.zip' (tried with several ROMS) but it always fails AFTER the transfer (either with messages 'status 0' or 'end of footer not 0xFFFF' etc.).
So now I am stuck with adb sideload never working, is there anything else I can do????
Click to expand...
Click to collapse
Well, theres quite a lot of options do recover your tablet, before doing anyhing, if you have access to adb, then you should do: download .17 rom and extract it, after extracting go to META-INF\com\google\android\updater-script and open it with notepad, and remove the first 2 lines, then save, and make the zip file (rename it to update.zip {careful not to make the file "update.zip.zip"}), then put the zip file in adb folder (for me its C:\\adb) and do adb push update.zip /sdcard/ (make sure adb is working) after it finishes pushing, go to bootloader (if not there already) and run temp recovery (twrp or cwm), and then install the zip, then clear dalvik and cache, and reboot, if first reboot doesnt work, reboot again, if it still doesnt work, install update.zip again. Hope i helped, if u have any questions tell me :3
=====
edit
=====
if you really cant get out of recovery theres still a way of fixing your tablet (same problem happend to me today and its fixed), if you already did all the steps above on the download .17 and extracting and changing the file of updater script then its already almost done, to access the bootloader you need to shutdown your tablet, press Power, Vol+ and Vol- at same time, it will go to fastboot, copy the file "droidboot.img" from the update.zip and place it in the adb folder (for me its c:\\adb), then do "fastboot boot droidboot.img" and it should download the img to the tab and boot to droidboot (you need to do this a few times, because 5/1 only 1 goes to bootloader), after booting to droidboot you can easily recover from there, on bootloader you have adb access, which means you can push the update.zip to the tablet (with update.zip in adb folder already, do on cmd, "adb push update.zip /sdcard/") after pushing go to temp recovery and install the update.zip normally after installing. format cache and dalvik, and reboot, if its stuck on logo, shutdown and reboot, if still doesnt work install the update once more by turning your device off and go to bootloader normally, (it works now, because it has the software now, (to enter bootloader press press power + vol-), and load temp recovery and reinstall). i hope i helped

Categories

Resources