How to move TWRP Backup to PC, permission required? - Xiaomi Mi 5 Questions & Answers

Dear Friends
I've been searching for infos about how to move TWRP folder to pc. My MIUI8 backup spend 5gb
Standard copy method doesnt work because of permission thing . Adb pull sdcard/TWRP in recovery also doesnt work. Permission change required.
How to change forlder permission? Or any idea how to copy the folder?
Thanks in advance.

Man, Just drag the folder on PC.... Use USB 2.0 not 3.0

Philb90 said:
Man, Just drag the folder on PC.... Use USB 2.0 not 3.0
Click to expand...
Click to collapse
that the first thing i did.
doesnt work
no file copied

ginjopowder said:
Dear Friends
I've been searching for infos about how to move TWRP folder to pc. My MIUI8 backup spend 5gb
Standard copy method doesnt work because of permission thing . Adb pull sdcard/TWRP in recovery also doesnt work. Permission change required.
How to change forlder permission? Or any idea how to copy the folder?
Thanks in advance.
Click to expand...
Click to collapse
same thing happening to me , my backup is of 9GB
?? someone help

Go the recovery (TWRP) and then try again to copy the data.
TWRP does mount the storage and you can then use the Windows Explorer to copy the data safely.
Should work.

elot01 said:
Go the recovery (TWRP) and then try again to copy the data.
TWRP does mount the storage and you can then use the Windows Explorer to copy the data safely.
Should work.
Click to expand...
Click to collapse
I did what you told , but my storage space insufficient to copy the backup.
But i have succeded copy the TWRP Back up by accident actually.
What i did , set the twrp folder to chmod 755 and enter then restart phone to recovery again.
TWRP came up and ask wether to keep system as read only or allow system modification.
I set allow , then connect to pc. And it works! Copy drag drop etc work as usual.
However I cannot manually see the TWRP setting for the read/write system... hmm

ginjopowder said:
I did what you told , but my storage space insufficient to copy the backup.
But i have succeded copy the TWRP Back up by accident actually.
What i did , set the twrp folder to chmod 755 and enter then restart phone to recovery again.
TWRP came up and ask wether to keep system as read only or allow system modification.
I set allow , then connect to pc. And it works! Copy drag drop etc work as usual.
However I cannot manually see the TWRP setting for the read/write system... hmm
Click to expand...
Click to collapse
how extactly did you chmod 755??

dkmsn8 said:
how extactly did you chmod 755??
Click to expand...
Click to collapse
it is inside TWRP>advance
and folder setting for /TWRP/Backups
button chmod 755
im wasn't sure this command did change permission or not , but when restart TWRP asked about file system setting.

ginjopowder said:
it is inside TWRP>advance
and folder setting for /TWRP/Backups
button chmod 755
im wasn't sure this command did change permission or not , but when restart TWRP asked about file system setting.
Click to expand...
Click to collapse
I did but twrp didn't asked anything ..
Edit: i can copy files to pc while device is booted into twrp

Related

How to push fonts into system dir???

