hey guys,
might sound pretty stupid to some of you, but is it possible to make partition to the internal storage ?
I mean partitions that remain when i want to format data only on system partition.... and leave other partitions untouched
since the transfer speed is so slow, its a pain in the ass when i need to backup all data and retransfer it back to the phone...
or did i miss something essential that speeds up that process ? :cyclops:
Thanks , have a nice day
Not sure if I understood you correctly, but partitioning is not a good idea not only on this phone but also on any new android phone. You will probably end up with a hard brick.
There are some alternatives though:
1. Use twrp recovery. When you format system or data, then your files will remain intact unless you also want to format whole internal storage.
2. Transfer your files using Wi-Fi via a good file manager such as Solid explorer. For that you will need to share a folder from your computer. Then you can simply transfer the files to your computer into that folder. Much faster transfer speeds (12 megabytes/sec in my case via 5ghz router)
Related
This is completely pulled off of my other thread in the HOX+ section
our device is a data/media device which is why usb mount don't work
here's a link that explains it all
http://teamw.in/DataMedia
and part of the convo with dees_troy is below
<Dees_Troy> Nope, it will *never* work on a data/media device
<Dees_Troy> read and learn: http://teamw.in/DataMedia
<WinBot> [Link] http://tinyw.in/lstO :: What is a data media device? | TeamWin
<Dees_Troy> definitely worth understanding
<Dees_Troy> at some point we're going to try to kang in MTP for recovery
<Lloir> so for now then it's sideload or from inside the rom
<Dees_Troy> or adb push
<Lloir> aye
<Dees_Troy> or gtfo
<*****> so cant mount usb storage with newer devices...hmm one x did guess this is where confusion at least on my part came to be
<Lloir> lmao Dees_Troy
<Dees_Troy> one x wasn't a data media device
YOU MUST either transfer the rom\boot\porn\audio\mods while the phone is on or use adb push or even sideload when in recovery, THIS IS THE ONLY way
IF you want to read without clicking the link i'll whack it up in #2
What is a data media device?
I'm writing this page because there seems to be a lot of confusion about how many of the newer Android devices work. Starting in Honeycomb 3.0 with the Xoom, Google changed the way that they handled storage. Instead of having a "data" partition with your apps and a separate "sdcard" partition for storage, Google started giving you a single, very large data partition. Inside /data is a folder at /data/media that contains all of the contents of what you think of as your internal sdcard.
Since /data/media is part of /data, we pretty much never actually format the data partition. Formatting data, of course, also removes the media folder that contains the internal sdcard. When you choose a factory reset, instead of formatting, we use rm -rf commands to remove all the folders except for the media folder so that we can remove all of your apps and settings while leaving your "sdcard" intact. In TWRP we also have a wipe internal storage option that rm -rf's the media folder and a "Format Data" option that formats to recreate the entire file system in case something goes completely wrong or to remove device encryption.
When you're booted to Android, Android fuses the media folder to /sdcard and emulates a FAT files system that doesn't have permissions for legacy apps. We don't currently have fuse in recovery, so we just add an extra mount command to mount /data/media to /sdcard so in recovery you still have to worry about permissions on /sdcard.
Because the "internal sdcard" is not a true FAT file system, you can't mount it via USB storage. Well, that's not technically true, but the vast majority of people use Windows computers and Windows doesn't recognize ext4. If we were to allow you to mount the data partition via USB storage, Windows would claim that the device wasn't formatted and offer to format it for you, which, as you can imagine, would be a disaster. The whole ext4 setup is another reason that Android switched to using MTP for transferring files. Most of these devices don't have the necessary kernel configuration to even support USB storage mode, so it's not very easy to enable USB storage if we even wanted to try. Unfortunately at this time, MTP isn't available in recovery, so if you have no other option, you will have to use adb to push and pull files to/from your device.
As a special note, if you choose to do a factory reset from your ROM, even if the ROM says that it will wipe everything including the internal storage, well, that's not what TWRP will do. A stock AOSP recovery would format data including the "sdcard" but TWRP will use its regular factory reset setup that leaves the internal storage intact.
There are a couple of nice gains with using this setup vs the old data + FAT storage partition. With /data/media you, as the user get more control over how you use your storage. If you have a ton of apps, then that's no problem since you have a huge data partition to work with. If you don't have a lot of apps, you get more room to use for storing things like movies. Further, ext4 doesn't suffer from the 4GB file size limit that FAT has, so you can have a large, high-def movie on your device if you like. I'm sure another motivating factor was to get Android away from using FAT which is a Microsoft creation. Performance on ext4 in Android is also probably better than FAT. As a downside, data media devices tend to store a lot more app data in the "data" section and so backups on these devices tend to be larger.
Thank you for this post. I had been a bit curious about this. I have Evo LTE. But I also Boughy a family member a GNex that I have to maintain. I know that my Evo, I can plug into windows, and when I select USB transfer (not in recovery), it mounts my internal storage (not ext_SD) , and it shows as removable drive in windows. But,....when I plug in GNex, it shows up as GNex , not removable drive H. I always wondered a bit about what this all means.
Thanks for the info. :thumbup:
Sent from my EVO using xda premium
Thanks for the useful post.
If I make a nandroid backup for the whole device, will it exclude the /data/media folder? Because on my old phone the nandroid backup doesn't include /sdcard.
romitkin said:
Thanks for the useful post.
If I make a nandroid backup for the whole device, will it exclude the /data/media folder? Because on my old phone the nandroid backup doesn't include /sdcard.
Click to expand...
Click to collapse
Yes it does, we are past the point where that causes issues.
Everyone just needs to get used to the data/media thing. And learn how to use adb side load
I predict a whole bunch of "bricks" due to people not informing themselves on how the phone works and how to use adb
Sent from my One X using Tapatalk 2
A little bit from my side as well I hope someone will find this helpful. Virtual SD card on Android
Can't you use USB Host if you got recovery installed as well? I think I've read that somewhere...
mike1986. said:
A little bit from my side as well I hope someone will find this helpful. Virtual SD card on Android
Click to expand...
Click to collapse
Link broken, here is the correct URL:
http://android-revolution-hd.blogspot.com/2013/03/virtual-sd-card-on-android.html
Oh and bump for anyone new to the idea of a "data/media" device. You're not in Kansas anymore.
NxNW said:
Link broken, here is the correct URL:
http://android-revolution-hd.blogspot.com/2013/03/virtual-sd-card-on-android.html
Oh and bump for anyone new to the idea of a "data/media" device. You're not in Kansas anymore.
Click to expand...
Click to collapse
Lloir, thanks for sharing and good explanation. MTP makes sense and on my One, this way file transfers are simple and fast. However there are two things I dislike about MTP right now:
When you copy files to the device, on some file types it throws a warning that the device might not be able to read the file. This interrupts the file transfer and I have to confirm I want to copy the file to the device. On an older MP3 player I have, I could deactivate this by editing a device capabilities XML file. On the One, I did not find such a file. Perhaps an option in the MTP deamon?
When I am transferring files, I can't browse through other folders at the same time. It says the device is busy.
Is there a way to solve those two issues or "is it what it is"?
Lloir said:
Windows would claim that the device wasn't formatted and offer to format it for you, which, as you can imagine, would be a disaster
Click to expand...
Click to collapse
I did that on a device. Windows offered to format and I did it. Man that was not good! 2 hours later after manually restoring the partition values I was OK and the most amazing thing all my data was there perfect and untouched :silly: :highfive:
Thanks for that great explanation. Been having some issues with windows and android. Nothing big just had to sideload my ROM and killed my "sdcard" at least now I know why
Hello,
I was freeing up some space on my OP2 device as it was about 52GB Full of 54GB,
i deleted all not used and temp folders, i also found folder named sdcard and storage in same.
I opened them and both were empty, i deleted them as well and as i did that i got a error that it can not be deleted.
Then i just found that whole data on my cell is deleted, all the files and folders are wiped and those two as well.
Now i am asking that is their any way to recover my data, i.e all images, videos, pdf &docx files etc..
As this device can not be connected as a mass storage so that i can use any software on my pc to do so.
i have tried Disk Digger Pro version as well, but unfortunately no success.
Please guys please help me out to come out of this issue. All suggestions and solutions are welcome.
You can also share any paid add as i can buy it to recover my data, but i really need a helping solution.
Thanks in advance.
shubhamalive said:
Hello,
I was freeing up some space on my OP2 device as it was about 52GB Full of 54GB,
i deleted all not used and temp folders, i also found folder named sdcard and storage in same.
I opened them and both were empty, i deleted them as well and as i did that i got a error that it can not be deleted.
Then i just found that whole data on my cell is deleted, all the files and folders are wiped and those two as well.
Now i am asking that is their any way to recover my data, i.e all images, videos, pdf &docx files etc..
As this device can not be connected as a mass storage so that i can use any software on my pc to do so.
i have tried Disk Digger Pro version as well, but unfortunately no success.
Please guys please help me out to come out of this issue. All suggestions and solutions are welcome.
You can also share any paid add as i can buy it to recover my data, but i really need a helping solution.
Thanks in advance.
Click to expand...
Click to collapse
It's normal that all your documents, photos, messages, ets, have been deleted, as /sdcard is...your sdcard. And, well, no, I don't think there is any recovery options...
As long as your internal "sdcard" storage is not encrypted you should be able to just factory restore the phone back to full functionality. After that you should be able to connect phone as usb storage device to your PC and use standard undelete software to undelete your files, because factory restore doesn't actually format your internal storage, it only deletes the file index (FAT).
pitrus- said:
As long as your internal "sdcard" storage is not encrypted you should be able to just factory restore the phone back to full functionality. After that you should be able to connect phone as usb storage device to your PC and use standard undelete software to undelete your files, because factory restore doesn't actually format your internal storage, it only deletes the file index (FAT).
Click to expand...
Click to collapse
yes, but if he used the wipe function in TWRP, which use mkfs.ext4 (if I remember), do you think there is still a possibility for him to recover his data?
I'm not sure about it. But then again, I'd say that and testdisk/photorec is his last chance of restoring at least photos.
If this doesn't work, I'm afraid anything will work at all..
http://forum.xda-developers.com/galaxy-nexus/general/guide-internal-memory-data-recovery-yes-t1994705
Sorry i guess no luck unless you see a recovery partition
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Johnn78 said:
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recovery-internal-storage-android-phone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
Click to expand...
Click to collapse
Nope. No way to get the lost data.
first of all this is not a place to post this ?
i request thread mods to move it to proper place ??
Ojaswi said:
Nope. No way to get the lost data.
Click to expand...
Click to collapse
Anyway, how to dump my entire internal storage as raw file ?
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
davidbiate said:
I followed this method and I was able to successfully dump my phone internal storage data into raw. But please be aware that successful recovery of your data from the dump file is not quaranteed.
Please read carefully the instructions and always make a backup before u proceed.
https://forum.xda-developers.com/ga...de-internal-memory-data-recovery-yes-t1994705
Click to expand...
Click to collapse
In the beginning writes "This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know." Does it mean that it is for older mobiles or you did it for Mi A1 with android 8.1 ?
hi ,
my mobile switch off mi redmi 5 pro note internal storage how to recovery
Hello. After from some mistake, I formatted my internal storage via twrp. Now I want to recover the data which I had. The bad is that the device is connected to pc as MTP & NOT as Mass Storage so that to use some data recovery to get the lost data. I tried MTPdrive which is to convert the mtp to mass storage but not any result. I tried Mobisaver (Easeus) which is for recovering data from internal drive but appears the message error that can't get the root previlidges even if my mobile is recognised as rooted. Also I used the dr fone recovery but for similar reason with above it can't scann deep my device. The only solution which I have found but it is difficult to try it because it needs unix commands so that to get the internal storage as raw image & after to convert the raw to vhd & after to mount it as drive so that to been scanned via data recovery like recuva which is given in here : https://howtorecover.me/data-recover...hone-guide#raw or similar : https://roubert.name/joakim/androidfilerecovery/
The bad is that in these methods the unix commands are unclear & the most times you will get some error in the running of commands or the instructions will be unclear. Also I tried Partitions backup (apk) which can dump the internal as raw but althought has the option to save the dump image to external storage, it saves only to internal which is irrational because my internal storage is 64 Gb & can't be saved all this as img file to my internal due to low capacity & for some unknown reason the external storage save can not be selected. Does it exist some way to get the lost data back of internal storage or to connect my Mi A1 as mass storage or to dump my internal storage as raw ? Thanks.
If there is no backup of the lost data, first stop using it in case of data overwritten. Then try a third-party data recovery software to help you Recovery Data From Internal Memory. Usually, it can help us access to data like photos, videos, music and documents on internal memory of Xiaomi phone and scan them out. Then we can preview and choose them to recover at ease.
What I want to do is I want to be able to either copy the userdata partition to my computer or do a file level copy of everything in /data to a folder on my computer. I've already rooted my phone, so preferably I'd be able to make the root file system available over usb. Does anyone know how I'd be able to do something like this? I know I could plug in a usb device to my phone and probably copy /data to it, but that wouldn't be my preferred method. Let me know if I missed any methods that I could use.
I want to mention that I'm into doing this because recently my phone died and I had to send it out to have some of the data recovered and I don't want to have to spend that kind of money if I can frequently make full backups myself.
EDIT: I found a solution but I'm leaving this up in case anyone else wants to know how to do it.
I'm using FTPDroid to run an ftp server on my phone which I'm then mounting on my computer and then using rsync to backup the data. I'd recommend paying the $1.99 for SSL/TLS support for FTPDroid and setting up a dynamic dns for your phone to allow for automation of backups.
Just install TWRP custom recovery and do a full backup. You can transfer or copy the backup to your computer if you wish. If your storage is full you can backup straight to SD card or computer I believe.
Exodusche said:
Just install TWRP custom recovery and do a full backup. You can transfer or copy the backup to your computer if you wish. If your storage is full you can backup straight to SD card or computer I believe.
Click to expand...
Click to collapse
The only problem with that is that I don't have an SD card slot on my phone for an sdcard.