Hi,
New to rooting
Searched a lot but many others seem to have the issue that data moved from /sdcard to /sdcard/0 during an upgrade from 4.1 to 4.2 - but I have a different issue. Despite being at 4.2 all along (I guess) I have data at /sdcard and not at sdcard/0 - causing ROM install failure. What to do?
Details as follows.
Galaxy S4, rooted, did full nandroid backup.
Downloaded Foxhound ROM 2.0
Tried to install ROM via ROM Manager - it failed.
Allowed device to reboot only it did a factory reset.
Reinstalled backup - all is fine.
New attempt: Install manually via recovery.
It still fails.
From the log I get
-- Installing: /sdcard/0/Download/FoxHound_2.0_By_Snakes_GT-I9505.zip
Finding update package...
I:Update location: /sdcard/0/Download/FoxHound_2.0_By_Snakes_GT-I9505.zip
I:using /data/media/0 for /sdcard/0/Download/FoxHound_2.0_By_Snakes_GT-I9505.zip.
I:using /data/media/0 for /sdcard
Opening update package...
E:Can't open /sdcard/0/Download/FoxHound_2.0_By_Snakes_GT-I9505.zip
(No such file or directory)
Installation aborted.
result was NULL, message is: assert failed: install_zip("/sdcard/0/Download/FoxHound_2.0_By_Snakes_GT-I9505.zip")
I:using /data/media/0 for /sdcard.
I:using /data/media/0 for /sdcard​
From terminal or file explorer, this ZIP file can be seen via :
/storage/emulated/0/Download
/data/media/0/Download
/sdcard/Download
(all the same data)
BUT /sdcard/0 does not exist
Not sure what caused this. I am aware the data are physically at /storage/emulated/0 and the other are links.
How do I get /sdcard/0 accessible with the data?
Do I create /sdcard/0 and move data or do I somhow create a new link?
Any help appreciated
first copy the file in root of the card,
& then flash
& for sdcard 0 & 1
see the attached pic,you need to install root explorer to see.
Not sure I get it.
sdcard0 is not what I need - its sdcard/0
friis99 said:
Not sure I get it.
sdcard0 is not what I need - its sdcard/0
Click to expand...
Click to collapse
its same
sdcard0 as sdcard/0/ &
sdcard1 as sdcard/1/
Really appreciate ur help.
However I only have sdcard.
No sdcard0 - no sdcard/0
Moving ROM Zip to root of sdcard does not work.
Recovery (tried CWM as well as Philz) want it to be at sdcard/0
I have a feeling that I need to create sdcard/0 folder and mount sdcard in it OR do a link so that sdcard and sdcard/0 both link to the same files
I'll get there but trying to learn this weird scheme of links to data from all over the place :fingers-crossed:
Sorry I found sdcard0:
In /storage I have:
sdcard0 -> legacy rwxrwxrwx
clicking this leads to files in /data/media/0
in root I have:
sdcard -> legacy rwxrwxrwxe
clicking this leads to files in /data/media/0
in /data/media I have :
legacy
this is empty
0
clicking this leads to files in /data/media/0
Somehow I need to create folder 0 in /sdcard (ie /sdcard/0) and link to /data/media/0 - but how
Related
I had problem updating my TF700 to JB - it complained about a signature mismatch on Vibe_CN.apk, so I decided to do a factory reset and start all over.
I only installed enough to regain root (SuperSU, Voodo Root Keeper, Titanium Backup, ES File Explorer), and when I copy the dlpkgfile and command file to their proper location and reboot into update, it starts the update but fails at the same spot (check on Vibe_CN.apk).
I am 100% positive, that I didn't uninstall anything, froze anything or anything else that could conceivably cause a problem, so what is going on here?
I'll try to re-install the .30 firmware from asus web page to see if the problem lies there, but can anyone explain this or come with suggestions?
HeartWare42 said:
I'll try to re-install the .30 firmware from asus web page to see if the problem lies there, but can anyone explain this or come with suggestions?
Click to expand...
Click to collapse
When I try to do this, I get the red triangle, and after pressing power I get the following text on screen:
Finding update package...
E:failed to mount /sdcard (No such file or directory)
E:Can't mount /sdcard/ASUS_BUNDLE.zip
E:failed to mount /sdcard (No such file or directory)
E:Can't mount SD card.
Installing update...
Finding update package...
E:failed to mount /sdcard (No such file or directory)
E:Can't mount /sdcard/EP201_768_SDUPDATE.zip
SD installation aborted
I have tried this with both the EP201_768_SDUPDATE.zip located in the root of my MicroSD card (with the card inserted), and with the file located in the internal "/sdcard" directory, and in both cases, I get the above result.
I'm using TWRP 2.3.1.0 to try and install a .zip file (the new JB version), using the Install feature. The situation I'm running into is that on both internal and external_sdcard my .zip file is not visible. I cannot mount the external sdcard, when I use the mount feature the TWRP log shows many E:unable to mount "/external_sdcard errors. Even on internal storage I can just see the folders and no individual files let alone the .zip file. When I boot into my currently installed ICS 9.4.5.30 version I can see all my files no problem including the .zip files.
I"m confused because I successfully used this very same process to upgrade to ICS 9.4.5.30 from .26 with no problem back in Sept.
I've searched and googled but so far nothing has added to my understanding off what is wrong or what to do at this point.
Please help if you can, thanks in advance.
I've found my .zip file!...under the internal directory /data/media (not sure why this file only appears under this directory). I've updated to JB from that .zip using the TWRP Install and it all looks good. Still don't understand why the file could not be found under the internal /sdcard directory nor the /external_sdcard with TWRP. Perhaps my misunderstanding of how TWRP works perhaps some problem with TWRP 2.3.x.
So I guess nothing more required.
How do I go about accessing the files that are stored in /sdcard on 4.1.1 after upgrading to 4.2? I see only default folders in /sdcard, /storage/emulator/0 and legacy, and /storage/sdcard0. In fact, I think they're all mounts to the same storage area. The available space reflects that none of my existing files are gone, but I can't figure out how to access them. If I return to a nand backup of 4.1.1, I can get at them, and the default contents I see in 4.2 show up in a folder called '0' in /sdcard.
As a secondary question, how would I go about moving the contents of /sdcard under 4.1.1 to the new /sdcard location for 4.2? I'm pretty sure it can't be done while Android is running and TWRP doesn't see the old /sdcard contents either, even when running 4.1.1.
Latest 2.4.1.0 TWRP should understand the 4.2 file structure.
4.2 is a mess IMO. I don't know how you get it working but someone did post a file to go back from 4.2 to 4.1.1
It's because your "internal sd card" doen't exist. It's really a folder on your device called /data/media
On 4.2, it's called /data/media/0 Everytime you perform a factory reset and boot a new 4.2 rom, Android creates another /0 folder: /data/media/0/0
The newer recoveries (like twrp 2.4) prevent this.
The /data/media/0 folder is for the "main user" on 4.2. Once another user is added, a /data/media/1 folder is created, with all of that users' data & content, files etc in there.
When going back, most apps (like TiBu & twrp recovery) refer to the /data/media folder, whereas the files are now in /data/media/0
So what you want to do, when on 4.1, is to move all files from /data/media/0 to /data/media and delete the /0 folder.
After that, flash twrp 2.4. That newer recovery takes care of the /data/media/0 legacy folder (actually it creates system links between the /data/media/0 and /data/media folders).
Hope this makes sense :good:
Ti2 said:
It's because your "internal sd card" doen't exist. It's really a folder on your device called /data/media
On 4.2, it's called /data/media/0 Everytime you perform a factory reset and boot a new 4.2 rom, Android creates another /0 folder: /data/media/0/0
The newer recoveries (like twrp 2.4) prevent this.
The /data/media/0 folder is for the "main user" on 4.2. Once another user is added, a /data/media/1 folder is created, with all of that users' data & content, files etc in there.
When going back, most apps (like TiBu & twrp recovery) refer to the /data/media folder, whereas the files are now in /data/media/0
So what you want to do, when on 4.1, is to move all files from /data/media/0 to /data/media and delete the /0 folder.
After that, flash twrp 2.4. That newer recovery takes care of the /data/media/0 legacy folder (actually it creates system links between the /data/media/0 and /data/media folders).
Hope this makes sense :good:
Click to expand...
Click to collapse
I have TWRP 4.3.0 but I still have to move everything every time I switch from 4.1 to 4.2 /vice versa
I'm on 4.1 right now and everything is in data/media. If I move everything to data/media/0, and switch to 4.2, will it recognize it? Such as game data etc.
I Think my Internal sdcard is corrupted!
Please Help! Reflashing android won't work. I think the partition is corrupted!
Device: Google Nexus 5
Original OS: Android 5.1.0_r1 (LMY47D)
Recovery: TWRP 2.8.6.0
One day I turned my phone off, and later i decided to go into recovery. I believe I went inside Advanced Options and clicked "Fix Permissions." Then I proceeded to reboot. I was busy at the time, so when I remembered about my phone, I saw that it was still booting. It had been at least 30 minutes so I knew it was in a bootloop. I decided to go back into recovery and reflash the system.img onto it. No luck. I realized I had to try flashing the entire Nexus image (using the flash-all.bat). The phone would still not turn on. I tried flashing different versions of android, and here are my findings:
Android 5.1.0_r3, 5.1.0_r1, 5.0.1: all cause my phone to not be able to boot up (stuck on the 4 color flying animation)
Android 4.4.4, CyanogenMod (cm-11-20141008-SNAPSHOT-M11-hammerhead.zip): Allow my phone to boot up.
However, after I found that I could boot onto Android 4.4.4 and CyanogenMod, I realized that I could not get access to the sdcard!
Here are my findings:
When I go to the phone's root folder, I see a FILE called "sdcard"
When I go to \storage, I see a FILE called sdcard0
When I open camera, the app crashes (possibly because it stores pictures on the sdcard).
I tried to delete these files when I had root access with CyanogenMod but the file manager said "can't delete file." When I am in recovery mode (TWRP) however, I can see the sdcard folder and the contents. Just through every system boot, the sdcard is inaccessible.
After I realized that the problem wasn't due to the data on my phone (after flashing many system images), I realized my data partition might be corrupted. Then I went to this site and followed the directions: http://forum.xda-developers.com/goo...o-repairing-corrupted-data-partition-t2577447
The e2fsck command didn't do anything as cmd said "The superblock could not be read or does not describe a correct ext2 filesystem."
Afterwards, my friend told me to try mke2fs /dev/block/platform/msm_sdcc.1/by-name/userdata
I typed that in adb shell and something happened. I started processing blocks or something. Unfortunately now, I am unable to mount the data partition at all. I am also unable to flash the userdata.img onto my phone through fastboot.
UPDATE: When I open up twrp recovery and look in the log I see the following:
E: Could not mount /data and unable to find crypto footer.
E: Unable to mount '/data'
E: Unable to recreate /data/media folder.
Updating partition details...
E: Unable to mount '/data'
E: Unable to mount '/cache/
E: Unable to mount '/persist'
...done
E: Unalbe to mount storage.
E: Unable to mount /data/media during GUI Startup.
E: Unable to mount '/cache'
Full SELinux support is present.
E: Unable to mount '/cache'
E: Unable to Mount '/cache'
E: Unable to mount /data/media/TWRP .twrps when trying to read settings file.
E: Unable to mount '/data'
MTP Enabled
Anyone know how to fix this? Please help, I owe you so much if you can solve this! Reply to me if you're able to help, I'm also new to xda so I don't really know how messages work. Thanks!
Try taking it out and putting it back in. It happened to me too.
mygoldeneye said:
Try taking it out and putting it back in. It happened to me too.
Click to expand...
Click to collapse
By sdcard I mean the internal sdcard (/storage/emulated/0). Nexus 5 does not have an external sdcard slot anyways.
So you are saying you have no apps, no widgets, nothing... /storage/emulated/0 is your main storage which INCLUDES your system files (unless you have a phone or tablet that has a separate internal SD card - would be /storage/emulated/1 ... I am guessing)
I tired flashing a ROM but it couldn't mount the /system so I formated everything in TWRP and tried again but this time the ZIP corrupted /data/media (/sdcard).
I'm getting E: Mount unable to find partition for path
as soon as I boot to TWRP (2.8.1.0).
I can't boot into system nor can I restore a backup. When I restore it it gets to restoring /data and fails.
I'm pretty sure /sdcard is my internal sd (because /external_sd is for the externad sdcard).