Hi to All!
Is there some way to transfer Hebrew fonts from sd card to system of device?
I can see sd cards folders,also i see WildFire system folder-like fonts e.t.c.
i use dual file manager app to manage files on sd card,i success to copy the file from sd card,but i can't to paste the fonts on system folders.There isn't option to paste the copied files.
Some advance on this issue?
Thank in advance!!!
I found my problem.
I thought that i done softRoot,but unfortunately it isn't,i can't to paste the files because the folders of system still closed.
maybe try with a rooted explorer.
Push the file to your sdcard and then copy it with the root explorer to the font dir.
(didn't tried it, it's just an idea)
No - it doesn't matter,i tried with two different application to push the fonts,all systems folders is closed,i think it's related to root of device.
Anyway, thanks for advise.
vadella said:
No - it doesn't matter,i tried with two different application to push the fonts,all systems folders is closed,i think it's related to root of device.
Anyway, thanks for advise.
Click to expand...
Click to collapse
If you want to push files to /system using soft root, you'll need to mount bind and then symlink a new directory containing all of system's content.
Otherwise, I'd just wait for full root which will be with you soon.
Best,
Martin
Sent from my HTC Wildfire using XDA App
Better- i'll wait.
Hi Martin,
I prefer to wait for unrEVOked root.
By the way,do you have any idea: when the root should be published?
Thanks,
Well, technically, the root is ready.
I've been hassling unrEVOked devs as much as I can to give me a final test build so that it can go live, but these guys have other lives and, to be honest, the Wildfire is small fry to them.
Regardless, I am continuing to ask them -- I'd really really hope that it will be released within the next week, but, obviously, it's out of my hands.
Best,
Martin
Ok
Ok,We'll wait patiently.
Thanks for your sacred work
First of all thanks to unrEVOked team for the ROOT!!!
Second i still have some problem with transferring fonts from sdcard to system/fonts even after implement success root my wildfire,somebody know what the problem???
Thank in advance.
i guess you need Hebrew fonts
try this
iandroid.co.il/phpBB3/topic5657.html
haven't tried it myself yet.
vadella said:
First of all thanks to unrEVOked team for the ROOT!!!
Second i still have some problem with transferring fonts from sdcard to system/fonts even after implement success root my wildfire,somebody know what the problem???
Thank in advance.
Click to expand...
Click to collapse
You need to boot into *recovery mode*, go to "Partitions" in clockworkmod and select "mount /system". When this is done, you can put the fonts in.
The unrEVOked root will still not allow you to write to the /system partition during normal bootup.
MartinEve said:
You need to boot into *recovery mode*, go to "Partitions" in clockworkmod and select "mount /system". When this is done, you can put the fonts in.
The unrEVOked root will still not allow you to write to the /system partition during normal bootup.
Click to expand...
Click to collapse
Hi MartinEva,
I done that you advised me, i changed to "mount /system",but i still can't to paste the heb fonts into system/fonts.
thanks
What's the error? You need to use adb as root in recovery...
Sent from my HTC Wildfire using XDA App
MartinEve said:
What's the error? You need to use adb as root in recovery...
Sent from my HTC Wildfire using XDA App
Click to expand...
Click to collapse
when i try to paste the fonts,i get waring "Warning!!!Do you want to overiwrite (folder will be merged)"? i press ok then i get app notice "paste is failed".
As I said, go into adb in recovery mode -- don't connect it up as a folder you can access with PC as you will not be running with root privileges.
MartinEve said:
As I said, go into adb in recovery mode -- don't connect it up as a folder you can access with PC as you will not be running with root privileges.
Click to expand...
Click to collapse
sorry,but i think i didn't got you.do not connect the device to the pc?or to connect the device and to try to done this process through the \tools\adb?
may i mistake?
You need to connect the device to the PC, then restart the device *in recovery mode*.
You need to stay in recovery mode throughout.
Then mount /system and use adb on your PC to push the files.
Ok.thanks man
MartinEve said:
You need to connect the device to the PC, then restart the device *in recovery mode*.
You need to stay in recovery mode throughout.
Then mount /system and use adb on your PC to push the files.
Click to expand...
Click to collapse
Ok.thanks man,now i got you.i'll try it!
vadella said:
Ok.thanks man,now i got you.i'll try it!
Click to expand...
Click to collapse
I'm trying to push the fonts file as you said through adb cmd:
(adb push /sdcard/fonts /system/)
,but I get next error "cannot stat: /sdcard/fonts/ not such file or directory".
the adb not recognize/see the sdcard.
Just flash the following zip from recovery: http: // hero.host-il.co.il/HebVillain/Hebrew_Fonts_Dalet11.zip
(remove spaces in the URL)

LG thrill 4g one click cwr

