Any ROM that allows adopted storage on G7+ - Moto G7 Plus Questions & Answers

Are there any ROMs or kernels for the G7 plus that's allow for functional adopted storage? I've tried stock and RR, and you can get it to format an SD card as internal if you install one with no partition table, but the file system will not hold "state". All media and files on the adopted storage become corrupted after reboot.

My advise is not to use this function anyway! The only advantage of adoptable storage is that apps can store their data on this storage device. But there are several disadvantages. Many users lost their data and/or have other problems.

Adoptable storage has worked perfectly for me on my G6+ for several years now. I regularly travel in countries where electronic searching is allowed both at airports and by law enforcement. There is no way I will keep data on a phone that cannot be encrypted

I haven't found a rom, but I have found a workaround. If your data is corrupting and being weird, u can unmount the sd card and then remount it and the adoptable storage will function normally for a while after that.

I've tried this, but same behaviors before. And data you put on the SD card will not hold state. It corrupts upon first reboot.

I found this out after a reboot or two but forgot to post an update. I have found that Apps2SD (https://forum.xda-developers.com/android/apps-games/apps2sd-partition-sd-card-link-apps-to-t3122919/)works great on these devices on all the ROMs I have used as long as it is rooted with Magisk. You have to manually set the su.d/post-fs-data.d/service.d path in app settings to /data/adb/service.d to get the mount script to work and use the format sd tool it comes with to split your sd card partitions into two separate fat32 and ext4 partitions. Anyway, there is more help in the thread later on the page count. Good luck!

Related

SD Card Basics and rooting/CM

Introduction I wanted to put this into a thread since there are multiple questions about the same topics here. I'm simplifying here, Verygreen and others could give you a lot better detail. But if you are confused about some of the directions in other threads, this may help.
For most purposes, the SD card is treated as a simulated hard disk. So much of the control and terminology used is the same as HD.
For the Nook HD/HD+, the easiest (and so far only) way to access control of the machine is through an SD card. This is because the bootloader will check the SD card and boot an acceptable OS it finds there. So for now at least, ALL CM versions for these Nooks will be booted off the SD card. For those familiar with flashing their phones, it is no different except all ROMs will reside on the SD card. The internal memory, called EMMC (or internal SD) is available for use with these ROMs as of 12/28 releases so it isn't wasted, and data (not programs) you want available from both Stock and CM can be placed there.
ROMs are placed into memory with a program generically called Recovery. This is a small OS which can provide access to memory, update ROMs, wipe memory partitions, make backups of your ROM, provide access to partitions from your computer via ADB, etc. The version that we are using here is called Clockwork Mod (CWM). You will need to load this into the boot sectors of your SD card.
Burning CWM In order for the bootloader to load this program, the exact placement of bits in the SD memory is critical. So instead of copying this program over to the SD card, you must burn an 'image'. This is an exact replica of the specific bits mapped to correct sectors of the SD card. The term is usually 'burn' an image. To burn an image from Windows, the recommended program is Win32DiskImage (http://sourceforge.net/projects/win32diskimager/) but other "image writing" software will work.
When you write an image, your SD card will contain a partition exactly the size of the image you just wrote. A partition is a formatted and ready to use portion of a hard disk or something simulating a hard disk like your SD card. In windows, you might have seen instances where multiple partitions are allocated to different drive letters (e.g. C: and D: ) both on the same physical device. In Unix or Android, partitions are often known by names such as /system or /sdcard. However, native Windows installs are only able to see the first partition of a SD card. Therefore, if you write a 500MB image to a 32 GB card, at that point in time only 500MB is usable and 31.5GB is no longer available. For the CM10 installs on this thread, the rest of the card is automatically partitioned as new drives for the ROM and DATA and so becomes available (linux/android don't have the partition disabilities of Windows).
If you are using Leapinlars' CWM zips to root, etc, you can simply copy the files over after writing the image. There is room in the imaged partition for these files. IF you are using Verygreen's CM10, and possibly others, you can't copy the files over as the CWM partition is too small to start with. After the CM10 SD boots in the Nook, it will create partitions to use the rest of memory. But these new partitions are not easily accessible with Windows. This is why Verygreen's instructions include using ADB to push the zip file to the /sdcard partition.
Partitions For those writing CWM images for update zips (e.g. http://forum.xda-developers.com/showthread.php?t=2062613), you will either want to use a smallish (e.g. 4G) SD card or repartition the card after you are done. The images by Leapinlar are large enough to load a few zip files for flashing in addition to the CWM program and a couple of backups (sometimes called 'nandroids'). But if you want to access the rest of the card, you'll need to repartition. The main reason you would want to do this is to return your 32GB card to full size, either with or without CWM on it; simply reformating on windows will not restore the unused data. For this, you will need to use a partitioning tool like Easeus (http://download.cnet.com/Easeus-Partition-Master-Home-Edition/3000-2248_4-10863346.html) or Minitool (http://www.partitionwizard.com/download.html). Note, this is generally NOT needed by the instruction sets on these fora, but is just provided as information, or if you wish to return to SC card to an initial state.
Copying files to partitions For the Nook HD/HD+, you must have the boot partition in the first partition of the SD card. This will NOT be the /data partition or the /sdcard partition. Therefore, you need a way to write to these partions on the CM builds. The easiest way is to boot CWM and use your computer to write to the these partitions via Android Debug Bridge (ADB). The process is boot to CWM, then go to mounts and storage, mount the /sdcard, THEN adb with CWM running and copy the zip over. ADB is a command shell that can execute commands on a remote android machine. Leapinlar's tips thread http://forum.xda-developers.com/showthread.php?p=34168454#post34168454 gives a lot of detail about setting it up and getting it to run. If you are using Windows, there is a way (Update: this does work to see the sd card partition on CM10 SDs) to see all partitions on a SD card. See this tutorial: http://forum.xda-developers.com/showthread.php?t=1585572. When done properly, you should be able to write your zips directly to the /sdcard partiton of the sd card (if that sounds confusing, please reread all that stuff above.) Note, there are partitions formated in unrecognized formats which are NOT seen with this method.
SD Formats SD cards are 'formatted' in different ways, just like hard disks. Formatting refers to data structures and directory structures used to keep track of files on a hard disk. In fact, any hd format can be used, but the typical format (data/directory structure) on smaller SD cards is FAT32. These are limited to a max filesize of 4GB and are fully compatible with Windows XP. For the larger cards, they often come formatted to a new format called exFAT (extended FAT). These allow larger files but are not native to Windows XP. However, a driver is available from M$ that will support exFAT. Because it is unexpected, you will get an error talking about the likely damage to your hardware if you proceed when writing an image to the exfat formatted SD card. You can ignore the error, the image is written bit for bit correctly.
Lastly to completely reboot the Nook HD/+, you need to hold the power button down for 10 seconds ignoring all prompts. Then hold it down again until it turns on.
I hope this is helpful. Please feel free to post comments and corrections below if I've made any mistakes and I'll update the op. I'll also try to answer questions if you have them.

[Q] Formatting internal "SD" storage

My internal SD storage has become corrupted and I no longer have read or delete access to many files. I wish I could restore some of those files but at this point, I just want to get access back to my storage.
I can't change permissions, unfortunately, so I will just have to reformat it. The issue is that I know formatting the SD card from the recovery on some phones can cause the phone to brick. Does anyone here know if TWRP's option is safe on these phones?

[Q] Help!

I am not sure where to post or anything, new here. Rooted, unlocked bootloader, CWM flashed to AOSB latest for atrix hd. everything is great EXCEPT my internal storage is now half the size it was before. 8Gb does not equal 4.93Gb Not sleeping at all so I will be here all night
WHAT DO?
My assumption is you didn't format the internal sd when you went from stock to anything 4.2 and over. 4.2+ roms have support for multiple users and store the sd data in a slightly different location than 4.1 and earlier. Before stuff was stored at /data/media, with 4.2+ roms it's /data/media/0 for the first/default user. I had the same issue with my first 4.2 rom.
First, if necessary, backup any non app data from the internal sd (skip any app cache, just get important files like downloads, music, etc)*
Using Philz CWM, set the internal sd location to /data/media (it'll prompt for a reboot, do it)
Format the internal sd
set the internal sd location to /data/media/0 (do the reboot again)
Format the internal sd
Restore anything backed up
That's it.
I recommend using the internal sd as little as possible and sticking with the external sd as much as possible. It shares the same partition with apps and app data, so anything on the internal sd is less space for apps.
Unrelated, but technically we could us a 32GB sdcard for /data and the internal sd while using the actual /data partition as the external sd. It would just require a bit of fstab trickery and some init script editing....and be a bit slower when launching apps, but we'd have a heck of a lot more space....not sure if it could be done in a universal way or on a per rom basis.

[Q] Unmount option missing CM12

I formatted my external SD through TWRP to a FAT partition (fat32 not available) with the goal to create two partitions on it afterwards using Aparted(for future use with Link2SD. My SD gets recognised in all file manager apps as well as in settings but the option to unmount/mount the card is missing in storage settings. Unmounting is necessary to run the Aparted app and create two partitions ). I tried external apps to unmount without success and unmounting via recovery also gives no results.
I'm on the most recent stable version of CM12 from novafusion.
Any help or advice would be kindly appreciated, and yes I've already spent hours going through the internet looking for a solution without results. I also posted the question on the novafusion page but haven't got an answer there yet.
Below is a screenshot of my storage settings.

honor 4x insufficient storage

I bought a used honor 4x phone emui 4, updated , after enter my gmail account updated apps and I got 345mb in internal storage I heard about adopted sd system , can I use it with emui 4 ,my phone non rooted
jana1991 said:
I bought a used honor 4x phone emui 4, updated , after enter my gmail account updated apps and I got 345mb in internal storage I heard about adopted sd system , can I use it with emui 4 ,my phone non rooted
Click to expand...
Click to collapse
Yes, you can use it. The short answer is that adopted storage is not an optimal solution, but it can work just fine if you set it up the right way. Which Honor 4x variant do you have, btw? What I write now is valid for the Che2-L11.
Many people think that adopted storage is the same as mounting an extra partition which Android will then use in the most rational way. This is not correct. Developers of Android decided to not use the card for essential files, so when you add adopted storage, Android will still install some parts of each app on your internal storage. Also, some developers of apps have not made their apps ready for adopted storage, and they will install on internal.
For this reason, your internal storage will continue to be filled up with new files even after you have added adopted storage, and might approach 100%, so your phone will tell you there is no more space left for installing new apps. All the while your card still has plenty of space.
But don't worry, you can avoid such a scenario if you do prepare your phone a little.
To get the best possible result, I recommend that you wipe your phone and do a fresh install of EMUI. You need to unlock the bootloader, set the USB developer option, install TWRP, and then flash the firmware the normal way. (This is quite complicated procedure, you should study how to do this yourself.) After that, put an SD card into the phone, and it should be a card that doesn't contain anything important so you can format it. Follow the instructions for adopted storage, which will format your SD card. EMUI will have problems if you use all 100% of the card as adopted, so choose the option mixed 50. The SD card must be minimum class 10 speed for apps to work normally.
Then you should root your phone, and install Root Essentials. Then set the option for "install apps on SD card". After that, your phone will try to install all new apps on the SD card on the adopted storage. You will probably be using around 75% of your internal storage, and might reach 85%, but you can continue adding a lot of apps before you get a problem. I have installed 30+ apps and am using 82% of internal storage. Good luck. :good:
jana1991 said:
I bought a used honor 4x phone emui 4, updated , after enter my gmail account updated apps and I got 345mb in internal storage I heard about adopted sd system , can I use it with emui 4 ,my phone non rooted
Click to expand...
Click to collapse
To answer your question, EMUI doesn't support adaptable storage out of the box.
Bob1900 said:
Yes, you can use it. The short answer is that adopted storage is not an optimal solution, but it can work just fine if you set it up the right way. Which Honor 4x variant do you have, btw? What I write now is valid for the Che2-L11.
Many people think that adopted storage is the same as mounting an extra partition which Android will then use in the most rational way. This is not correct. Developers of Android decided to not use the card for essential files, so when you add adopted storage, Android will still install some parts of each app on your internal storage. Also, some developers of apps have not made their apps ready for adopted storage, and they will install on internal.
For this reason, your internal storage will continue to be filled up with new files even after you have added adopted storage, and might approach 100%, so your phone will tell you there is no more space left for installing new apps. All the while your card still has plenty of space.
But don't worry, you can avoid such a scenario if you do prepare your phone a little.
To get the best possible result, I recommend that you wipe your phone and do a fresh install of EMUI. You need to unlock the bootloader, set the USB developer option, install TWRP, and then flash the firmware the normal way. (This is quite complicated procedure, you should study how to do this yourself.) After that, put an SD card into the phone, and it should be a card that doesn't contain anything important so you can format it. Follow the instructions for adopted storage, which will format your SD card. EMUI will have problems if you use all 100% of the card as adopted, so choose the option mixed 50. The SD card must be minimum class 10 speed for apps to work normally.
Then you should root your phone, and install Root Essentials. Then set the option for "install apps on SD card". After that, your phone will try to install all new apps on the SD card on the adopted storage. You will probably be using around 75% of your internal storage, and might reach 85%, but you can continue adding a lot of apps before you get a problem. I have installed 30+ apps and am using 82% of internal storage. Good luck. :good:
Click to expand...
Click to collapse
Thank you
Thanks all
Sent from my Che2-L11 using Tapatalk
Adopted Storage? Nope.
Do you even checked the Settings > Storage menu? You can pick either use internal (its small) or the microsd (Im maxed out at 128gb, anybody tried 256gb?)
Or get root, and use Apps2SD. Keep going and install as many apks as you want.
U can try adopted storage . Check if this feature is available in storage menu

Categories

Resources