Moving Files From SD Card To Internal Memory Possible? - EVO 4G Q&A, Help & Troubleshooting

Hey guys, I love this site and the outpour of support. This is really the first issue I've run into with my evo thus far.
I want to move some files I made into ringtones from my SD card into the internal memory in the location of the stock ringer sounds. I want to do this so if I ever take out or swap SD cards I never have to worry about losing my ringers. I have been using the astro file browser but it apparently does not let me move or copy and paste the file(s) where I want them.
Is there any way to do this?
thanks a lot!
Also follow up question. My SD Card always mounts when I plug my phone into my PC. Is there a way to stop this? even when I put the phone to charge only, the SD card shows up in Win7.

You need to have root and NAND unlock if you want to do anything like that, but it is possible.
If you have NAND unlocked, you can do it with your phone running normally, but I would use ADB in your particular situation. You can also use something like Root Explorer, but it costs money.
If you do not have NAND unlocked, but you have toast's root, you must go into recovery first.
If you know how to use ADB and you have full root (w/ NAND unlock), you should be able to use a command line in Windows to this effect.
For ringtones:
Code:
adb shell cat /sdcard/ringtone.mp3 > /system/media/audio/ringtones/
For notification sounds:
Code:
adb shell cat /sdcard/notification.mp3 > /system/media/audio/notifications/
For the files on your SD.
Otherwise you can push from the Windows itself. In command line, navigate to the area in Windows where you have the sounds and do something like this:
Code:
adb push ringtone.mp3 /system/media/audio/ringtones/
or
Code:
adb push notification.mp3 /system/media/audio/notifications/
If you do not have NAND unlocked, but you have root and a custom recovery, go into the custom recovery, then apply this command.
Code:
adb shell mount /dev/block/mtblock4 /system
After that, the commands above should work normally.

Is it possible to copy the 8GB SD files to your computer, insert a 16GB into the phone, and them paste the files from the computer to the new SD card? Will I have to re-root?
I'm currently running Damage Control (full root) along with other root tweaks.

@Jykinturah- Won't he need to mount the file system first?

dang, I was hoping to do it without rooting. I was seriously contemplating rooting my phone before 2.2 was announced to be coming out "soon" but I am a little hesitant to take the plunge knowing that we should all have froyo soon. I may still consider this or may try and do some more research. Thanks for the help though! It is greatly appreciated.

GumboChief said:
@Jykinturah- Won't he need to mount the file system first?
Click to expand...
Click to collapse
If you are booted into the OS, no. If you are in recovery, yes.
Code:
adb shell mount /dev/block/mtblock4 /system
Not usually a great idea to write to system when booted up, but if its just a ringtone or something, meh.
rockdrummersrock said:
dang, I was hoping to do it without rooting. I was seriously contemplating rooting my phone before 2.2 was announced to be coming out "soon" but I am a little hesitant to take the plunge knowing that we should all have froyo soon. I may still consider this or may try and do some more research. Thanks for the help though! It is greatly appreciated.
Click to expand...
Click to collapse
I am not the best person to ask about whether you MUST be rooted to do this, but I think you need to.
Not sure if you can write to /system in recovery without being rooted.

Related

New (hybrid) Hero root method

