Is Lineage's adoptive storage a Link2SD rehash? - LineageOS Questions & Answers

Does LineageOS's adoptive storage run on Link2SD? I ask because I was looking to get around Lineage's habit of formatting the entire SD card for adoptive storage, so I thought to try to resize the partition using 'gparted' on a Linux box. gparted was unable because it doesn't recognize the partition's format, but more importantly it reports that the label for the partition is "link2sd." Why would it do that if Lineage hadn't name it that itself?
I am aware there is a method for partitioning using ADB and dedicating only a limited portion of the SD card to adoptive storage but as yet I haven't got that process to work. But what's the point beating myself up figuring that out if all I'm ending up with is link2sd, exactly as I have been with pre-adoptive storage Android phones.
So basically it comes down to this. Is adoptive storage simply a convenience so you don't have to install any 3rd-party storage manager apps, or does it have material advantages over the 3rd-party add-ons (in addition to the fact that it is 'native')?

DrWu said:
Does LineageOS's adoptive storage run on Link2SD? I ask because I was looking to get around Lineage's habit of formatting the entire SD card for adoptive storage,
Click to expand...
Click to collapse
That's not a LineageOS habit, but original Android functionality as designed by Google. And no, it's not related in any way to Link2SD.
so I thought to try to resize the partition using 'gparted' on a Linux box. gparted was unable because it doesn't recognize the partition's format, but more importantly it reports that the label for the partition is "link2sd." Why would it do that if Lineage hadn't name it that itself?
Click to expand...
Click to collapse
The contents of the adoptive storage partition are encrypted. I doubt gparted is able to read a label from that, let alone apply changes to it.
Likely, the shown label is only a (wrong) guess based on the 1byte partition type code.
So basically it comes down to this. Is adoptive storage simply a convenience so you don't have to install any 3rd-party storage manager apps, or does it have material advantages over the 3rd-party add-ons (in addition to the fact that it is 'native')?
Click to expand...
Click to collapse
The idea behind adoptive storage is, that the SD card acts as a memory expansion for the internal storage. The user is not supposed to think about which data goes where. and is not allowed to ever remove the card without losing data.
If you want to put data explicitly in a certain space and/or want to use the card for data exchange with a PC, then adoptive storage is not made for you.

hergen66 said:
...If you want to put data explicitly in a certain space and/or want to use the card for data exchange with a PC, then adoptive storage is not made for you.
Click to expand...
Click to collapse
Thank you for clearing that up for me, hergen66.
The references I was referring to in the OP stated that it was possible to format an BD card for adoptive storage using ADB but splitting it into multiple partitions like so:
"adb shell sm partition disk:179,64 mixed 60"
I gather from what you're saying that this either is incorrect or outdated?

