Internal storage contents from 4.1.1 to 4.2 - Transformer TF300T Q&A, Help & Troubleshooting

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.

Related

[Q] E:Unable to mount '/external_sdcard

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.

[Q] How establish /sdcard/0 folder

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

/storage, /mnt, cannot nandroid from ROM manager

I'm not sure when this started, but it could have been when I flashed the latest CWM recovery last week. Here's the deal. I've been running CleanROM 7 for several months with Darkhorse theme and Gunthermic's inverted apps. I went to flash some inverted apps Gunthermic recently updated and tried to nandroid like I've done for the last year with ROM Manager. I always backup to the extsdcard. I have ROM Manager set to save to the external sd card. It failed saying it could not find the path to /storage/sdcard1/clockworkmod/. This seemed strange to me because it formerly had the path set as /mnt/extsdcard/. Using Root Explorer, I investigated /storage/. In this folder is /sdcard0, /sdcard1, and a bunch of /USB folders. Under /mnt/ are /sdcard and /extsdcard and they contain the same sub files and folders as /storage/sdcard0 and /storage/sdcard1. I then tried to nandroid from recovery and the path options were /storage/sdcard0 and /storage/sdcard1. I tried sdcard1 since it is apparently the external sd card and it worked.
Any thoughts about
1. why it changed from /mnt/extsdcard to /storage/sdcard1?
2. why it fails to backup direct from ROM Manager?
3. why /storage is the same as /mnt?

[Q] Move /data to SD card