I have a slightly different Hero root method that persists the unlocked boot.img so you can do 'adb remount' to remount RW the file system... this was a key requirement for me!
Details:
http://android.modaco.com/content/h...oting-the-hero-step-by-step-my-hybrid-method/
Kudos to those who have gone before... I plan to add more stuff to the update.zip used here going forward.
P
yeah, adb as root is a must. it's the first thing i did when i received my hero
maybe it's better if you include wlan.ko in the update, because if someone who uses the update had a different kernel version wifi will not work
I´m receiving my HERO in a couple of hours. I´m going to use the 2Gb card that comes with the phone untill my new 16Gb class6 card arrives next week.
One question, do I need to "re-root" my device when I swap the cards next week?
I read something about that I have to have a card inserted during the root proccess.
I guess it is only used during the job...?!
modaco said:
Details:
http://android.modaco.com/content/h...oting-the-hero-step-by-step-my-hybrid-method/
Click to expand...
Click to collapse
To confirm, you do step 4 without the Hero connected to the PC?
Also, once rooted, what are my benefits? I understand I can move apps to the SD card? Is this done through the phone?
Well spotted, rejigged the instructions!
P
It seems to work...Thnx! no we will wait for a rom
Weird.. I keep getting "error: device not found" while in Device Manger I have a directory called "ADB Interface" with a device called "HTC Dream". Shouldn't that be "HTC Hero"?
So I do have a ADB device connected, but there's a fault somewhere..
EDIT: Found what I was doing wrong. I updated the driver for the SD card instead of the actual phone.. Stupid me. Great tutorial, but not fool-proof yet
As I enter 'adb push update-hero-signed.zip /sdcard/update.zip' I get the following error -
The program can't start because AdbWinApi.dll is missing from your computer. Try reinstalling the program to fix this problem.
What have I done wrong?
Okay, while typing this I realise I actually need to go to the folder I unzipped this too and then into the Hero folder. Maybe add this to instructions? Or is it just me being stupid?
Okay, seemed very easy (how do I check it worked).
I'm now looking at this about how to move apps to the SD card -
http://android-dls.com/wiki/index.php?title=Haykuro_Apps_to_SD
What does it refer to when it says "Setup in 5.0.1 onwards"?
Looks a little complex to me
I assume there are no custom ROM's out just yet...?
What is the difference with that method? Why hybrid? What is adb remount for?

How do I access the nandroid backup with phone connected to my pc?

OK, here's my problem. My EVO was smashed last night by a raving drunk psycho (Yes, cops showed up and took him, but I need my nandroid to put on my replacement phone when I get it). The screen is in about 1 million pieces, the entire case is warped as well. But oddly enough, this tough a$$ phone still boots up. I can issue adb commands and such, but can't see jack on the screen. So I know I can boot into recovery mode and whatnot via adb. My problem is this. I know there are 2-3 nandroid backups. How the hell can I get them? I tried putting the sdcard into a reader on my laptop, but to my stupidity I now realize it's in some linux or other file system format, so I can't simply read the card directly. Any help would be greatly appreciated!!!
Also, I have nand root acces on the phone if that helps at all.
SteelH said:
OK, here's my problem. My EVO was smashed last night by a raving drunk psycho (Yes, cops showed up and took him, but I need my nandroid to put on my replacement phone when I get it). The screen is in about 1 million pieces, the entire case is warped as well. But oddly enough, this tough a$$ phone still boots up. I can issue adb commands and such, but can't see jack on the screen. So I know I can boot into recovery mode and whatnot via adb. My problem is this. I know there are 2-3 nandroid backups. How the hell can I get them? I tried putting the sdcard into a reader on my laptop, but to my stupidity I now realize it's in some linux or other file system format, so I can't simply read the card directly. Any help would be greatly appreciated!!!
Also, I have nand root acces on the phone if that helps at all.
Click to expand...
Click to collapse
The sdcard is formatted by the phone as fat32. Put it in an sd card adapter, then into your computer. The files are in the nandroid folder, just copy that full folder. While you are at it, you might as well just copy the full card...and keep the card to put in your next phone, right?
If the card doesn't read in your computer, then it is damaged. There are numerous file recovery programs you can try, but it is questionable to me that your nandroid backup is really worth using a recovery program to save. Your contacts should be in Google and the rest takes 30min top to set up (right?).
If you REALLY want to save it try:
Code:
adb pull /sdcard/
It will copy everything into the directory you are in I think.
The backups should be stored in /sdcard/nandroid/
Man, you can ADB into your phone after it got smashed up like that?
Jykinturah said:
Man, you can ADB into your phone after it got smashed up like that?
Click to expand...
Click to collapse
Yeah, it's getting txts and emails too apparently. Wifi is connecting to my router too. No sounds at all, no vibration, no screen. But seems the phone is working aside from that. It's crazy.
Got a problem it seems:
Code:
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\android-sdk\tools>adb devices
List of devices attached
HT05VHL13839 device
C:\Program Files (x86)\android-sdk\tools>adb pull /sdcard/
pull: building file list...
0 files pulled. 0 files skipped.
C:\Program Files (x86)\android-sdk\tools>
Seems the sdcard went down with the raving alcoholic man.... crap.
Is there any way to run nandroid backup without seeing the screen?
I say, get a micro SD card reader, and put use your PC to do a backup.
Sent from my PC36100 using Tapatalk
lafrad said:
I say, get a micro SD card reader, and put use your PC to do a backup.
Sent from my PC36100 using Tapatalk
Click to expand...
Click to collapse
As you can see from my prior post, the sdcard appears to be shot. I need some way to run a nandroid backup without being able to see the screen.
SteelH said:
As you can see from my prior post, the sdcard appears to be shot. I need some way to run a nandroid backup without being able to see the screen.
Click to expand...
Click to collapse
boot up the phone and do
Code:
adb shell
then
Code:
reboot recovery
when it reboots redo
Code:
adb shell
then put
Code:
nandroid-mobile.sh --help
and that will give you what you need to do. However if your sd card is shot then your screwed lol. nandroid needs an sd card to work
Yeah, do what mrono suggested, but with a new Micro SD card. Just buy a cheap-o 1GB card or something to run the backup. I've got 3-4 cards around here myself. Maybe you can borrow a card from another phone or a digital camera? Chances are a 256mb card will work as well, or 512mb? A 32 won't work since it's too small. You've of course lost everything else, but you should be able to make a backup.
This is all assuming that the SD Card slot in the phone didn't break in the process, and since the SD card is fried, chances are it did break the slot since those bastards are a pain to fry in the first place.
Thanks guys. I figured that out a little while ago. I just used the sdcard out of my old blackberry. Worked great!