hello i have tried to use one click and when i do it said that cannot stat recovery.img no such file or directory if you could help let me
thanks to colbur87
Its in the zip, but make sure you launch 1click_cwr in the same folder as recovery.img
Dont copy it out or anything like that. The program looks for recovery.img to be in the same folder as 1click_cwr.
ok thanks but i am still having a few problem when adb push recovery.img /data it said failed to copy recovery,img to /data/recovery.img permission denied
i have tried keeping it in a zip and extracting it all to the same folder only when i extract it is when i can run as admin and my phone is rooted so that not the problem
You can't run an executable in a zip file. It must be extracted first. Even if you just click it from within the zip file, it is still extracted to a temporary location......
All you need to do is:
Extract the entire folder somewhere on your computer (right click extract(depending on your os/installed zip program, the menu may be different. Just extract it!))
Run 1click_cwr as admin (right click on the icon and click run as administrator)
That it your done......
Make sure USB Debugging mode is ON.
i did extract it all to the same folder and right click as
admin and it said in the cmd
adb push recovery.img /data it said failed to copy recovery,img to /data/recovery.img permission denied
any help would be greatly appreciated
anything i can do in my super user to allow access
any chance i could run this program in Linux
by the way my debugging is on
Well, there are two error I see there....first: can't push file to phone because premission denied.
2nd: Can't change premissions on the file because its not found (because of 1st error).
I would suggest googling 'permission denied adb push' I found a lot of people with your same problem...I can only speak to my application which worked for me and a lot of other people.
Have you tried setting permissions for the /data folder? Use root explorer and long press /data folder and check all nine boxes.
Sent from my LG-P925 using XDA App
dcmcc99 said:
Have you tried setting permissions for the /data folder? Use root explorer and long press /data folder and check all nine boxes.
Sent from my LG-P925 using XDA App
Click to expand...
Click to collapse
thanks that did it
after using one click and i do a factory reset would that brick my thrill
hello.... I just recently bought a Thrill from a person off craigslist. It came rooted and I hadnt known. Is there anything I should be worried about? like if he installed anything that could be tracking the phone or anything? Also, how can I tell what method he used to root it. Basically, how do i figure out how to unroot it and erase everything so i can have the expirence of actually doing everything myself so i understand it.
just use super one click root to unroot the device but you have down load the right one click

Transfer system files to external SD card?