I have a Galaxy GIO, which is a fairly old low-end phone. On factory reset, I have about 100MB memory free for apps, and the phone seems to start complaining as soon as I hit the 50MB mark; that's about one or 2 installed applications.
Because I would like to actually be able to, well, use my phone for anything else than calling, I want to move the /data partition to my SD card. I know this'll be slow, but slow still is better than not working at all.
I have done a bit of research, and came around plenty of scripts which claim to mount the second partition of the sd card as /data; none of these scripts work. I have tried 'INT2EXT', 'D2EXT', and I've heard about something called 'A2SD' but I have yet to find a copy of it . To install these scripts I've extracted them, and copied the scripts to '/system/etc/init.d/', after mounting '/system', using ADB.
I for an instant thought maybe my second partition isn't formatted properly, but using adb I am able to successfully mount the ext2 partition as /sd-ext, so I don't see why mounting them as /data should be a problem.
I have also tried to symbollicly link /data to /sd-ext/data and automatically mount my /sd-ext on boot. Obviously this didn't work, because the symbolic link isn't actually saved to disk.
How would I go about moving my data partition to my sd card? I am not affraid of doing some dirty work manually. I am running Cyanogenmod 11.
Binero said:
I have a Galaxy GIO, which is a fairly old low-end phone. On factory reset, I have about 100MB memory free for apps, and the phone seems to start complaining as soon as I hit the 50MB mark; that's about one or 2 installed applications.
Because I would like to actually be able to, well, use my phone for anything else than calling, I want to move the /data partition to my SD card. I know this'll be slow, but slow still is better than not working at all.
I have done a bit of research, and came around plenty of scripts which claim to mount the second partition of the sd card as /data; none of these scripts work. I have tried 'INT2EXT', 'D2EXT', and I've heard about something called 'A2SD' but I have yet to find a copy of it . To install these scripts I've extracted them, and copied the scripts to '/system/etc/init.d/', after mounting '/system', using ADB.
I for an instant thought maybe my second partition isn't formatted properly, but using adb I am able to successfully mount the ext2 partition as /sd-ext, so I don't see why mounting them as /data should be a problem.
I have also tried to symbollicly link /data to /sd-ext/data and automatically mount my /sd-ext on boot. Obviously this didn't work, because the symbolic link isn't actually saved to disk.
How would I go about moving my data partition to my sd card? I am not affraid of doing some dirty work manually. I am running Cyanogenmod 11.
Click to expand...
Click to collapse
I will introduce how to COPY(NOT MOVING) /data partition to /sdcard.
1. You should ROOT First.
2. Use Rootexplorer to Copy /data to /sdcard (WARNING:If your sdcard emulated with /data, Data WON'T copy to SDCARD --You need external Sdcard!)
2-1. if you don't want to use RootExplorer, you can use Android Debugging Bridge(adb)
(Youshould download Android sdks from developer.android.com)
--Command : adb shell su -C cp /data /sdcard/data
3. That's all.
Jason Hyunwoo said:
I will introduce how to COPY(NOT MOVING) /data partition to /sdcard.
1. You should ROOT First.
2. Use Rootexplorer to Copy /data to /sdcard (WARNING:If your sdcard emulated with /data, Data WON'T copy to SDCARD --You need external Sdcard!)
2-1. if you don't want to use RootExplorer, you can use Android Debugging Bridge(adb)
(Youshould download Android sdks from developer.android.com)
--Command : adb shell su -C cp /data /sdcard/data
3. That's all.
Click to expand...
Click to collapse
Thanks, but that's not entirely what I meant. I can manage to move my data to the SD card no problem, but I want my phone to actually use my second partition on my sd card, as the /data partition.
Binero said:
Thanks, but that's not entirely what I meant. I can manage to move my data to the SD card no problem, but I want my phone to actually use my second partition on my sd card, as the /data partition.
Click to expand...
Click to collapse
Oops.. Sorry about that!
First, I am not sure that will work or not, maybe you should try to edit init.*.rc. Which is from boot.mg. I think, maybe mounting sdcard as data is impossible, but you may try editing init.rc(or init.*.rc, * is manufacture). You could unpack your boot img, and you could edit mounting point which is from init.rc!
I hope this thing will help you..
Jason Hyunwoo said:
Oops.. Sorry about that!
First, I am not sure that will work or not, maybe you should try to edit init.*.rc. Which is from boot.mg. I think, maybe mounting sdcard as data is impossible, but you may try editing init.rc(or init.*.rc, * is manufacture). You could unpack your boot img, and you could edit mounting point which is from init.rc!
I hope this thing will help you..
Click to expand...
Click to collapse
I have looked into init.rc, but that only seemed to create the /data mountpoint, but not actually mount to it. I've no idea how to edit the boot image, or what that even is. Is that the filesystem that is built into the kernel?
Binero said:
I have looked into init.rc, but that only seemed to create the /data mountpoint, but not actually mount to it. I've no idea how to edit the boot image, or what that even is. Is that the filesystem that is built into the kernel?
Click to expand...
Click to collapse
Umm.. You should download unpackbootimg or dsixda's Android Kitchen to edit boot.mg. You cannot edit init.rc on Root explore. Use unpack boot.img menu which is from Android Kitchen!
Jason Hyunwoo said:
Umm.. You should download unpackbootimg or dsixda's Android Kitchen to edit boot.mg. You cannot edit init.rc on Root explore. Use unpack boot.img menu which is from Android Kitchen!
Click to expand...
Click to collapse
I'll try that out. Still not sure where to look though. As I said, init.rc does not contain any commands mounting /data.
Binero said:
I'll try that out. Still not sure where to look though. As I said, init.rc does not contain any commands mounting /data.
Click to expand...
Click to collapse
or you could edit look at other *.rc files!
Isn't this what you're looking for?
http://forum.xda-developers.com/galaxy-s2/themes-apps/tool-directorybind-data-to-externalsd-t1410262
sndsnd said:
Isn't this what you're looking for?
http://forum.xda-developers.com/galaxy-s2/themes-apps/tool-directorybind-data-to-externalsd-t1410262
Click to expand...
Click to collapse
I want to mount my sd card to my /data. That simply creates a symbolic link.
Jason Hyunwoo said:
or you could edit look at other *.rc files!
Click to expand...
Click to collapse
There is only 2 rc files, and one of them is specific to my recovery image.

Completely blank storage directory after TWRP wipe - how to restore basic filesystem?

Sorry if this is a basic question. I have an LG pad 7 v410 with lineage 14.1. I wiped everything under advanced wipe in TWRP to do a fresh install of the rom from a zip on an sd card. After the install I noticed that the entire data/media directory is blank except for an empty TWRP directory.
If I cd to /storage/emulated in terminal and ls I get 'permission denied' even with su. I use mix as a file explorer and I can't access /storage/emulated at all from there either. Even if I create directories in data/media mix still shows internal storage as completely blank.
Obviously this is a problem. If I try to download a file I get 'download failed no SD card' because there's no download directory. I don't keep any data in internal storage so I have no internal storage backup - what's the easiest way to fix this? I thought just flashing the ROM would create a basic userspace filesystem but apparently not - I tried multiple times with multiple zips. This whole thing is really aggravating, so many thanks to anyone who takes the time to point me in the right direction.
If it matters I restored a nandroid backup and that's what I'm using now.
Tldr; internal storage (storage/emulated/0) is completely blank after advanced wipe and rom flash and I just want to be able to access a basic filesystem
RainM8kr said:
Sorry if this is a basic question. I have an LG pad 7 v410 with lineage 14.1. I wiped everything under advanced wipe in TWRP to do a fresh install of the rom from a zip on an sd card. After the install I noticed that the entire data/media directory is blank except for an empty TWRP directory...
Click to expand...
Click to collapse
Your best bet is to post this question within the following Official LineageOS thread for your device.
https://forum.xda-developers.com/showthread.php?t=3583952
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT PROVIDE SUPPORT VIA PM UNLESS ASKED/REQUESTED BY MYSELF.
PLEASE KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Categories

Resources