[GUIDE] Persistent Temp Root for G2 to SD Card

Problem: Changes to the system partition are lost when Linux flushes the disk cache: http://pastebin.com/cm75Z9UA
These instructions are a workaround to provide temp root like normal plus persistence because /system /data and /cache are partitions on your SD card. This lets you reboot and even factory reset, while being able to easily restore your settings and such by re-rooting and mounting your SD card partitions back over the internal partitions.
Prerequisites:
SD card partitioned with four partitions:
6GB as fat (for your data, can be bigger or small depending on your card size)
400MB ext3 for /system
1.3GB ext3 for /data
200MB ext3 for /cache
On the phone, enable "USB debugging" in Menu -> Settings -> Applications -> Development
On a PC with the Android SDK tools (adb) installed and working:
adb push Superuser.apk /data/local
adb push busybox /data/local
adb push rage /data/local
adb push resume /data/local
adb push root /data/local
adb push rsync /data/local
adb push setup /data/local
adb push su /data/local
adb install Term.apk
adb shell chmod 755 /data/local/busybox /data/local/rage /data/local/setup /data/local/resume /data/local/rsync /data/local/root
On the phone, open "Terminal Emulator" and type:
/data/local/rage
Wait for it to say "[+] Forked NNNN childs." then press the back button.
Open "Terminal Emulator" again and it should force close.
Open it one more time and the prompt should display "#". Then type:
/data/local/root
/data/local/setup
You may need to re-root after it reloads the GUI, but then it will stick. setup is a script that mounts your SD card partitions and copies the existing. It should only be run once unless you want to erase what you have there previously. This step wont work if you SD card is not partitioned properly.
On future power-ons, run this after temp-root instead of setup:
/data/local/resume
and you should get your Android back how it was.
is it suppose to scan through all apps on phone then reboot
Thanks muchly, I'll try this when my G2 arrives.
I have a question about this method. It looks to me that what setup does is copy the entire system, data, and cache to the SD card. Then, when you run resume, it uses rsync to bring the main system (in the onboard flash) up to date from the SDcard version, and then any changes, even if not actually written to the main system partition due to the HTC copy protection, get written to the sdcard copy of the system. Very clever (if I'm reading this write, otherwise, still clever, but me not so clever as I mis-understood).
The question is this: Are there any glitches or instabilities generated by suddenly changing the system files after the OS is already booted? Do I have to make sure to do this before I begin using my phone after boot or risk making changes that I will then loose when I run resume?
Thanks again for the work putting this together!
Sheep
Sheep, you understand almost completely. Setup does copy the existing data from the internal phone memory to the SD card. However, it then (like resume) doesn't copy anything back, it just mounts the system, data, and cache partitions from the SD card on top of the internal ones.
I had issues with the internal memory reverting back after I make changes to it. It seemed to happen over a short time, or was triggered by things like mounting the SD card to a computer.
I've been using this for about 24 hours with no problems. I've done a couple fresh boots and ran resume. But I didn't test the instructions from scratch, so if anyone tests and finds a problem, let me know!
Any performance hit because of running from SD?
I haven't really noticed any.
How does this impact battery life?
Sent from my T-Mobile G2 using XDA App
Can't say, I've had my phone hooked up most of the time through adb looking for root. Just did this for fun and because I was sick of re-rooting all the time.
looks interesting I'll try it out tomorrow
Sent from my T-Mobile G2
so your sd card has to be partitioned pryor to trying this
pre-partitioned card?
thatruth132 said:
so your sd card has to be partitioned pryor to trying this
Click to expand...
Click to collapse
yes it does
texasaggie1 said:
yes it does
Click to expand...
Click to collapse
and how do i do this on a non-rooted device
thatruth132 said:
and how do i do this on a non-rooted device
Click to expand...
Click to collapse
Use your G1 to partition the card.
Brad
You can also connect your phone to a Linux computer (a LiveCD would be fine) and use gparted or fdisk. Don't forget to backup the contents of your card first!
Pretty cool. But I think I'm gonna wait for a more permanent solution....
sheek360 said:
Pretty cool. But I think I'm gonna wait for a more permanent solution....
Click to expand...
Click to collapse
There are no roms available yet any ways, so to a non dev, non cook like me, the Root is pretty much useless
I'd read that the currently available root was good until a reboot, then I saw this thread that made rerooting after a reboot much easier. Since then I've seen some posts that seem to indicate that a root may spontaneously disappear even without rebooting. Is this the case, some permissions may be lost even if you don't reboot?
I was ready to pull the trigger on this permanent-temporary root until I read that. I'd like to be able to import my old wpa_supplicant.conf file and get my corp ipsec vpn working. I'd also like to be able to get wifi-tether working (although I rarely use it), but if root won't stay 100% until a reboot, then I'm not going to bother.
Dalamak said:
There are no roms available yet any ways, so to a non dev, non cook like me, the Root is pretty much useless
Click to expand...
Click to collapse
Not true. I'm not a dev or a cook, but there are things that you can make the phone do with root besides adding a theme or ROM.
wifi tether
ipsec vpn
backups
etc...
smasraum said:
I'd read that the currently available root was good until a reboot, then I saw this thread that made rerooting after a reboot much easier. Since then I've seen some posts that seem to indicate that a root may spontaneously disappear even without rebooting. Is this the case, some permissions may be lost even if you don't reboot?
I was ready to pull the trigger on this permanent-temporary root until I read that. I'd like to be able to import my old wpa_supplicant.conf file and get my corp ipsec vpn working. I'd also like to be able to get wifi-tether working (although I rarely use it), but if root won't stay 100% until a reboot, then I'm not going to bother.
Click to expand...
Click to collapse
With temp root on the internal system partition, writes would revert back after certain things (after mounting the sd card to a computer through the phone and disconnecting it, I'd always loose root). When running /system from an sd card, no writes can be reverted because none are made, so I've never had to re-root.
how to partition an SD card?
thatruth132 said:
and how do i do this on a non-rooted device
Click to expand...
Click to collapse
I used gparted in ubuntu to do mine. Like SAINTH said, the install disk for ubuntu is also a livecd so you dont even have to install ubuntu if u dont want to

[Q] Phone isn't reading sd card

First off, apologies if:
-someone has posted something exactly like this
-this is the wrong section
-this is easy to fix and I'm just oblivious to it.
I'll try to keep it short: I had the official 2.2 ROM on my phone. I tried rooting, and when I got to "/data/local/flash_image misc /data/local/mtd0.img", it said that there was no more available memory. I tried uninstalling some things, but no-go. I tried a factory reset, which is where I'm thinking there was a problem. The phone restarted, but then looped the "T-Mobile Mytouch 3G Slide" screen. I left it alone, thinking it needed to get everything in order. An hour later, and no change, I pulled the battery, waited and tried to turn the phone on. It looped again. I then tried without the memory card, which worked. Or so I thought, cause now my phone won't acknowledge the sd card. I've reset, factory reset, flashed ESPRIMG with a goldcard, tried re-updating with the 2.2 RUU, different sd cards, but nothing is working. Basically, is my phone effed, or is there some small sliver of hope that I'll have my Slide up and running normally again?
do you have another Sdcard to try?
ilostchild said:
do you have another Sdcard to try?
Click to expand...
Click to collapse
As I've stated, I've tried other sd cards. It's like the phone doesn't realise that there's an sd card in it at all.
austinbrown92 said:
As I've stated, I've tried other sd cards. It's like the phone doesn't realise that there's an sd card in it at all.
Click to expand...
Click to collapse
sorry its late and tired, but aside that,
Phone is able to boot? if so can you mount the phone?,
also if it does boot check the sdcard prongs, my wife sdcard what wacky and did everything by flashing and buying new sdcards and what i did was slightly lifted them and place the sdcard back in and it was reading it again,
Yeah, it boots. Now when you say mount, you mean in adb or something? Cause when the phone is connected via USB, my only options are Charge and Sync. Either way, when I try adb devices, nothing shows.
Try booting it up and got into settings>storage and try to mount your sd card in there.
jimczyz said:
Try booting it up and got into settings>storage and try to mount your sd card in there.
Click to expand...
Click to collapse
There's no mount option. I dunno if it matters, but when I reboot or factory reset the phone, the "removed SD card" notification is in my status bar. I've tried selecting it, but nothing happens. I'm at a loss here, and, being the pessimist that I am, I'm thinking it's a lost cause. Should anyone have a working solution, you'd have my undying gratitude. My Slide holds a special place, since it was the first Android phone that I rooted, and subsequently led me to learn as much as I can about Android. So please, any help at all is appreciated.
there should be more options like charge sync, usb mode, and something else, as well settings and unmount then click format sdcard, and see if it will remount by itself
ilostchild said:
there should be more options like charge sync, usb mode, and something else, as well settings and unmount then click format sdcard, and see if it will remount by itself
Click to expand...
Click to collapse
Tried. When I go into settings>connect to pc, my only choices are charge or sync.
Same thing in settings>sd card and storage. even with different memory cards inserted, the choice to mount, unmount, or format are greyed out.
I gave up today and called tmobile. My replacement phone will be here in a couple of days. Thanks to those who tried.
hey man hows it going i prob got to you to late but check it out rooting the offical 2.2 rom is a pretty advanced task when i got my mytouch slide it had 2.1 could not stand it so i rooted istalled cm 7 and clockwork mod and turned s-off life was sweet lol then out came offical 2.2 from tmob i was stupdily curious so i flashed it bam root gone s-off gone clockwork the whole shabang. and i didnt like it after i had it so after alot of adb code and programs i found out how to root the offical 2.2 easly without gold cards and that junk you do not want to use a gold card if at all possible when you get your new phone if you want it rooted and all email me email in profile i will be glad to get you going cause if your new phone has 2.2 on it you have to gain temperary abd shell root using superoneclick and then pick up the original way of rooting as listed in xda fourum but lmk glad to help this prob dont make sense anyway lol. and your phone would not reconize sd card because when you typed those commands you changed the directory of the sd card path in shell you could have changed the path back but i just read you got new phone now
ok, got the replacement, tried rooting again, and this is what i got:
C:\Users\Austin>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
SH12VPS03245 device
C:\Users\Austin>adb push flash_image /data/local
cannot stat 'flash_image': No such file or directory
C:\Users\Austin>adb push flash_image /data/local
cannot stat 'flash_image': No such file or directory
C:\Users\Austin>adb push flash_image /data/local
cannot stat 'flash_image': No such file or directory
C:\Users\Austin>cd\
C:\>cd c:\androidsdk\platform-tools\
c:\androidsdk\platform-tools>adb push flash_image /data/local
938 KB/s (76044 bytes in 0.079s)
c:\androidsdk\platform-tools>adb push mtd0.img /data/local
1332 KB/s (655360 bytes in 0.480s)
c:\androidsdk\platform-tools>adb shell
# cd /data/local
cd /data/local
# chmod 04755 *
chmod 04755 *
# /data/local/flash_image misc /data/local/mtd0.img
/data/local/flash_image misc /data/local/mtd0.img
mtd: read error at 0x00000000 (Out of memory)
mtd: read error at 0x00020000 (Out of memory)
#
im scared to do anything else, since this is what happened last time. what should i do next?
ok, i took the phone from dish drive to charge only, then it went through. am i safe now?

[HELP] cannot read or write to internal storage (/sdcard)

The title pretty much explains it. I cannot see any of my personal internal files or create an, e.g when it try take a screenshot it won't work as it does not have access to the internal folders.
Even when I boot into TWRP I cannot see all my files. I know all my files are there still as my storage still only has 10gb free even though the file Explorer shows no files visible.
It seems like no app at all has access.
What can I do to get access to my files again, I have some really important stuff I have got in the last few days that I have not backed up yet. As long as I can get some sort of backup of the files I will be happy to reset the phone.
Ok so what I have done since it working fine was.
Copy 2 files from my computer to my phone
Reboot into TWRP and then force shut the phone down after about 1 minute as I was not patient enough (turns out with f2fs you need to wait a bit longer)
After that, booting into the systems had no read or write access in the sdcard folder which is where all the personal data is stored.
Hopefully what I have said has made sense, if you need any other information just ask
P.S I tired to connect a flash drive so I could flash 4.1.1 (as I cannot copy anything to the internal storage) and see if that would fix it but TWRP won't recognize any flash drives and I'm on the latest official version of TWRP
DarkN3ss61 said:
The title pretty much explains it. I cannot see any of my personal internal files or create an, e.g when it try take a screenshot it won't work as it does not have access to the internal folders.
Even when I boot into TWRP I cannot see all my files. I know all my files are there still as my storage still only has 10gb free even though the file Explorer shows no files visible.
It seems like no app at all has access.
What can I do to get access to my files again, I have some really important stuff I have got in the last few days that I have not backed up yet. As long as I can get some sort of backup of the files I will be happy to reset the phone.
Ok so what I have done since it working fine was.
Copy 2 files from my computer to my phone
Reboot into TWRP and then force shut the phone down after about 1 minute as I was not patient enough (turns out with f2fs you need to wait a bit longer)
After that, booting into the systems had no read or write access in the sdcard folder which is where all the personal data is stored.
Hopefully what I have said has made sense, if you need any other information just ask
Click to expand...
Click to collapse
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
pvramk said:
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
Click to expand...
Click to collapse
Thanks for the suggestion, I'm not home for another 10 hours so I will try that when I get home. So if anyone has any other suggestions let me know
pvramk said:
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
Click to expand...
Click to collapse
This doesnt work.
B:\Backups\OnePlus 3\>adb pull -p /sdcard
remote object '/sdcard' not a file or directory
Any other ideas?
DarkN3ss61 said:
This doesnt work.
B:\Backups\OnePlus 3\>adb pull -p /sdcard
remote object '/sdcard' not a file or directory
Any other ideas?
Click to expand...
Click to collapse
I'm not sure about the -p
Did you try without this flag?
you can try adb pull /sdcard/ .
is the phone visible in adb devices ?
pvramk said:
I'm not sure about the -p
Did you try without this flag?
you can try adb pull /sdcard/ .
is the phone visible in adb devices ?
Click to expand...
Click to collapse
I tried with and without the flag, also yes the phone is visible in ADB.
I have given up and wiped phone completely, flashed latest version of TWRP, then 4.1.1 and magisk 12. No problems so far, apart from not having my files that were not backed up.
So you can consider this problem abandoned

Categories

Resources