My motherboard is toast, I bought a broken phone on ebay and switched out the motherboards but it isnt working. Phone works fine but wont recognize sim card or connect to network. Its just a camera/wifi device atm. So anyway..... I can still get the old motherboard to kinda work enough to play with it, the home buttons dont work or the power button and sometimes freezes up. Is there a way I can put the old motherboard in the phone and copy the system files to the external sd card or computer, then wipe the new motherboard and copy the files from the old mb to the new mb? I believe I have tried everything else but if anyone has any suggestions Im all ears
Thanks!
The easiest way would probably be to take the motherboard you're wanting to pull stuff from, hook it up (in the phone), and via USB in ADB do something like this:
adb pull / \backup
That would create a folder at the top level of your C: drive with all the contents of the phone on it. You could then move all of that to the new motherboard.
(That would probably be something like:
adb push \backup /
but I'm not 100% sure on that. You may have to do a more one-by-one procedure.)
when I try to push the backup I get this message....
failed to copy '\backup/acct/uid/0/task' to 'acct/uid/0/task' : Operation not permitted
Sooooo what did I do wrong??
Also I couldnt find where it saved the backup on my computer.
Ok, found the backup folder on my c: drive but what do I do with it now?
Bump cause I still havent figured this out Seems like I dont have the correct permissions in adb.
poprocksncoke said:
when I try to push the backup I get this message....
failed to copy '\backup/acct/uid/0/task' to 'acct/uid/0/task' : Operation not permitted
Sooooo what did I do wrong??
Also I couldnt find where it saved the backup on my computer.
Ok, found the backup folder on my c: drive but what do I do with it now?
Click to expand...
Click to collapse
If you typed in your backup like what you wrote above (\backup/acct/uid/0/task), it's likely that you're running into an error because you flipped your slashes midway through.
The backup folder needs to be in the platform-tools folder of the ADB installation, as that's where ADB pushes from.
Once you have that, reboot into recovery mode. This may not be 100% necessary, but I usually find that pushes work better from there as the file system is (usually) read-write.
Then, try this:
adb push \backup /
(You may have to switch the slash before the word backup so it reads /backup, I'm not 100% sure.)
If that doesn't work, drag an individual folder out of the backup folder to the main platform-tools folder and type:
adb push /acct \
You'll have to repeat that for each folder, but it should work.
If all that fails, you can try to make a CWM flashable zip file. I don't know exactly what the procedure is for doing this, but I would guess that the answer exists somewhere on this site.
jmtheiss said:
If you typed in your backup like what you wrote above (\backup/acct/uid/0/task), it's likely that you're running into an error because you flipped your slashes midway through.
The backup folder needs to be in the platform-tools folder of the ADB installation, as that's where ADB pushes from.
Once you have that, reboot into recovery mode. This may not be 100% necessary, but I usually find that pushes work better from there as the file system is (usually) read-write.
Then, try this:
adb push \backup /
(You may have to switch the slash before the word backup so it reads /backup, I'm not 100% sure.)
If that doesn't work, drag an individual folder out of the backup folder to the main platform-tools folder and type:
adb push /acct \
You'll have to repeat that for each folder, but it should work.
If all that fails, you can try to make a CWM flashable zip file. I don't know exactly what the procedure is for doing this, but I would guess that the answer exists somewhere on this site.
Click to expand...
Click to collapse
Actually what I typed was adb push \backup / then it gave me that error. It stored the backup folder on my c: drive, I will move it to the tools folder and see if that works. Going to go search on how to make a CWM flashable zip file now. Maybe i'll give that a shot too. Thanks for your help.
So If I am getting this correctly, I take the custom ROM I have flashed to my phone and then I can add my system files to to the system folder in the ROM I can then flash the ROM again and it will install all my files?
In theory, yes, that should work. All the CWM update file does is write the files inside of it to the folders that the updater-script file tells it to.
Again, this should work IN THEORY.
poprocksncoke said:
So If I am getting this correctly, I take the custom ROM I have flashed to my phone and then I can add my system files to to the system folder in the ROM I can then flash the ROM again and it will install all my files?
Click to expand...
Click to collapse
Ok, I tried this and put the .zip on my sdcard and ran it from recovery. Got an error that I didnt have enough space. Any suggestions?

[Q] Need way to get deeper root access to be able to move Nandroid deeper for CWM

Hi i created a Nandroid but the CWM will not see it because it is on the SD card. Unfortunately CWM's mounting doesn't work nor can i get down deep enough with a root explorer. Anything else i can do?
Thanks
Danw20 said:
Hi i created a Nandroid but the CWM will not see it because it is on the SD card. Unfortunately CWM's mounting doesn't work nor can i get down deep enough with a root explorer. Anything else i can do?
Thanks
Click to expand...
Click to collapse
To move the nandroid backup up one level without root, you can use ADB:
Code:
adb shell mv /sdcard/clockworkmod /mnt/shell/emulated
If you can't do that, you can boot to recovery (no need to mount anything) and run this command:
Code:
adb shell mv /data/media/0/clockworkmod /data/media/
Neither command seem to be working. The top one says failed on '/sdcard/clockworkmod' - Directory not empty. And the one in recovery just says device not found. I do have root but i need to be on the deepest directory because that is the only place unfortunately that you can restore Nandroids
No root explorer will show directories any lower than /. That is technically bottom but there is one even lower than that. Nandroids must be stored there to be recognised. I'm sure this canbe more than easily fixed by changing a line of code in cwm or is it more complex than that? I am s-off which may be the reason I can see that low.
Danw20 said:
No root explorer will show directories any lower than /. That is technically bottom but there is one even lower than that. Nandroids must be stored there to be recognised. I'm sure this canbe more than easily fixed by changing a line of code in cwm or is it more complex than that? I am s-off which may be the reason I can see that low.
Click to expand...
Click to collapse
I have never heard of a directory lower than /?
pivotraze said:
I have never heard of a directory lower than /?
Click to expand...
Click to collapse
In the ROM the lowest directory shown in /. But cwm you can get into an even lower one which has 3 I think folders in it. And the only way you can install a nandroid is if it is placed in that directory
The one below the 0 folder to be more specific
Shown as sdcard/0 in cwm
Danw20 said:
The one below the 0 folder to be more specific
Click to expand...
Click to collapse
No, /sdcard/0 is not the root directory of android. That is the root folder of your files
/ has way more.
pivotraze said:
No, /sdcard/0 is not the root directory of android. That is the root folder of your files
/ has way more.
Click to expand...
Click to collapse
Okay but is there a way to move a nandroid below the 0 folder?
??
Danw20 said:
??
Click to expand...
Click to collapse
how about adb pull?
No that doesn't seem to do anything either :/
ClockworkMod need to remove the folder restriction on nandroids, and let you choose the install location. Its a problem for devices like the One
Danw20 said:
No that doesn't seem to do anything either :/
ClockworkMod need to remove the folder restriction on nandroids, and let you choose the install location. Its a problem for devices like the One
Click to expand...
Click to collapse
not sure, what you mean, but maybe check this, if you wanna create a symlink: http://forum.xda-developers.com/showthread.php?t=1991657 (works just fine for me)
TWRP has issues with permissions, not CWM. AFAIK.
Are you on an older HBOOT? Because mounting of any kind doesn't work in recoveries at the moment, i did the ADB shell command in recovery and say no device found, did in the ROM and it works

TWRP Bugged Folder

Hey All,
Having an weird issue with TWRP folder on my today gotten Moto X. I unlocked bootloader, installed TWRP, rooted etc. But when I try to make a new folder in the TWRP folder via my PC, I get this error, see attached.
Also when look at the TWRP folder inside ES File Explorer, I get the message "/sdcard/TWRP is not found". I tried fixing permission in TWRP aswell and deleted the folder and let TWRP create a new one, still same issue.
When I boot into TWRP and go advance > file explorer, I can just open the folder without any problem.
Also when I ADB shell into my sdcard and try to 'cd TWRP/' it says permission denied. Which makes me think there's a permission issue, but ls -l shows no wrong permissions at all.
Anyone know what this issue could be?
Thanks!
Hi... I'm having the same issue of urs... i think it is a twrp bug... hopefully they fix it soon...
If u want a temporary fix do the following as i did each time u do a backup thru twrp recovery:
download (root explorer) from play store and open it (its a paid app btw)
navigate to /data/media/0/
long press on twrp folder
click on (change owner)
change both Owner and Group from (0 - root) to (1023 - media_rw)
check on (Also set on all sub-folders and files)
hit OK
Now u will be able to access and make changes thru Windows....
(Thank me if it worked) :cyclops:
theone_s_me said:
Hi... I'm having the same issue of urs... i think it is a twrp bug... hopefully they fix it soon...
If u want a temporary fix do the following as i did each time u do a backup thru twrp recovery:
download (root explorer) from play store and open it (its a paid app btw)
navigate to /data/media/0/
long press on twrp folder
click on (change owner)
change both Owner and Group from (0 - root) to (1023 - media_rw)
check on (Also set on all sub-folders and files)
hit OK
Now u will be able to access and make changes thru Windows....
(Thank me if it worked) :cyclops:
Click to expand...
Click to collapse
Thanks, that helps a lot!<3

Categories

Resources