Then again, maybe it can be done.
For reasons I have yet to determine, I still can't get my Nook connected to ADB via USB (which is why I didn't try this earlier). However, I have found I can get it to connect by TCP/IP. And I was able to split-partition the SD card through ADB (with 'ADB over network' enabled and 'USB configuration' set to MTP) with the one-liner I posted above. I created a 12gb "adoptable" partition (with it's companion 16mb metadata partition) and a 47gb "portable" storage partition. LineageOS recognizes them as adoptable storage and portable storage and they appear to be functioning accordingly.
Apparently all Lineage cares about to initiate adoptable storage is that the SD card has the two partitions it creates (metadata and encrypted storage) when it formats for adoptable storage. Whatever else is on the card doesn't seem to matter. The process of ADB formatting causes the OS to see the reformatted card as new and asks how you want it used. When I answered 'portable storage,' it apparently did nothing to alter the card but still mounted and recognized and accepted the 12gb partition as adoptable storage, while also accepting the 47gb patition as 'portable.'
To make sure it was operating as adoptable storage I installed 34 new apps and it definitely is writing to the adoptable partition on the external SD card. I don't have Link2SD or anything of the sort installed, this was all the LineageOS' doing:
So just for giggles I removed the SD card, stuck it in a Linux PC, used gparted to shrink the portable storage partition a bit, and added a fourth partition in the freed-up space, 256mb formatted in swap. Put it back in the Nook, selected portable storage (again) and Lineage remounted it as per usual, with adoptable storage still working. I did the 'mkswap/swapon' thing to activate the new swap slice so now I've also got "overflow" VM on the SD card.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So now I've got adoptable storage, portable storage and swap space, all functional and coexisting on the same SD card. I only ever intend apps and data going to adoptable storage because I do most of my mods and management via Airdroid because it allows me the convenience of a PC's full size keyboard. So consequently it's also more convenient for me to add video, music and ebook files via USB connection to a PC (from Linux Nemo or Windows Explorer), which I couldn't have done if the entire SD card had been dedicated to adoptable storage. Which is why I couldn't/wouldn't stop picking at this until I'd found a solution. I don't know that I won't eventually switch to Link2SD anyway, but I like the idea of using a native app versus a 3rd-party add-on, so for the timebeing I'm test-driving the adoptable storage solution.

Related

[Q] Corrupt SD Card during Gold Card process

After my "kefuffle" with http://forum.xda-developers.com/showthread.php?p=8484070#post8484070
I had to play around with making multiple gold cards. Unfortunately one of the cards I had to use was my 32gb SanDisk microSD. After editing the hex code during the gold card process my computer failed to read the card. I then proceeded to format the card.
Windows explorer can't format the card in quick or full format mode. I downloaded a third party SD formatter (Philips or something) and ran both a quick format, and a full format on it. After running the SD formatter windows explorer was able to recognise the SD card as having 31gb of spare space. I was able to copy files to the SD card.
As soon as I put it in my Desire, it said random errors like "SD card ready to dismount" and "SD card damaged please format". After formatting the card with the Desire's format tool, the card is recognised and it says there is 31gb free space. I am then able to plug the Desire into the computer and enable "HTC Sync" or "Disk Drive" mode. HTC sync doesn't recognise the SD card, but windows explorer does when it is in disk mode. I am able to copy files to the SD card, although as soon as I eject the phone, the Desire attempts to check the SD card for errors and says the card is damaged.
Surely there is a tool out there I can use? It has the functionality to store files some of the time, surely not all hope is lost? 32GB microSD cards are freakin expensive and I don't want to throw it out...
Get a linux live cd, start GParted and delete every partition on the SD Card. Create a new FAT32 partition and try it again.
Sorry I'm nub, what the hell does that mean?
http://gparted.sourceforge.net/livecd.php
Grab that and burn it to CD/USB/whatever, and use that to delete all of the partitions on your card (plenty of guides online for GParted)
I got that problem too but my 16gb microsd read only 8mb. Can't format. Gparted can read as well.. :'(
Sent from my HTC Desire using Tapatalk
I had the same problems with my SD card on my HTC hero... don't panic I solved it with this software...
http://download.cnet.com/Partition-Wizard-Home-Edition/3000-2094_4-10962200.html
This is the instruction video that I used to understand what to do and create an ext2 as well...
http://www.youtube.com/watch?v=oyO6DOS1leQ
For me worked like like a charm!
yukinok25 said:
I had the same problems with my SD card on my HTC hero... don't panic I solved it with this software...
http://download.cnet.com/Partition-Wizard-Home-Edition/3000-2094_4-10962200.html
This is the instruction video that I used to understand what to do and create an ext2 as well...
http://www.youtube.com/watch?v=oyO6DOS1leQ
For me worked like like a charm!
Click to expand...
Click to collapse
I tried that but it didn't work. I was able to partition it, however once the software had applied the partitions, it showed up as "Unformatted", "Other" and "other". Whereas in the video it showed up as "Fat32", "ext2" and "linux swap".
I tried it in my Desire anyway, and it recognised it, but if you took a picture then connected the SD to the computer as a disk drive, the image taken becomes jumbled (literally). Once ejected from the computer the Desire is unable to mount the SD card properly and says it is in "Read-only" mode. In that state I am unable to eject/format the card.
I haven't tried Gparted yet. Wouldn't that be the same as deleting and creating the partitions?
lordmitchell14 said:
I tried that but it didn't work. I was able to partition it, however once the software had applied the partitions, it showed up as "Unformatted", "Other" and "other". Whereas in the video it showed up as "Fat32", "ext2" and "linux swap".
I tried it in my Desire anyway, and it recognised it, but if you took a picture then connected the SD to the computer as a disk drive, the image taken becomes jumbled (literally). Once ejected from the computer the Desire is unable to mount the SD card properly and says it is in "Read-only" mode. In that state I am unable to eject/format the card.
I haven't tried Gparted yet. Wouldn't that be the same as deleting and creating the partitions?
Click to expand...
Click to collapse
I see.... I don't know about Gparted, but now that u remind me, also for me it didn't work immediately..
I don't remember what I did exactly but I formatted the sd card 3 or 4 times, after I use the video's method, and I also formatted once with win7 and at the end I formatted it again with the phone..
I did it and suddenly the SD started to work properly..
Now is working perfectly since I've done it and that was 3 weeks ago..
it doesnt work with my MicroSD.. it still shows as 8mb when it should be 16GB!! guess its corrupted like hell..
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tried Gparted...I was able to create a fat32 and ext2 partition (wasn't able to do ext3 or ext4 or linux swap - kept saying "sd possibly corrupt") However still had issues with phone reading it.
I'm just going to take the card back. I've had it a month, but worth a try.
ShiDi said:
it doesnt work with my MicroSD.. it still shows as 8mb when it should be 16GB!! guess its corrupted like hell..
Click to expand...
Click to collapse
Could be... did you try to format the SD with windows first?

[Q] storage problem

Hey Guys,
it's me again haha.
So I have a problem...
I just read this about the memory of our phone:
Vyker said:
There are 3 storage options on this phone...
ROM aka Device Memory = 1GB = Where apps install to.
Internal SD aka USB Storage = 2GB = Extra space
External SD aka SD Card = upto 32gb microSD card.
Click to expand...
Click to collapse
So, I downloaded Backstab and need to download extra data, which are downloaded to SD...
Now I'm getting the message that there isn't enoght memory aviable.
So I looked into the file manager and saw, that all downloads,pictures etc. are saved on the "USB Storage" (→Internal SD).
Now my question is, how I can change the standard storage to "SD Card" (→External SD) , that my downloads, pictures (and of cause the data for Backstab) are saved on my "SD Card" (→External SD), where are 8GB free instead of the 72MB on "USB Storage" (→Internal SD).
Hope you understand what I mean ; my english isn't the best, I know
Thanks in Advance
Julian
I got that same problem when d/l additional data for games, etc.
Any sollution for it?
Sent from my GT-I8150
App 2 SD (move app to SD)
You can find this tool in the android market.
Note not all apps can be moved but this may help.
robin0800 said:
You can find this tool in the android market.
Note not all apps can be moved but this may help.
Click to expand...
Click to collapse
That app only moves apps from the Device Memory to the internal SD, not to the external one.
If your phone is rooted (if it isn't, I'd advise you too, although I reckon you should first research the pros and cons - and your warranty is voided), you can use ROM Manager to change the default path App2SD puts your apps into, or you can flash a ROM with internal/external memory swap.
Short version: both of these solutions require your phone to be rooted. If it isn't, then my post isn't of any help but there might be someone more knowledgeable out there who actually knows another (better) way to do this.
Dusk252 said:
That app only moves apps from the Device Memory to the internal SD, not to the external one.
If your phone is rooted (if it isn't, I'd advise you too, although I reckon you should first research the pros and cons - and your warranty is voided), you can use ROM Manager to change the default path App2SD puts your apps into, or you can flash a ROM with internal/external memory swap.
Short version: both of these solutions require your phone to be rooted. If it isn't, then my post isn't of any help but there might be someone more knowledgeable out there who actually knows another (better) way to do this.
Click to expand...
Click to collapse
That app only moves apps from the Device Memory to the internal SD, not to the external one.
This is not true.......
App2SD moves Apps to External SD, if you have normal /etc/vold.fstab, with mount points as normal, not swapped.
This App is really just a GUI to do what you can do with native Android Apps 2 SD....and it gives Notification if a d/l App can be moved, i.e. coded by dev.
To actually see what Apps are on External SD, if you have moved them, use Storage Analyser free from Market.
See samples from my phone:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You can clearly see, I hope, Apps which have been moved to External SD, in /sdcard/external_sd/.amdroid_secure.
These Apps were moved with App2SD.
Also, if you look at the pic below, of Settings/Manage applications/On SD card tab.....this shows those Apps which have been moved to External SD, which have a check-mark, e.g. Google+.....you can also see G+ above, clearly in external .android_secure folder
and it also shows those Apps which can be moved, or are coded to by dev.
btw...the USB Storage message on bottom is just information!!
USB Storage or Internal SD, is intended for Storage of Data relating to Apps, Pics, Music, Game Data, etc.
USB, or Internal SD, cannot be used, normally, for Apps, i.e. as in App2SD
I see. I was wrong then. Thank you for the useful post. It turns out I was fooled by the "USB Storage" bar, since it seems to imply they're stored in the internal memory.
But I don't think that'll really solve his problem, as from what I understood, the application data is still stored in the internal SD. So I still think the internal/external swap would be the best solution for him. Specially since he also complains about the pictures and stuff.
Either way, that ended up being an important piece of info for myself, so I thank you again for correcting me.
Thanx Dusk252
You are correct re OP......
if you wish to store loads a game data or photo stuff....
I think that is what the swap was designed for....it will give you potentially 16/32G for this data....I feel you will need a good SD....like at least Class 6....
And Apps can be moved to the smaller Internal SD....which could be good.....
On my last device I needed to use DT's A2SD..with 1G ext-3 partition on SD for Apps.....so this phone is pretty good.....
Just on the OP....it is a pity that most Apps seem to be written with the /mnt/sdcard as default external Storage....
something devs should keep in mind!!!
Sent from my GT-I8150 using Tapatalk
Hey Guys,
thanks for careing about my problem
But I don't understand how I can swap the internal/external :S
could you please explain it to me.
Thanks in advance
JuLiian.
You have too ways of doing that (technically, three). But please understand before trying any of this that your phone must be rooted!
1. Manually edit the /etc/vold.fstab file (non-recommended unless you can find a good tutorial specifically for Galaxy W, since different devices might have different mount points. I wasn't able to find one, but my research took me 2 min so you might be able to find one.)
2. Replace your vold.fstab file with an already edited one. Here's a nice tutorial on how to do it.
3. Flash a custom ROM which already has this tweak. Like this one, for example.
backstab is gameloft ryt? y not try this http://forum.xda-developers.com/showthread.php?t=1091455 it work on asphalt adrenaline and dungeon hunter, what it does is it changes the file path of the data, so that your data can be save on your external_sd, just follow the steps there, hope that helps
edit: ow sorry that link is for LG but i find one for samsung like: "Auto_Patch_APK_for_Samsung_by_Duero__include_Java_" just search for it
edit2: i found it http://forum.xda-developers.com/archive/index.php/t-1129134.html just try if the download links are still working

Google Play Music and Adoptable Storage

I was hoping that this should have been resolved already, since it's been an issue for awhile now. Sadly, it's still present.
Google Play Music and adoptable storage don't play nice with each other. It seems that if you format your SD card as internal storage, the app will not recognize it.
I have a 200GB SD card formatted as internal storage, but Google Play won't see it as either internal or external storage. So in essence, I only have the 32GB onboard as available.
Pretty annoying.
djbutter said:
I was hoping that this should have been resolved already, since it's been an issue for awhile now. Sadly, it's still present.
Google Play Music and adoptable storage don't play nice with each other. It seems that if you format your SD card as internal storage, the app will not recognize it.
I have a 200GB SD card formatted as internal storage, but Google Play won't see it as either internal or external storage. So in essence, I only have the 32GB onboard as available.
Pretty annoying.
Click to expand...
Click to collapse
I dont know why you are having trouble. Google Play music sees my storage fine when I set it up as internal. Working great.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
...Sent From My Verizon HTC 10
Jrocker23 said:
I dont know why you are having trouble. Google Play music sees my storage fine when I set it up as internal. Working great.
...Sent From My Verizon HTC 10
Click to expand...
Click to collapse
thats strange
shouldn't GPM detect it as 1 whole pool of internal storage rather than showing internal & external.
Jrocker23 said:
I dont know why you are having trouble. Google Play music sees my storage fine when I set it up as internal. Working great.
...Sent From My Verizon HTC 10
Click to expand...
Click to collapse
It doesn't look like you are using adoptable storage.
geoff5093 said:
It doesn't look like you are using adoptable storage.
Click to expand...
Click to collapse
When I formatted it asked and I said yes. This is how it came out
...Sent From My Verizon HTC 10
Jrocker23 said:
When I formatted it asked and I said yes. This is how it came out
...Sent From My Verizon HTC 10
Click to expand...
Click to collapse
Can you browse your SD card with a file manager? My understanding was you would no longer have two options, both would be combined as internal. I also thought the internal storage filled up first, then spilled over onto your SD card.
No
...Sent From My Verizon HTC 10
---------- Post added at 04:30 PM ---------- Previous post was at 04:29 PM ----------
...Sent From My Verizon HTC 10
It works that way. I use adoptable storage, I see one storage almost everywhere, I finally have no permission issues, but some apps like Google music still let me choose where I want to download my music.
geoff5093 said:
It doesn't look like you are using adoptable storage.
Click to expand...
Click to collapse
Jrocker23 said:
I dont know why you are having trouble. Google Play music sees my storage fine when I set it up as internal. Working great.
...Sent From My Verizon HTC 10
Click to expand...
Click to collapse
Thanks for the screenshots. When I first formatted as internal storage, the 'storage location' menu option the GPM became disabled, but the storage showed only the 32GB internal storage location.
I switched it back to portable storage, restored the GPM app back to the factory default. I then reformatted the SD card back to internal.
After re-opening the app and updating it, it showed up as you have in your screenshots, as if it's still an external SD card. This is rather un-intuitive (if it's been adopted as internal storage, why would it still indicate it as 'external' storage?), but at least it works!
geoff5093 said:
It doesn't look like you are using adoptable storage.
Click to expand...
Click to collapse
No, he is using it. 32 + 117 = 149
geoff5093 said:
Can you browse your SD card with a file manager?
My understanding was you would no longer have two options, both would be combined as internal.
I also thought the internal storage filled up first, then spilled over onto your SD card.
Click to expand...
Click to collapse
It's just Play Music giving you the option of where you want it. Yes, they're a single pool but it's not like a dumb RAID0/JBOD.
And it's actually the other way around. With Adoptable Storage the microSD card will be set as the "preferred storage". After the microSD card, or whatever, is formatted and encrypted, the phone is going to ask you to move data over "your photos, files and some apps".
When users insert new storage media (such as an SD card) in an adoptable location, Android asks them how they want to use the media. They can choose to adopt the media, which formats and encrypts it, or they can continue using it as-is for simple file storage. If they choose to adopt, the platform offers to migrate the primary shared storage contents (typically mounted at /sdcard) to the newly adopted media, freeing up valuable space on internal storage.
Apps can be placed on adopted storage media only when the developer has indicated support through the android:installLocation attribute. New installs of supported apps are automatically placed on the storage device with the most free space, and users can move supported apps between storage devices in the Settings app. Apps moved to adopted media are remembered while the media is ejected, and return when the media is reinserted.
Click to expand...
Click to collapse
djbutter said:
Thanks for the screenshots. When I first formatted as internal storage, the 'storage location' menu option the GPM became disabled, but the storage showed only the 32GB internal storage location.
I switched it back to portable storage, restored the GPM app back to the factory default. I then reformatted the SD card back to internal.
After re-opening the app and updating it, it showed up as you have in your screenshots, as if it's still an external SD card. This is rather un-intuitive (if it's been adopted as internal storage, why would it still indicate it as 'external' storage?), but at least it works!
Click to expand...
Click to collapse
I spoke with HTC and also put a new SD card in my girlfriends 10 and went through the process with HTC and it showed the same as mine.
HTC said that this is how it's supposed to work. The tech was very knowledgeable & said that even though we see it separated, that is that way for ease of use but the system does see it as one system.
He told me the m9 (which I have as well) had the option but it didn't work 100%. His example he showed me was with Google music. If you set up the SD card normally, google music sees both internal and external and install to either.
If you pick set up SD as internal memory, google music only sees internal and doesnt save downloads to external.
...Sent From My Verizon HTC 10

[GUIDE] Configure SD card as internal storage in Marshmallow on LG Spirit [H440n]

Hello,
Yesterday I've upgraded software on my LG Spirit to Marshmallow (PL/PLAY). Unfortunately it's not possible to root it yet, so after few hours I started to miss Link2SD functionallity. :crying:
I found that Marshmallow shall offer formating SD Card as Internal storage. Unfortunately, it seems that LG disabled this feature. But... it's still possible to enable it via ADB SHELL! :victory:
Here is how you can do that:
Backup your data - for sure, you don't want to lose all your data stored on SD. If you want to lose it, feel free to skip this step
Enable USB debugging mode in developer settings - to enable developer settings you have to tap 5 Times on the build numer.
Open ADB Shell - just open command prompt (Win+R => Type "cmd" => Click "OK") and navigate to your ADB directory (ex.: "cd c:\adb\"), then use "adb shell" command to start shell.
List avaliable disks to get disk ID. It can be done with following command:
Code:
sm list-disks
You will get your SD Card ID (ex.: disk:179,64, which will be used in next step.
Format your SD card by typing below command. Remember to put correct Disk ID obtained in previous step.
Code:
sm partition disk:179,64 private
This command will cause that whole card will be formated as Internal Storage. If you want to use only part of SD as Internal Storage and rest as standard Removable Disk, for example 50:50, you can use command:
Code:
sm partition disk:179,64 mixed 50
Check your storage settings and enjoy additional internal storage!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Cool! Gonna try it soon!
Thanks for sharing,it works
I've been doing this since I installed marshmallow but I'm not sure if it works properly. Every app or app data remains in the internal storage unless I manually move the app to sd. Is that normal?
SteSko said:
Hello,
Yesterday I've upgraded software on my LG Spirit to Marshmallow (PL/PLAY). Unfortunately it's not possible to root it yet, so after few hours I started to miss Link2SD functionallity. :crying:
I found that Marshmallow shall offer formating SD Card as Internal storage. Unfortunately, it seems that LG disabled this feature. But... it's still possible to enable it via ADB SHELL! :victory:
Here is how you can do that:
Backup your data - for sure, you don't want to lose all your data stored on SD. If you want to lose it, feel free to skip this step
Enable USB debugging mode in developer settings - to enable developer settings you have to tap 5 Times on the build numer.
Open ADB Shell - just open command prompt (Win+R => Type "cmd" => Click "OK") and navigate to your ADB directory (ex.: "cd c:\adb\"), then use "adb shell" command to start shell.
List avaliable disks to get disk ID. It can be done with following command:
Code:
sm list-disks
You will get your SD Card ID (ex.: disk:179,64, which will be used in next step.
Format your SD card by typing below command. Remember to put correct Disk ID obtained in previous step.
Code:
sm partition disk:179,64 private
This command will cause that whole card will be formated as Internal Storage. If you want to use only part of SD as Internal Storage and rest as standard Removable Disk, for example 50:50, you can use command:
Code:
sm partition disk:179,64 mixed 50
Check your storage settings and enjoy additional internal storage!
Click to expand...
Click to collapse
Can this work with any Android device having the marshmallow SW version.
Sent from my Lenovo Z2 using Tapatalk
Applications will move to sd card with all their files?
Będzie przenosić całe aplikację? I czym się to różni od przenoszenia na nie sformatowaną kartę?
What is the difference between formatting the SD card as internal storage and transfering the app from internal to SD?
@SteSko: What class card did you use? I've read people over the internet complaining that the write and read are much slower than internal even with Class 10 cards, and that you need a UHS-I card for storage adoption to make sense.
I would appreciate some info on your performance so far. Cheers!
Alanon said:
@SteSko: What class card did you use? I've read people over the internet complaining that the write and read are much slower than internal even with Class 10 cards, and that you need a UHS-I card for storage adoption to make sense.
I would appreciate some info on your performance so far. Cheers!
Click to expand...
Click to collapse
To be fair, class 10 means nothing these days. To qualify as class 10, the card has to have a minimum of 10mb/s transfer speed, while internal memory is uncomparably faster.
jonixas said:
To be fair, class 10 means nothing these days. To qualify as class 10, the card has to have a minimum of 10mb/s transfer speed, while internal memory is uncomparably faster.
Click to expand...
Click to collapse
As far as I know, UHS-I guarantees the same measly 10mb/s, just like Class 10. So even if the technology is better overall - which it is - it's not an actual promise, since it only maximizes the speed potential. People have been experiencing wildly differing transfer speeds on various devices even on those cards, because things just didn't stack up properly. That's why I'm so curious how folks are faring with our device.
To return back to normal use this
sm partition disk:179,64 public 100
Just a heads up - my card died as I was trying this. Probably because it was old, and not because of this, but I just wanted to let you guys know. ( The card died right after the command, but I can still see the single partition on my computer , but I can't manipulate the files in any way, and it's really intermittent. )
Hi guys, i have a problem. I adopted my sd card as mixed storage, used 20gb for internal and 10gb for external...today i factory reset the phone and now i cant see the adopted storage only this 10gb external. the problem is that i cannot format the card to be 32gb of external. i basically have 32gb sd card with only 10gb usable because the other part was encrypted by phone and now i cant see it anymore cuz probably the encryption key was lost after reset. i tried using adb shell to list volumes but it says 'private disk mounted null' and 'public disk 179,65'. Also, when i list disks in adb shell it shows me 179,64 and i cant partition it to private with 'sm partition disk:179,64 private'...anyone has a solution to formatting the card to be just normal card used as external memory? Also, i tried using minitool to manually partition the card, there i can see there are 2 partitions, this 10gb partition that is formatted as FAT32 and the 20gb that says 'other format', i believe it is Ext4 but i tried to manually format that partition to Ext4 hoping my phone would recognize it but no use...any thoughts?
i tried sm partition disk:179,64 public but it didnt help...it seems like the phone sees that 179.64 disk as potential adopting disk but on the other hand disk is alredy protected by that lost encryption key and since i factory reset the phone i cant go and dig it up
Hmm, guys, I did this in the past and if I recall correctly you should click on the SD card in the storage menu, go to the options and select "Migrate data". I may be wrong, though.
SteSko said:
Hello,
Yesterday I've upgraded software on my LG Spirit to Marshmallow (PL/PLAY). Unfortunately it's not possible to root it yet, so after few hours I started to miss Link2SD functionallity. :crying:
I found that Marshmallow shall offer formating SD Card as Internal storage. Unfortunately, it seems that LG disabled this feature. But... it's still possible to enable it via ADB SHELL! :victory:
Click to expand...
Click to collapse
Hello, I followed the directions, and partitioned the sd.
Now how does the thing? I have the memory almost full, the bar is red and there is the danger signal, once the internal filled automatically fills the sd partition?
Thanks
carraretto33 said:
Hello, I followed the directions, and partitioned the sd.
Now how does the thing? I have the memory almost full, the bar is red and there is the danger signal, once the internal filled automatically fills the sd partition?
Thanks
Click to expand...
Click to collapse
once you partitioned sd it became your primary storage. this is not expanding but replacing storage..if you have 8gb internal and use 32gb external you wont have 40gb, you will have 32 because once you adopt the external sd as storage it will replace the internal..what you can do is go to settings->storage->internal storage->migrate data to transfer your apps from phone memory to sd card and all future apps will be installed directly to sd
ikova617 said:
once you partitioned sd it became your primary storage. this is not expanding but replacing storage..if you have 8gb internal and use 32gb external you wont have 40gb, you will have 32 because once you adopt the external sd as storage it will replace the internal..what you can do is go to settings->storage->internal storage->migrate data to transfer your apps from phone memory to sd card and all future apps will be installed directly to sd
Click to expand...
Click to collapse
Great! Now work perfectly, I have 1,6 gb free in internal and all app (exclude g-app) on sd :good:
ikova617 said:
once you partitioned sd it became your primary storage. this is not expanding but replacing storage..if you have 8gb internal and use 32gb external you wont have 40gb, you will have 32 because once you adopt the external sd as storage it will replace the internal..what you can do is go to settings->storage->internal storage->migrate data to transfer your apps from phone memory to sd card and all future apps will be installed directly to sd
Click to expand...
Click to collapse
Amazing, I was missing this. @SteSko it would be nice if you can add this to the first post for future references
@Korelev @carraretto33 guys hit thanks if i was of any help
Thanks @SteSko and @ikova617!

SD card corruption issue on Lineage OS 14.1 on Harpia Moto G4 Play XT1602

It's been a while since I had been using Lineage OS on my Moto G4 Play and apart from losing VoLTE, everything seemed to work fine EXCEPT my external SD card. On my stock ROM, i had my Sandisk 32 GB Class 10 card formatted as internal storage and it worked flawlessly.
I did the same in Lineage OS but everytime, after a month or even few weeks, the SD card gets permanently corrupted. First time it happened, I thought it was the SD card issue, got a brand new one on RMA. Happened the second time, again got a new one and this is the third time it has happened. I find it really hard to believe that cards which were brand new got totally fried up 3 times as a coincidence or fate.
I think, there is either some problem with the OS itself or the phone. XDA folks, help me out. I feel ashamed sending the card for a third RMA.
sng_shivang said:
It's been a while since I had been using Lineage OS on my Moto G4 Play and apart from losing VoLTE, everything seemed to work fine EXCEPT my external SD card. On my stock ROM, i had my Sandisk 32 GB Class 10 card formatted as internal storage and it worked flawlessly.
I did the same in Lineage OS but everytime, after a month or even few weeks, the SD card gets permanently corrupted. First time it happened, I thought it was the SD card issue, got a brand new one on RMA. Happened the second time, again got a new one and this is the third time it has happened. I find it really hard to believe that cards which were brand new got totally fried up 3 times as a coincidence or fate.
I think, there is either some problem with the OS itself or the phone. XDA folks, help me out. I feel ashamed sending the card for a third RMA.
Click to expand...
Click to collapse
To my experience we have better stability when using SD as portable storage. And it's easier to repair using a PC.
The solution I found is.
1- have rooted phone 2- enable usb debugging 3- format sd card from Android options as portable . 4- format sdcard as fat32 or ext4. (Fat32 preferably- most recommended) 5) Check sdcard current format with app called disk info . Avoid NTFS format ( this could be the reason it's not formatting as internal storage, Android doesn't support NTFS as internal , and works bad with it as portable) Inside the app check the path of your sdcard.
Download app2sd from somewhere.
use the Partition tool ( as adoptable) inside to create 2nd partitions as vext4
Choose adoptable option and create 2nd Partition as ext4 ( it will actually create a virtual ext4 partition)
choose how much size in each Partition Partition 1 will be internal . Partiion 2 will be external.
So give more than 50% size to 1st Partition this way you might avoid more problems
Press create, you're done.
This method persists for me after reboots.
Thank me from your prayers if it helps.
Details --> go check storage & usb or use disk info to see your new expanded storage size with your new unmounted virtual disk and smile. This new Partition can only use installed apps, but you can't browse it's contents through your Android usb & storage options ( since it's virtual and we're tricking the fuse encryption config) If you actually want to browse this new virtual internal Partition and access it's contents you will have to see the path through disk info APK and access it with root file manager like Total Commander.
Also Do a chkdsk /f from Windows on the sdcard or chkdsk /r to see if the problem is the sdcard or try it in another Android Phone as internal. If it doesn't work in other phones then you know it's the card malfunctioning and not the phone.
This is the dumb error preventing you/us from having persistent storage.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
This is how it looks after applying solution.
That phone came with 16gb storage. Now I added 16gb more with this method , for 32gb total
- Partition 1 with 13gb as virtual internal and Partition 2 as portable with 3 gb remaining. (The virtual Partition cannot be seen, it says 3gb/16gb when actually it should say 0gb/13gb) It's cause I managed to bypassed this encryption

Categories

Resources