Noone has marked this solved so I am posting here to make it easier to find the solution that works.
Credit goes to hachamacha.....if this works for you, please click the link below and click 'thanks' on his original post. I can't figure out how to quote his post without it just adding to the many pages of the OP he commented on, plus I have changed the instructions to do it all within TWRP instead of using adb. It worked and was much simpler, BUT, he gets the credit for the solution.
https://forum.xda-developers.com/oneplus-5/help/error-255-twrp-t3739468/page2
For me the problem was hidden 999 files. I cleared everything mentioned in all the other posts, but still could not back up. The 999 files were tucked away in 2 spots no one had mentioned in any post.
Reminder, turn off your screenlock password before you start.
I booted into TWRP, clicked advanced, terminal, cd /data/, typed "ls */999", made a note of all the locations that had 999 files.
Then I ran "ls */10" to make sure there was not a guest profile( there wasn't for me, but you may have one).
Went back to file manager, navigated to each location, deleted the 999 folders.
Rebooted into TWRP, repeated the previous steps to verify no more 999 files, advanced, back up. Worked like a charm.
Reboot system.
Be sure to copy the file to your computer if you are going to install a custom ROM as it will get wiped in the process.
Here is the content of hachamacha's post post:
"I just ran into this too. I'm looking here after the fact and the way I fixed it and don't see what I did so this is it:
- for me, it was the presence of multi-user directories in numerous places. I don't use multi-users on pie so not sure why they're there, but it hurts nothing to delete them.
- if I only deleted 999, that'd not have worked for me
- First: I read the recovery.log file after rebooting after the failed backup. It's a big file, so I transferred it to a laptop and used notepad+ --
- Look in there for the error (tarfork) and then look for the file/directory that began the chain of errors. Mine happened to be /data/vendor_ce/10
- Go to your /data/ folder in root explorer (or equiv):
- Do an ls */10 to find out all the places the 10 user occurs or you'll then get the error on the next 10 file. For me it was 5 other dirs.
- All you should have for user number directories in those places is 0 (unless you use multiple users and then I don't know).
- delete each one. I did it all from adb on a booted op5. so like this: "rm -r /data/{folder}/xx" where {folder} is where you found the 10 11 whatever, and xx is user-numbers other than 0
- when you've got them all gone, reboot directly into recovery so you have no chance of the system recreating them (so for me: adb reboot recovery)
- Backup. Mine worked no errors and was actually faster too because the errors take time to timeout.
- reboot system
Careful when using 'rm -r' that you only delete what you want to or you can mess up your phone. - cheers.
Edit: Twrp Version: Probably should mention SW versions: Twrp, latest 991 blu_spark twrp, OS: 9.0.3 Pie, Other: xXx noLimits Rom/"
PattayaGlock said:
Noone has marked this solved so I am posting here to make it easier to find the solution that works.
Credit goes to hachamacha.....if this works for you, please click the link below and click 'thanks' on his original post. I can't figure out how to quote his post without it just adding to the many pages of the OP he commented on, plus I have changed the instructions to do it all within TWRP instead of using adb. It worked and was much simpler, BUT, he gets the credit for the solution.
https://forum.xda-developers.com/oneplus-5/help/error-255-twrp-t3739468/page2
For me the problem was hidden 999 files. I cleared everything mentioned in all the other posts, but still could not back up. The 999 files were tucked away in 2 spots no one had mentioned in any post.
Reminder, turn off your screenlock password before you start.
I booted into TWRP, clicked advanced, terminal, cd /data/, typed "ls */999", made a note of all the locations that had 999 files.
Then I ran "ls */10" to make sure there was not a guest profile( there wasn't for me, but you may have one).
Went back to file manager, navigated to each location, deleted the 999 folders.
Rebooted into TWRP, repeated the previous steps to verify no more 999 files, advanced, back up. Worked like a charm.
Reboot system.
Be sure to copy the file to your computer if you are going to install a custom ROM as it will get wiped in the process.
Here is the content of hachamacha's post post:
"I just ran into this too. I'm looking here after the fact and the way I fixed it and don't see what I did so this is it:
- for me, it was the presence of multi-user directories in numerous places. I don't use multi-users on pie so not sure why they're there, but it hurts nothing to delete them.
- if I only deleted 999, that'd not have worked for me
- First: I read the recovery.log file after rebooting after the failed backup. It's a big file, so I transferred it to a laptop and used notepad+ --
- Look in there for the error (tarfork) and then look for the file/directory that began the chain of errors. Mine happened to be /data/vendor_ce/10
- Go to your /data/ folder in root explorer (or equiv):
- Do an ls */10 to find out all the places the 10 user occurs or you'll then get the error on the next 10 file. For me it was 5 other dirs.
- All you should have for user number directories in those places is 0 (unless you use multiple users and then I don't know).
- delete each one. I did it all from adb on a booted op5. so like this: "rm -r /data/{folder}/xx" where {folder} is where you found the 10 11 whatever, and xx is user-numbers other than 0
- when you've got them all gone, reboot directly into recovery so you have no chance of the system recreating them (so for me: adb reboot recovery)
- Backup. Mine worked no errors and was actually faster too because the errors take time to timeout.
- reboot system
Careful when using 'rm -r' that you only delete what you want to or you can mess up your phone. - cheers.
Edit: Twrp Version: Probably should mention SW versions: Twrp, latest 991 blu_spark twrp, OS: 9.0.3 Pie, Other: xXx noLimits Rom/"
Click to expand...
Click to collapse
I followed your instructions and this is the text I got from the log file at the first instance of TarFork :
I:InfoManager saving '/external_sd/TWRP/BACKUPS/R58NC01GKMZ/2021-06-14--12-28-49_RP1A200720012A515FXXU4DUB1/system.info'
I:createTarFork() process ended with RC=0"
The second instance of Tarfork had this text:
I:Error adding file '/data/log/kTkdhdczEiKXeoU2sGBddC/_o43CsDAAAAQG3UaA4eJvz5TSJ2ntkPOu' to '/external_sd/TWRP/BACKUPS/R58NC01GKMZ/2021-06-14--12-28-49_RP1A200720012A515FXXU4DUB1/data.f2fs.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/R58NC01GKMZ/2021-06-14--12-28-49_RP1A200720012A515FXXU4DUB1/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I tried all kinds of searches unsuccessfully in Terminal Emulator but since my log text is very different than your example I am at a loss. Do you have any advice of where I should go from here?
Related
Tired of having to redownload and reinstall all of your apps when you reflash your phone? SaveMyApp can help.
This script will setup your phone so that after your flash to your favorite rom, all* of your apps will be install on the first boot. These apps will show up in the market too!
Also, the script will allow you to backup your /data/data folder to your sdcard and then restore it after your reflash. The /data/data is where Most of your user data is stored. This is not guaranteed to fully restore everything. This also does not backup your Google, Android, or Motorola settings; this is to improve compatibility with roms.
*The /preinstall folder is limited to 120MB, so if you have more then of apps this script will not fully work.
This should work with all phones, however it has only been tested on the Droid 2/X.
If you want to test this script on a different phone, let me know the /preinstall size and if it worked or not.
v0.1.4.2 - 11/17/2010
-Improved backup and restore of data
-Improved script usability
v0.1.4.1 - 11/17/2010
-Improve safety of removing /preinstall/app
v0.1.4 - 11/16/2010
-Added option to clear the /preinstall/app folder
-Added messages to support clear /preinstall/app
v0.1.3 - 11/12/2010
-Added backup of /data/data
-Added messages to support Data Backup
v0.1.2 - 11/11/2010
-Added Backup /data/app-private
-Show /data/app size, prompt user for continue
-Additional messages added to improve user experience
v0.1.1 - 11/10/2010
-First Release
-Backup and Restore /data/app
Installation:
WARNING: This steps must be completed as listed, failure to do so may result in unexpected errors which I am not responsible for.
1. Enable USB debugging and make sure Sdcard is mounted on phone
1. adb push apps.sh /data
2. adb shell
3. cd /data
4. chmod 775 apps.sh
5. ./apps.sh
a. Follow the onscreen directions
6. Reboot and proceed to wipe and reflash
7. On boot, wait between 5 and 10 minutes depending on how many apps you have before logging into your account. (30 apps takes about 4-5 minutes)
8. Login to your account
9. Droid 2/X Bootstrapper -> Bootstrap Recovery
10. Enable USB debugging and make sure Sdcard is mounted on phone
11. adb shell
12. tar -xzpf /sdcard/savemyapp/backup.tgz
FAQS:
Market isn't showing apps!
settings->applications->Manage Applications->All->Market->Force Stop, Clear data
Why is there a MACOSX file when I extract the archive?
Because I am lazy and I zipped it using Mac's built in archiver.
The script isn't working right away!
Redownload the newest script, just to make sure
Disclaimer:
You may repost this, but you must quote it as is.
I will only be responding to the threads I started on the Xda-Developers forums.
First!
I'm just holding a parking spot for this post!
What a great idea...thank you for developing this, im so tired of re downloading my apps back and setting everything up...done it about 10 times in the past month between sbfing and updating the fission rom several updates in a row so thank you...will most definitely be using this when I flash roms in the future. Thanks again
Sent from my DROID2 using XDA App
Excellent program! I'm having trouble getting it to work unfortunately. When apps.sh begins to copy files from /data/apps, I get errors saying "No space left on device" after every single file it tries to copy. This is of course not true since this D2 has over 6 gigs free on the system storage.
I am running this through the window's command prompt, but I don't see much in the code that won't run on windows aside from "du" which isn't even relevant unless my app + app-private folders combined size is over 120 MB (it's not).
I'm also running Epic 2.5 if that has anything to with this.
Any ideas? Am I just doing this terribly wrong?
Thanks!
tildaSparky said:
Excellent program! I'm having trouble getting it to work unfortunately. When apps.sh begins to copy files from /data/apps, I get an error saying "No space left on device." This is of course not true since this D2 has over 6 gigs free on the system storage.
I am running this through the window's command prompt, but I don't see much in the code aside from "du" which can't run with windows.
Any ideas? Am I just doing this terribly wrong?
Thanks!
Click to expand...
Click to collapse
If you read the first post it states the /preinstall folder can only hold only 120mb so it you have more than that to backup it won't fully work..I'm guessing that's were the apps are being saved...
Sent from my DROID2 using XDA App
turkeybuzzard said:
If you read the first post it states the /preinstall folder can only hold only 120mb so it you have more than that to backup it won't fully work..I'm guessing that's were the apps are being saved...
Sent from my DROID2 using XDA App
Click to expand...
Click to collapse
Apps are normally saved in /data/app this script copies those apks to /preinstall so that after a wipe they will automatically be installed on the first boot. Yes /preinstall is limited to about 120MB.
tildaSparky said:
Excellent program! I'm having trouble getting it to work unfortunately. When apps.sh begins to copy files from /data/apps, I get an error saying "No space left on device." This is of course not true since this D2 has over 6 gigs free on the system storage.
I am running this through the window's command prompt, but I don't see much in the code aside from "du" which can't run with windows.
Any ideas? Am I just doing this terribly wrong?
Thanks!
Click to expand...
Click to collapse
Do you get the "No space left on device" message instantly or after some apks were copied to the /preinstall folder?
Here's what I get
Working…
cp: /preinstall/app/com.google.android.apps.maps-1.apk: No space left on device
cp: /preinstall/app/com.google.android.apps.translate-2.apk: No space left on device
cp: /preinstall/app/com.google.android.gm-1.apk: No space left on device
cp: /preinstall/app/com.google.zxing.client.android-2.apk: No space left on device
etc.
=(
tildaSparky said:
Here's what I get
Working…
cp: /preinstall/app/com.google.android.apps.maps-1.apk: No space left on device
cp: /preinstall/app/com.google.android.apps.translate-2.apk: No space left on device
cp: /preinstall/app/com.google.android.gm-1.apk: No space left on device
cp: /preinstall/app/com.google.zxing.client.android-2.apk: No space left on device
etc.
=(
Click to expand...
Click to collapse
How big is your /data/app folder?
OK! I sort of have it fixed. In that I'm not getting my original error.
What I did (which in retrospect was not such a hot idea) was delete the /preinstall/ folder and then created a new one with the subfolders /app/ and /md5/. The logic behind was that I saw the script had nothing in it to clean out the original preinstall folder, and I noticed that it had silly things like NFS in it. As I said, in retrospect I should have just deleted specific items from the folder, but that's what I get for acting without thinking too much.
How bad do you think it is that I remade the preinstall folder from scratch?
Now my preinstall folder is properly populated (I think). But the data won't back up for some reason. I think it might have something to do with the if statements being broken. I'm gonna go ahead and modify your script to bypass the if/else statements and see what happens.
SaveMyApp v0.1.2
By csscmaster3
Your app folder takes up
du: not found
If your app folder is more then 114MB I don't recommend continuing
do you want you to continue? (y/n)y
y
[[: not found
Working…
ignore No such file or directory error if you get it
tee: not found
SaveMyApp has completed your apps
Do you want to backup your data? (y/n)y
y
[[: not found
SaveMyApp has completed.
As an aside my app folder is 28 MB and my app-private folder has only the apkinstaller.
tildaSparky said:
OK! I sort of have it fixed. In that I'm not getting my original error.
What I did (which in retrospect was not such a hot idea) was delete the /preinstall/ folder and then created a new one with the subfolders /app/ and /md5/. The logic behind was that I saw the script had nothing in it to clean out the original preinstall folder, and I noticed that it had silly things like NFS in it. As I said, in retrospect I should have just deleted specific items from the folder, but that's what I get for acting without thinking too much.
How bad do you think it is that I remade the preinstall folder from scratch?
Now my preinstall folder is properly populated (I think). But the data won't back up for some reason. I think it might have something to do with the if statements being broken. I'm gonna go ahead and modify your script to bypass the if/else statements and see what happens.
SaveMyApp v0.1.2
By csscmaster3
Your app folder takes up
du: not found
If your app folder is more then 114MB I don't recommend continuing
do you want you to continue? (y/n)y
y
[[: not found
Working…
ignore No such file or directory error if you get it
tee: not found
SaveMyApp has completed your apps
Do you want to backup your data? (y/n)y
y
[[: not found
SaveMyApp has completed.
As an aside my app folder is 28 MB and my app-private folder has only the apkinstaller.
Click to expand...
Click to collapse
The NFS removal is a good call, I will append the script to check the /preinstall folder and prompt to remove the files there
The reason you are having trouble with this script looks it be like because you are not running it on the phone itself...meaning to say you are not running it via a terminal emulator on the phone nor are you running it via adb shell. The backup uses tar, which isn't on windows by default.
Actually I'm running everything through the adb shell. It's puzzling to me too. My terminal emulator for some reason doesn't have root access. At this point I think I'm just going to SBF anyway.
At any rate, I just decided to pull /data/data/ from my phone onto my HD and I will replace it after I reflash and install my programs, but before I log into my google account. Do you see any reason for this not to work?
tildaSparky said:
Actually I'm running everything through the adb shell. It's puzzling to me too. My terminal emulator for some reason doesn't have root access. At this point I think I'm just going to SBF anyway.
At any rate, I just decided to pull /data/data/ from my phone onto my HD and I will replace it after I reflash and install my programs, but before I log into my google account. Do you see any reason for this not to work?
Click to expand...
Click to collapse
Hmmm, you might have to check your superuser app to see if you accidently are denying su access. In adb shell do you have a $ or a #?
Backing up the /data/data folder to your HD then restoring might not work because I am not sure if it will retain the owner, permissions, etc.
I had a # in my shell. There was something slightly wonky about my root I think. At any rate my backup method didn't work so well (as you predicted) - it caused timeriffic to force close when I tried to load in my old settings via /data/data/.
I will try using this again once I've got my shiny new Fission 2.1 set up as I want.
Thanks for your attentiveness!
I'm guessing this script should be run AFTER all of the applications have been installed. Is this correct?
wsfanatic said:
I'm guessing this script should be run AFTER all of the applications have been installed. Is this correct?
Click to expand...
Click to collapse
That is correct
Sent from my DROID2 using XDA App
Ooooo this is getting popularrrr
Is this D2 specific, or would it work on any phone?
theimpaler747 said:
Is this D2 specific, or would it work on any phone?
Click to expand...
Click to collapse
It works with the D2 and should work with the DX, anything else is use at your own risk, if it does work let me know though
csscmaster3 said:
It works with the D2 and should work with the DX, anything else is use at your own risk, if it does work let me know though
Click to expand...
Click to collapse
Might risk it and try it on my hero Regardless, nice work
theimpaler747 said:
Might risk it and try it on my hero Regardless, nice work
Click to expand...
Click to collapse
The only problem I could forsee would be the /preinstall folder being different or something, if you do end up trying the script could you let me know the size of the /preinstall folder?
Greetings,
Just to make things clear, I have used the search feature. However, I am not clear on the answers that I am reading.
I need to restore or export 1 SMS thread (or entire mmssms.db, doesn't matter) from an old ROM.
Last week my ROM crashed, and I had to switch to a new ROM.
It was a Sense 3.0 ROM (phone is HTC Droid Incredible 2). I was playing around with the different lockscreen options, applied the Stocks Lockscreen, and when I locked/unlocked my phone to see how it looked, nothing but My wallpaper and the top status bar showed up. There was no way to unlock the phone. I had to yank battery to reboot. The phone feature still worked, as I could see the text messages come through on the status bar, and my phone rang, but no notifications cam up on the screen. I was stuck. I did a ClockworkMod backup (aka Nandroid?) and switched to another ROM.
I used unyaffs on my Ubuntu Machine to extract the contents of data.img.
I have the mmssms.db file from /data/com.android.providers.telephony/databases backed up.
Using "SQLite database browser" I can see a preview of the SMS thread.
Technically, I don't need the SMS thread on my phone. If I have a .txt that is neat, organized, and readable, that will be fine. I just assume that I should reinsert the thread (or entire mmssms.db) into my current ROM so I can use SMS Backup and Restore.
My ultimate goal is to be able to get the SMS thread into a text document or large screenshot, which I can send to some friends. It involves a joke/prank, and is quite funny....a bit hard to explain.
How can I get the old mmssms.db (or just one thread) into my current ROM, or into a text document (or something of the like)? I have read something that mentions adb...which I am now Googling to find out what it stands for....so you can guess the amount of knowledge I have on it...
I believe I made that clear....if it is not, let me know, and I'll edit/repost.
tl;dr?
* Need SMS message thread from old ROM
* 1) Old ROM crashed.
* a) Can't get in
* i) Made a backup
* 2) Unyaffed backup
* a) Saved mmssms.db
How to get SMS thread (or entire mmssms.db into new ROM or into text document on computer?
Thanks for all the help!
[::AP::]
Try this on your console, if you have usb debugging enabled.
It should let your phone boot without auto activating the lockscreen.
Code:
adb -d shell
# sqlite3 data/data/com.android.providers.settings/databases/settings.db
sqlite> update system set value=0 where name='lock_pattern_autolock';
sqlite> .exit
# exit
adb reboot
Edit: Wasnt there a post before saying, if you could get in, it would be enough?
Thanks for the response.
Yes, getting into the old ROM would be enough, so I could use a SMS Backup tool, email the texts, and forget about it.
However, I am pretty new to Android. I'm a bit lost with your explanation.
Console meaning....the terminal in Ubuntu (phone connected?)....Android SDK?
If you could go into more detail, that would be great. Thanks.
[::AP::] said:
Thanks for the response.
Yes, getting into the old ROM would be enough, so I could use a SMS Backup tool, email the texts, and forget about it.
However, I am pretty new to Android. I'm a bit lost with your explanation.
Console meaning....the terminal in Ubuntu (phone connected?)....Android SDK?
If you could go into more detail, that would be great. Thanks.
Click to expand...
Click to collapse
First thing you need to do is make sure you have the android sdk. The sdk are the tools that let you "communicate" with your mobile device through the computer. If you don't have it, google android sdk installation and you should be able to fnd the link. I tried to put the actuall link but I was able to because I don't have more than 8 posts, sorry.
Now you can remove and install files from your android device as needed.
1. Connect your phone to your computer.
2. Using your Linux Terminal, change directory to the platform-tools folder. On my Windows computer I type cd c:\android-sdk\platform-tools but your sdk folder might have a different name so you should type something like this: cd /sdk-folder-name/platform-tools
3. Now type in: adb devices and your devices should be listed. If you get a message saying No Device Found then you need turn on usb debug mode or you need the drivers installed on your computer for your phone.
4.If your device is found, you need to back up your current database by typing: adb pull /data/data/com.android.providers.telephony/databases "directory on your linux machine where you want the files to be save"
5. Now type: adb push "path to the mmssms.db file" /data/data/com.android.providers.telephony/databases and do the same for the telephony.db file. Both of these files must be pushed onto your device in order to see the text messeges.
6. You should be able to see your texts from your old rom now on your new rom. Once you're done just push your backed up mmssms.db and telephony.db file from your newer rom back into your phone.
I don't know of a way to combine the text so this is the way I do it. I hope that helps!
Sorry for the late response - I have been quite busy.
I'll try this out and let you know.
Thanks a ton,
[::AP::]
This is an old thread but I'd like to share my recent experience with restoring SMS messages. Today decided to try mod on my Nexus 6 running rooted stock Nougat. Did full backup with TWRP, tried the mod, didn't have use for it and did full restore. All SMS messages were gone. Checked mmssms.db sure enough size was 0. So why TWRP didn't restore is a good question.
The way is was restored is by extracting mmssms.db and journal from TWRP backup using Nandroid Manager and copying to my location /data/user_de/0/com.android.providers.telephony. Started messenger but still no messages. Opened terminal app and changed ownership and group on both files. After that everything was restored to prebackup state.
I'm trying to do the same thing between a Droid Turbo and GS4. The Turbo screen died, but the phone boots and can go to recovery.
VZW GS4 - 5.0.1
VZW Droid Turbo - 6.0
- I copied the entire /data/data/com.android.provider.telephone directory from the Turbo using ADB
- Copied Turbo mmssms.db to the S4 (renamed the old S4 file mmssms.db.bak)
- Set permissions to 660, radio:radio (as per the old S4 file)
After a restart, Messages showed the old S4 text messages, even though I renamed the original mmssms.db file.
In other words, the S4 shows the old message history, even though the mmssms.db file has changed!
- There were two other files, mmssms.db-shm, mmssms.db-wal
- Renamed these to *.bak
After a restart, Messages now shows no text message history.
When I copied the telephony.db files over, the Phone app went into a bootloop, with a constant repeating dialog that it had crashed. I had to go into adb to reset the files.
It looks like something else is needed to make Messages see the new sms db.
Dear Hjicons,
Could you please give exact commands and what to type in adb shell to change the ownership and group of the mmssms.db and the journal?
Thanks in advance.
I did it "on the fly" without adb, only using MiXplorer
On a rooted Moto G XT1032 running KK
Copy (replace) backed up .db files in data/data/com.android.providers.telephony/databases
set permission to 600 rw-rw---- and owner, group to 1001 radio on all newly replaced files
Terminate (kill) message app, relaunch it and you're good to go, without even rebooting.
I set long press back key to terminate (kill) app via GravityBox
The same you can do with phone calls .db (same dir), or Whatsapp .db, in com.whatsapp/databases, permission to 600 and owner/group Whatsapp, then kill and relaunch
Hi together,
earlier I wanted to finally give the L-Preview a shot so I downloaded it and installed it as it was mentioned in the thread's instructions. Everything was fine until I was forced to reinstall it because Wifi kept getting stuck at switching (which didn't fix itself after a reboot) and some other things. So I did everything again like I did before but after I booted it up again and set up everything I noticed that in ES-File manager I couldn't access my sdcard directory. So I booted back into my recovery and saw that even there my usual sdcard directory was nearly gone except for a few folders (0, clockwordmod, legacy, obb and TWRP) which I couldn't see in ES-File explorer before. Because I was a little confused (and angry because I never had something like this happening) I just rebooted my device and connected it to my pc to see what I can access from there. But it was the same result like with the manager, there were no folders at all . So I went back into my recovery and just looked a bit around and after a while I found out that the whole /sdcard files just moved to the "0" folder that is inside the "old" sdcard-directory. And this is kind of where I am at right now not knowing what to do to get everything back to normal. I hope there is a way I can recover all of my files or at least a way that I can move them to my pc (had a few backups on there that I was too lazy to move which I do regret now...). If there is someone who understood my post and knows a solution to my problem please help me! I am actually quite lost right now because I can't even use Whatsapp without loosing all of my messages
I am sorry that I can't give you any pictures of my phones status but I don't know how I could do a screenshot/video in TWRP :/
Edit: I found an older device of myself with which I was able to take some pictures (has very bad quality because it has a little crack in the camera)
On InternerSpeicherSeite1 you can see that on my pc it shows that storage is used up but on InternerSpeicherSeite2 you can see that it is empty if I open it.
In ES you can see that there is this /legacy instead of /sdcard.
In TWRP1 you can see that the whole /scard directory is nearly empty.
In TWRP2 is the /sdcard direcory that is now in /sdcard/0 but unaccesable from anywhere except TWRP.
R4gi3X said:
Hi together,
earlier I wanted to finally give the L-Preview a shot so I downloaded it and installed it as it was mentioned in the thread's instructions. Everything was fine until I was forced to reinstall it because Wifi kept getting stuck at switching (which didn't fix itself after a reboot) and some other things. So I did everything again like I did before but after I booted it up again and set up everything I noticed that in ES-File manager I couldn't access my sdcard directory. So I booted back into my recovery and saw that even there my usual sdcard directory was nearly gone except for a few folders (0, clockwordmod, legacy, obb and TWRP) which I couldn't see in ES-File explorer before. Because I was a little confused (and angry because I never had something like this happening) I just rebooted my device and connected it to my pc to see what I can access from there. But it was the same result like with the manager, there were no folders at all . So I went back into my recovery and just looked a bit around and after a while I found out that the whole /sdcard files just moved to the "0" folder that is inside the "old" sdcard-directory. And this is kind of where I am at right now not knowing what to do to get everything back to normal. I hope there is a way I can recover all of my files or at least a way that I can move them to my pc (had a few backups on there that I was too lazy to move which I do regret now...). If there is someone who understood my post and knows a solution to my problem please help me! I am actually quite lost right now because I can't even use Whatsapp without loosing all of my messages
I am sorry that I can't give you any pictures of my phones status but I don't know how I could do a screenshot/video in TWRP :/
Click to expand...
Click to collapse
Move all your folders and files back to the old place, or get them to your pc with adb pull (use google if you want to now how) and flash the factory image for safety
You can learn to adb pull by clicking the link in my signature and then locating the adb and fastboot thread
Don't adb push your data back though. Adb pushing your entire sdcard back will cause permissions problems so use MTP to transfer data back
Sent from my Nexus 5 using Tapatalk
its a common issue with L, i even experienced it myself. first, there is a short terminal emulator command you can use. i dont know what it is, but a search should find it for you. itll move all back to where it should be. or secondly, you can do what i did. i didnt know there was a terminal command, so i used root explorer to move everything back manually. took me about 15-20 minutes.
GtrCraft said:
Move all your folders and files back to the old place, or get them to your pc with adb pull (use google if you want to now how) and flash the factory image for safety
Click to expand...
Click to collapse
rootSU said:
You can learn to adb pull by clicking the link in my signature and then locating the adb and fastboot thread
Don't adb push your data back though. Adb pushing your entire sdcard back will cause permissions problems so use MTP to transfer data back
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I already know how to adb pull but it just gives me the output seen on the picture...
there appears to be 3 different terminal emulator scripts people have been using, one for for some but not for others. heres one that i found, try it out in a terminal emulator app..
su(press enter)
restorecon -r /data/media/0/*(press enter)
simms22 said:
there appears to be 3 different terminal emulator scripts people have been using, one for for some but not for others. heres one that i found, try it out in a terminal emulator app..
su(press enter)
restorecon -r /data/media/0/*(press enter)
Click to expand...
Click to collapse
I've tried your command but it did nothing.
But I found a way simpler solution now, as I could still access my data in TWRP I was able to flash a 4.4.4 Rom (that I luckily still had on my phone^^) and now I can access everything including the "0" Folder on my pc again. So I'll move everything on my pc now and then copy it to the /sdcard directory
Thanks though for your help, really appreciate the support from the xda-community!!
But I gotta say good night now as it is already 1am but I will update this post one more time tomorrow giving a final result.
You already know /sdcard isn't working properly. Pull /data/media/0
Hi, Im new to this device but right after I got it I did the right thing and voided my warranty Rooted and installed a custom recovery. The recovery has been a bit of a pain but that is a story for another thread.
The problem I am having is that when I try to take a backup from recovery it errors (I forget the error, sorry. ) however the backup is still right there in the backup directory. I tried a second attempt at a backup (to see if it would error again) and these two backups filled my remaining memory. lI of course used my file explorer to delete these extraneous backups-- only to see that they are not deletable. I also tried on the PC. The folder lists read and write in the permissions. I am kind of at a loss as to what to do. IIRC correctly from a while back with this issue the answer lies somewhere in CHMOD, but I cant quite seem figure it out. CD to the directory in a terminal emulator and then CHMOD 777? Thanks for your help in advance.
knoober said:
Hi, Im new to this device but right after I got it I did the right thing and voided my warranty Rooted and installed a custom recovery. The recovery has been a bit of a pain but that is a story for another thread.
The problem I am having is that when I try to take a backup from recovery it errors (I forget the error, sorry. ) however the backup is still right there in the backup directory. I tried a second attempt at a backup (to see if it would error again) and these two backups filled my remaining memory. lI of course used my file explorer to delete these extraneous backups-- only to see that they are not deletable. I also tried on the PC. The folder lists read and write in the permissions. I am kind of at a loss as to what to do. IIRC correctly from a while back with this issue the answer lies somewhere in CHMOD, but I cant quite seem figure it out. CD to the directory in a terminal emulator and then CHMOD 777? Thanks for your help in advance.
Click to expand...
Click to collapse
If you are using TWRP, It is not possible to delete twrp backup images using normal ways. Either you can install esfile explorer and navigate to device/data/media/0/twrp/backups/ and delete from there. Or use file manager in TWRP to delete the backups. I think there is also another option in twrp to view or delete backups.
Sent from my Moto G using Tapatalk 2
Ill check out the other things you said, but Im actually getting this problem in ESfile... Ill report back if I can get at it through the recovery.
Edit: ESfile works. I followed the path you laid out ad got there just fine I didnt realize Id have to take such a roundabout path. Thank you.
So long story short. Dumbass me decided to change my swipe pattern on my Samsung S22 Ultra while jetlagged on holiday. I usually use my fingerprint and seems every 72 hours one would need to confirm with the swipe pattern. So no I'm locked out and having to wait 2 days for the next retry. I don't want to reset as I have a ton of photos on it I've not yet backed up and will probably end in divorce if I loose them.
Things I've tried:
1. Swearing, blaming my own stupidity while promising the miss I will get the photos back.
2. Tried to install TWRP via ODIN3 so that I can remove the gesture.key via the file manager that should let me log in again.
Got blocked my OEM during bootloader
Still blocked even after trying the two butting plug plugging in the cable, then pressing up to enable oem
3. Tried loading TWRP via ADB
Kept on saying invalid signature.
4. Tried via Fasboot to load TWRP but I can not seem to boot my phone into fastboot.
5. Tried to inall AROMA Filemanager (0.2 after compling it)
Got the same error in adb with signature not correct.
6. All the "apps" out there is just a money grab that ends up wiping your phone .
7. Also found strange tutorials where you have to enter a ton of USSD codes to "unlock your phone, but I'm sure this is a scam somehow.
Things want to try, but probably will be blocked somewhere along the line:
1. Try writing a script to remove the gesture.key
Zip the script via Zipme / Flashable zip creator (have not worked with these before)
Loading the script with adb sideload (since sideload is the only option (all other adb commands is blocked))
If this does not work try making the script into a rom (Not even sure if this is possible)
Load the rom and hopefully it will run to delete the gesture.key file
When all else fails:
Start looking for a good divorce lawyer.
Any assistance would really be helpful. I've been on this for about 48 straight now and I'm starting to make stupid mistakes. Also sorry for duplicate posting.
If you are syncing your photos to Onedrive using Gallery, to Samsung Cloud, or to Google Photos, then those images are backed up. They will resync after resetting the phone.