Use or not swap file in SD card - myTouch 3G, Magic General

Hi, I've searched the forum but found no answer. Searched google and found contradictory answers.
Should I use a swap file in SD card?
What are the advantages and disadvantages?
Thanks

brk said:
Hi, I've searched the forum but found no answer. Searched google and found contradictory answers.
Should I use a swap file in SD card?
What are the advantages and disadvantages?
Thanks
Click to expand...
Click to collapse
Advantage: Allows more multitasking due to more memory use from the sd card.
Disadvantage: Shortens the sd card life.
If you plan to use swap or A2SD, I recommend getting a class 6 sd card. Some people are opposed to swap, some people are all up for it. It's just up to your preference. For me, swap is just nice that an app doesn't close when I'm using another app.

koreancanuck said:
Advantage: Allows more multitasking due to more memory use from the sd card.
Disadvantage: Shortens the sd card life.
If you plan to use swap or A2SD, I recommend getting a class 6 sd card. Some people are opposed to swap, some people are all up for it. It's just up to your preference. For me, swap is just nice that an app doesn't close when I'm using another app.
Click to expand...
Click to collapse
A good answer but slightly incomplete. Most sdcards have wear leveling so having swap on your card will do very minimal damage.
brk said:
Hi, I've searched the forum but found no answer. Searched google and found contradictory answers.
Should I use a swap file in SD card?
What are the advantages and disadvantages?
Thanks
Click to expand...
Click to collapse
If you want to have a swap file (swap.swp) this could possibly corrupt your fat partition. This is based on my own personal experience of course. I recommend use a swap partition honestly.
Just imagine mounting your sdcard to your computer to transfer files while your phone is still attempting to write to /sdcard/swap.swp. This can theoritically cause problems. And you don't want problems on your sdcard. A seperate partition is the safest way to go. But again... just my opinion.
Note that if you are using a rom based on Cyanogen's kernel (such as 5.0.7 or 5.0.8) it is NOT recommended to use swap at all. It will slow down your phone causing more problems than what it's worth. ('Swap grave' is how he put it.)

Binary100100 said:
If you want to have a swap file (swap.swp) this could possibly corrupt your fat partition.
Click to expand...
Click to collapse
How does that happen?

endolith said:
How does that happen?
Click to expand...
Click to collapse
If your system is writing to the .swp while you mount/unmount the sdcard it can corrupt the card. It's better to use the partition.
In addition if your system is setup to use the swap.swp on your fat32 partition and you mount it to your computer, what do you suppose would happen to your system since it can no longer have access to the .swp file?
Again... not a good idea.

I don't see how unmounting the swap partition is any different from unmounting the partition with a swap file on it.

Just say no!
endolith said:
I don't see how unmounting the swap partition is any different from unmounting the partition with a swap file on it.
Click to expand...
Click to collapse
Right, but other than when you shut down your phone, when does your swap partition get [un]mounted?

AdrianK said:
Right, but other than when you shut down your phone, when does your swap partition get [un]mounted?
Click to expand...
Click to collapse
When you plug it into a computer, isn't the whole SD card mounted?

endolith said:
When you plug it into a computer, isn't the whole SD card mounted?
Click to expand...
Click to collapse
Your computer's OS can only mount the filesystems it supports, for example OOTB Windows only supports FAT and NTFS, so it can't do anything with ext. Anyway, linux-swap is non-persistant, you can't mount it to view the contents, my understanding is that should you mount it on linux, the swap partition will be ignored.

AdrianK said:
Your computer's OS can only mount the filesystems it supports, for example OOTB Windows only supports FAT and NTFS, so it can't do anything with ext.
Click to expand...
Click to collapse
But the point is that they're all unmounted before the SD card can be shared with the computer as a mass storage device, so I don't see there being any difference between a swap partition and a swap file.
Besides, Swapper has a default "safe" option that unmounts swap before sharing SD with the computer and remounts it after disconnecting.

endolith said:
But the point is that they're all unmounted before the SD card can be shared with the computer as a mass storage device, so I don't see there being any difference between a swap partition and a swap file.
Besides, Swapper has a default "safe" option that unmounts swap before sharing SD with the computer and remounts it after disconnecting.
Click to expand...
Click to collapse
I wasn't aware that Swapper has such a feature but that doesn't change the fact that if your running say ~200mb of RAM with ~64mb of swap and with all the multitasking that you're doing you're using up most of it... so say you have only ~10mb free. Then all of a sudden you pull out your sdcard. What do you think happen will happen? Your phone was reading and writing to that card! Do you think that's healthy? If Swapper unmounts it before it shares the sdcard with the computer then it may be better for the sdcard but I don't see how that can have a positive impact on the device. However if you have swap on a seperate partition the only way to run into this problem would be to remove the card from the device. Even if you mount the sdcard to the computer the phone still has access to the swap partition just like it still has access to the ext partition (if it has one).
I don't know about you but I have a 16gb class 6 card and it's a pain in the butt to restore my data to the fat partition so I would rather not have anything read/write to it unless necessary and to have something constantly reading and writing to it is a really bad idea in my case... but maybe you have a ~2gb and reloading the data may not be annoying to you.
Anyway... stick with what works. I've tried them all and based on my own experience I suggest the separate partition if you are going to use swap. But hey... what do I know?
By the way... do NOT use swap on CM5 or CM6. It may help at first but you'll be enroute to digging "a swap grave" (quoted by Cyanogen himself).

Your phone will ONLY share FAT when mounted to PC
Ext and Swap are still running on the phone(app2sd how do you think apps keep working after mounting?)
Same deal with Swap...
I personally do not use Swap although i do have a 128mb Swap Partition.

Binary100100 said:
I wasn't aware that Swapper has such a feature but that doesn't change the fact that if your running say ~200mb of RAM with ~64mb of swap and with all the multitasking that you're doing you're using up most of it... so say you have only ~10mb free. Then all of a sudden you pull out your sdcard. What do you think happen will happen?
Click to expand...
Click to collapse
Android routinely kills processes as part of its "task management", and the apps are expected to save their state using "Bundles" so that when you restart them, they restart in the same state they were last in. Is unplugging the swap more harsh than killing the app?
Once Android determines that it needs to remove a process, it does this brutally, simply force-killing it. The kernel can then immediately reclaim all resources needed by the process, without relying on that application being well written and responsive to a polite request to exit. Allowing the kernel to immediately reclaim application resources makes it a lot easier to avoid serious out of memory situations.
Click to expand...
Click to collapse
Even if you mount the sdcard to the computer the phone still has access to the swap partition just like it still has access to the ext partition (if it has one).
Click to expand...
Click to collapse
Hmmm. When you mount the SD card, the entire SD card is available on the computer, including the FAT, EXT, and swap partitions, but the phone can't access the FAT partition?
I can see the contents of the swap partition from the computer with "sudo cat /dev/sdb3", but the phone can still access it? If I run "free" on the phone, it still shows swap, and the used size still changes, so I guess the phone is still using it, but the computer can see it at the same time, too.
In that case, I understand why it would make more sense to use swap partition than swap file.
I don't know about you but I have a 16gb class 6 card and it's a pain in the butt to restore my data to the fat partition so I would rather not have anything read/write to it unless necessary and to have something constantly reading and writing to it is a really bad idea in my case... but maybe you have a ~2gb and reloading the data may not be annoying to you.
Click to expand...
Click to collapse
I have an 8 GB Class 6 and I don't understand what you're talking about. What do you mean "restore your data to the fat partition"? Restore it from what? What's the point of having an SD card if you don't want anything reading from it?
Anyway... stick with what works.
Click to expand...
Click to collapse
By the way... do NOT use swap on CM5 or CM6. It may help at first but you'll be enroute to digging "a swap grave" (quoted by Cyanogen himself).
Click to expand...
Click to collapse
What does that mean? Where did he say that? In what context?
I'm using swapper with CM5, and it's like buying a new phone. It greatly speeds up the phone's responsiveness.

I dunno why you can see all three partitions. When I've got my swap and extra partitions setup and mount my SD to my computer, the only partition that shows up is the FAT one, using Windows that is.
As for using swap, a quick Google search will show you a number of threads stating that the only time you see a real benefit from it is on the G1 an older mytouchs with the lower RAM space. Actually most say that using compcache is the better way to go if you've got the extra RAM space.
Sent from my HTC Magic using XDA App

endolith said:
What does that mean? Where did he say that? In what context?
I'm using swapper with CM5, and it's like buying a new phone. It greatly speeds up the phone's responsiveness.
Click to expand...
Click to collapse
I guess nobody listens to the people that know what they are talking about. Then they always complain when it doesn't work properly. #Ironic
http://twitter.com/cyanogen/status/13986716217
http://twitter.com/cyanogen/status/13624854797
http://twitter.com/cyanogen/status/13980541397
http://twitter.com/cyanogen/status/13980541397
http://twitter.com/cyanogen/status/13979643918
Enough for you?
And I'm aware that 2.2 automatically kills idle apps, which is all the more reason that you do not need swap.
And your phone cannot access the /sdcard or /mnt/sdcard partition while it is connected to your computer as removable storage. Try it.
Try downloading something to your sdcard while it's connected as removable storage. You can't. Your phone does not have access to the sdcard. In fact... while it's mounted to your computer go to settings SD card & phone storage settings and tell me what it says under Total space and Available space.
Do NOT use a large .swp file because your phone is constantly writing to the sdcard! All it takes is a single instance of removing it without unmounting it and you will have corrupted the entire contents of the fat partition. That is what I mean by restoring the data on the sdcard. I use an ADATA 16gb class 6 sdcard and each time that I tried with the .swp file I ended up losing my data because of random kernel crashes, dead battery, unsafe sdcard mounting etc.
But if you are really convinced of otherwise then go on ahead but I'll tell you right now, I will refuse to help anyone that never listened to my advice the first time. If I give a warning and if someone doesn't listen then it's all on them. I will personally refuse to help them and I wouldn't blame anyone for doing the same. Cyanogen warned users not to use swap. So those that have issues shouldn't complain to him or anyone else because it's their own fault.
All quotes from Cyanogen on twitter. You should follow him and learn something.
@w3stbr00k I don't know.. none of my roms have swap support built in. You would have had to do it yourself.
Click to expand...
Click to collapse
@misscocogold t3 is otw in an hour or so. Make sure you aren't using swap or task killers too.
Click to expand...
Click to collapse
@singharvinder the new code actually uses swap more aggressively as a side effect
Click to expand...
Click to collapse
@singharvinder are you using swap? Don't.
Click to expand...
Click to collapse
DonJuan692006 said:
I dunno why you can see all three partitions. When I've got my swap and extra partitions setup and mount my SD to my computer, the only partition that shows up is the FAT one.
As for using swap, a quick Google search will show you a number of threads stating that the only time you see a real benefit from it is on the G1 an older mytouchs with the lower RAM space. Actually most say that using compcache is the better way to go if you've got the extra RAM space.
Sent from my HTC Magic using XDA App
Click to expand...
Click to collapse
You can actually access the swap partition from a Linux based OS such as Ubuntu/Live CD.
When you mount the sdcard you also have access to the ext2,3,4 partition if it's available.

See what I get for being Windows exclusive? Edited my first post to be more precise with my wording.

DonJuan692006 said:
I dunno why you can see all three partitions. When I've got my swap and extra partitions setup and mount my SD to my computer, the only partition that shows up is the FAT one.
Click to expand...
Click to collapse
In Linux, both the SD and EXT partitions are mounted, but I can see and access all three. I can see all three partitions in Windows 7 Disk Management, too, but of course Windows can only mount the FAT partition.
a number of threads stating that the only time you see a real benefit from it is on the G1
Click to expand...
Click to collapse
I've got a G1.
Binary100100 said:
I guess nobody listens to the people that know what they are talking about. Then they always complain when it doesn't work properly. #Ironic
Click to expand...
Click to collapse
I'm looking for truth, not rumor. I'm not going to blindly accept statements made without explanation.
Enough for you?
Click to expand...
Click to collapse
Nope. I want to understand why it's a bad idea. Twitter posts aren't exactly comprehensive.
http://twitter.com/cyanogen/status/13986716217
Click to expand...
Click to collapse
This is not a recommendation against swap. Someone was talking about disabling swap, and he said it's not his problem because CM doesn't come with swap enabled.
http://twitter.com/cyanogen/status/13624854797
Click to expand...
Click to collapse
I read this as "If you're having problems with apps closing, disable swap and task managers. Maybe you have those configured wrong." That doesn't mean swap is inherently harmful.
http://twitter.com/cyanogen/status/13980541397
http://twitter.com/cyanogen/status/13979643918
Click to expand...
Click to collapse
This thread is about speed and performance, not harm.
And I'm aware that 2.2 automatically kills idle apps, which is all the more reason that you do not need swap.
Click to expand...
Click to collapse
Yes, this is the standard response in threads like this. "Android automatically manages tasks and memory, so you shouldn't try to second-guess it". But, empirically, swap makes the phone run better and faster.
If you switch to another app from the browser, for instance, the browser almost always gets killed, and then it has to reload the entire page from the Internet when you switch back to it. This takes wayyyy longer than reloading the state from swap, and causes problems when the web page is dynamic.
Many apps take much longer to start up than they should, or don't actually return to the same state when they're restarted, and swapping them out works better. I'm guessing the people who are happy with the stock system use their phones differently.
And your phone cannot access the /sdcard or /mnt/sdcard partition while it is connected to your computer as removable storage.
Click to expand...
Click to collapse
Yes, I already agreed with that. Swap file is a bad idea since it's inaccessible when you mount on the computer, but swap partition still is. Agreed.

endolith said:
In Linux, both the SD and EXT partitions are mounted, but I can see and access all three. I can see all three partitions in Windows 7 Disk Management, too, but of course Windows can only mount the FAT partition.
I've got a G1.
I'm looking for truth, not rumor. I'm not going to blindly accept statements made without explanation.
Nope. I want to understand why it's a bad idea. Twitter posts aren't exactly comprehensive.
This is not a recommendation against swap. Someone was talking about disabling swap, and he said it's not his problem because CM doesn't come with swap enabled.
I read this as "If you're having problems with apps closing, disable swap and task managers. Maybe you have those configured wrong." That doesn't mean swap is inherently harmful.
This thread is about speed and performance, not harm.
Yes, this is the standard response in threads like this. "Android automatically manages tasks and memory, so you shouldn't try to second-guess it". But, empirically, swap makes the phone run better and faster.
If you switch to another app from the browser, for instance, the browser almost always gets killed, and then it has to reload the entire page from the Internet when you switch back to it. This takes wayyyy longer than reloading the state from swap, and causes problems when the web page is dynamic.
Many apps take much longer to start up than they should, or don't actually return to the same state when they're restarted, and swapping them out works better. I'm guessing the people who are happy with the stock system use their phones differently.
Yes, I already agreed with that. Swap file is a bad idea since it's inaccessible when you mount on the computer, but swap partition still is. Agreed.
Click to expand...
Click to collapse
Well it sounds like you have answered the threads questions then. An expert such as yourself should have come along a while ago and stated this for the community. Now that you have discredited Cyanogen and all the other Senior Members and developers maybe I'll just direct all of my private messages regarding swap, compcache and userinit.sh scripts to you. Enjoy it!

Related

Apps2SD via Google Froyo :)

Comment 559 by af9210, Today (2 hours ago)
will the feature require a certain class speed sd card
Comment 564 by [email protected], Today (28 minutes ago)
@559 - As with any software which needs to do a lot of I/O - the faster the card the
better.
Delete comment Comment 565 by af9210, Today (8 minutes ago)
@564 i understand... do you have knowledge about how it will be implemented..... for
instance do we need to create a separate partition ie ext2 ext4 etc?
Comment 566 by [email protected], Today (1 minute ago)
@565 - We've gone to a lot of effort to ensure you *don't* have to repartition / format your cards for this to work. We coexist with the existing FAT32 partition on the card to ensure compatibility with your existing cards/devices.
sounds pretty good development by the android team huh
sounds good but if i remember correctly the reason the community a2sd devs make it so you have to use an ext partition was to help prevent piracy, and of course have your phone usable when the sdcard was mounted by the pc. i wonder if google came up with a new type of copy protection.
godsfilth said:
sounds good but if i remember correctly the reason the community a2sd devs make it so you have to use an ext partition was to help prevent piracy, and of course have your phone usable when the sdcard was mounted by the pc. i wonder if google came up with a new type of copy protection.
Click to expand...
Click to collapse
However Ext partitions don't stop you pirating.
I can still get ALL of the installed apps off my phone if I need to and that's using my phone. No special software needed as such (nothing that's not free on the market anyway).
Yup, sounds like a new encryption method.
Yep, noone can boot up an ubuntu cd and mount the ext partition...
More likely it's because fat32 can't handle linux style file permissions.
godsfilth said:
sounds good but if i remember correctly the reason the community a2sd devs make it so you have to use an ext partition was to help prevent piracy, and of course have your phone usable when the sdcard was mounted by the pc. i wonder if google came up with a new type of copy protection.
Click to expand...
Click to collapse
They could install protected apps onto internal flash - as they do now. Most of apps aren't protected, so we'll still have a lot of additional space.
My theory is that rather than a separate partition, it'll just create a file of xx amount of size on the mem card, then fill it up. It'll probably be somewhat of a safe measure, as it'll most likely be encrypted and of a filetype that isn't common (or it could even be some kind of internal compression method such as zip, but a self written program).
They said they wouldnt do it until they figure out a way to encrypt it.
Ill take it thats what they did.
Yeah, they did say it would not come till they hashed out some piracy measures, not that they will help whatsoever, but they did say that.
I don't understand what the big deal is.
Couldn't they have just done Apps2SD for all free apps and called it a day?
No one is purchasing 500 megabytes worth of apps.
Offloading all the free ones to the SD = BOOM.
Easy and would have absolutely zero consequences on piracy.
Current methods have no consequences on piracy, future methods have no consequences on piracy. Hopefully the gave up worrying about something they can never stop.
GldRush98 said:
Current methods have no consequences on piracy, future methods have no consequences on piracy. Hopefully the gave up worrying about something they can never stop.
Click to expand...
Click to collapse
What is this word you speak of piracy, never heard of it
GldRush98 said:
Current methods have no consequences on piracy, future methods have no consequences on piracy. Hopefully the gave up worrying about something they can never stop.
Click to expand...
Click to collapse
Ever heard of cloud computing?
Paul22000 said:
I don't understand what the big deal is.
Couldn't they have just done Apps2SD for all free apps and called it a day?
No one is purchasing 500 megabytes worth of apps.
Click to expand...
Click to collapse
That is a very bold statement to make.
Once you can install applications to your sdcard, what's to stop you from purchasing ONE program that is, by itself, 500 MB?
Has anyone encountered a problem as far as apps that are able to move to sd and then disappearing from app menu? As well as icons on homescreen turning to android generic icons? I can still access the apps from homescreen ,manage apps and astro but as i said the icon for the app on the home screen changes to somewhat of a generic looking android icon. One of the apps in question is titanium backup.
Now if i go to manage apps and place apps back to phone everything reappears in its rightful spot. Could it be a temp glitch in froyo? Some setting i might have missed? Any info would be appreciated...thnx
Yes it happened to me, every applications I moved on the sdcard suddenly disappeared from the menu. I had to move one of them on the phone to make them all reappear. As I don't have so much applications installed (~25), I moved them all back to the phone until this is fixed
Lemim0uth said:
Yes it happened to me, every applications I moved on the sdcard suddenly disappeared from the menu. I had to move one of them on the phone to make them all reappear. As I don't have so much applications installed (~25), I moved them all back to the phone until this is fixed
Click to expand...
Click to collapse
cool, thnx for the response. Least i know i didnt screw something up lol.
Drane said:
Ever heard of cloud computing?
Click to expand...
Click to collapse
100% irrelevant to this thread and what I was talking about.

vibrant's storage structure

Can someone explain to me what is inside the vibrant that is used as storage.
People refer to the internal memory card, why, is it an actual memory card or is it simply because apps cannot be stored there.
Why is the app storage space limited to 2gb if the internal memory is 16gb, and if all 16gb resides on the same medium can't it just be symlinked similar to what people do with apps2sd on other phones with no detriment in performance?
Calcvictim said:
Can someone explain to me what is inside the vibrant that is used as storage.
People refer to the internal memory card, why, is it an actual memory card or is it simply because apps cannot be stored there.
Why is the app storage space limited to 2gb if the internal memory is 16gb, and if all 16gb resides on the same medium can't it just be symlinked similar to what people do with apps2sd on other phones with no detriment in performance?
Click to expand...
Click to collapse
There are 2 storage types soldered onto the vibrant. NAND (fast, small) and "flash" (16g, slow).
The nand is split up for various things like booting, firmware (/system), cache, etc. And - to solve lag with their own apps - 128 megs of it is split out for the built-in apps to use. (That is the 'method 1' fix - move all app data to nand, where it is super fast.)
The 16 gigs of flash is much slower than nand, and split into 2 sections:
- /data (mmcblk0p1) is android apps, app storage, settings, etc. (2 gigs of "application space"). This is the standard android-phone onboard storage, and not accessible to the PC.
- /sdcard (mmcblk0p2) is the 14 gig media/misc space. Standard fat filesystem, shown when you plug into the PC. (They basically subverted the standard android sdcard handling for this - solves some problems, but causes others.)
The removable sd is mounted to "/sdcard/sd".
^ awesome post man, care if I stick it in the sticky?
Disconn3ct said:
There are 2 storage types soldered onto the vibrant. NAND (fast, small) and "flash" (16g, slow).
The nand is split up for various things like booting, etc. And - to solve lag with their own apps - 128 megs of it is split out for the built-in apps to use. (That is the 'method 1' fix - move all apps to nand, where it is super fast.)
The flash is much slower than nand, and split into 2 sections:
- /data is android apps, app storage, settings, etc. (2 gigs of "application space"). This is the standard android-phone onboard storage, and not accessible to the PC.
- /sdcard is the large media/misc space. Standard fat filesystem, shown when you plug into the PC. (They basically subverted the standard android sdcard handling for this - solves some problems, but causes others.)
The removable sd is mounted to "/sdcard/sd".
Click to expand...
Click to collapse
so RyanZA's lag fix, which creates a 1gb file system within the 2 gigs....why can't it be mapped outside of the original appspace since everything resides on flash anyway, the speeds should be the same, no?
s15274n said:
^ awesome post man, care if I stick it in the sticky?
Click to expand...
Click to collapse
Sure. (I wanted to doublecheck some info, so it is slightly updated.)
Calcvictim said:
so RyanZA's lag fix, which creates a 1gb file system within the 2 gigs....why can't it be mapped outside of the original appspace since everything resides on flash anyway, the speeds should be the same, no?
Click to expand...
Click to collapse
"mapped outside the original appspace"? Those words all make sense but not in that order
Data (and cache and so forth) all use samsung's proprietary RFS filesystem. (It has been described as "fat with wear levelling, unix perms and journalling".) The loopback mount fix basically bypasses all that and just shows rfs a large monolithic file. You lose reliability (journal) and flash protection (wear levelling, erase optimization) and so forth, but get speeds much closer to the raw flash. (Personally, I'm a fan of not prematurely destroying soldered on storage..)
One of the things to be tried is yaffs/jffs in place of rfs - all the advantages/protections with much better performance..
Disconn3ct said:
"mapped outside the original appspace"? Those words all make sense but not in that order
Click to expand...
Click to collapse
I understand about the RFS, I just don't really understand why the appspace is limited to 2 gigs when there are 16 gigs on the same piece of silicon. Why is it not a matter of partitioning and mounting the other 16 gigs?
Calcvictim said:
I understand about the RFS, I just don't really understand why the appspace is limited to 2 gigs when there are 16 gigs on the same piece of silicon. Why is it not a matter of partitioning and mounting the other 16 gigs?
Click to expand...
Click to collapse
First, it's not "the other 16 gigs". It is 16 gigs total - 2 for apps/data, 14 for media/etc.
How pissed would you be if only kies (and adb) could get to that storage? That's why - 14 of it is presented as vfat, so that it can be exported over usb to the pc. You might be able to adjust the split a little (eg 8/8) using modified pit files and odin, but I wouldn't even count on that..
Certainly you can't share the space - android security guarantees that only the app (well, and root, but..) can read the app's files. Not the pc, not other apps. So you need something vfat hasn't got (owners, permissions) and you need to not export it to the pc where those limits won't be enforced. (Finally, you only get one fs user at a time - if you have it on the pc, you can't have it on the phone. "Please reboot into usb mode" hasn't been OK since the late 90s...)
Disconn3ct said:
First, it's not "the other 16 gigs". It is 16 gigs total - 2 for apps/data, 14 for media/etc.
How pissed would you be if only kies (and adb) could get to that storage? That's why - 14 of it is presented as vfat, so that it can be exported over usb to the pc. You might be able to adjust the split a little (eg 8/8) using modified pit files and odin, but I wouldn't even count on that..
Certainly you can't share the space - android security guarantees that only the app (well, and root, but..) can read the app's files. Not the pc, not other apps. So you need something vfat hasn't got (owners, permissions) and you need to not export it to the pc where those limits won't be enforced. (Finally, you only get one fs user at a time - if you have it on the pc, you can't have it on the phone. "Please reboot into usb mode" hasn't been OK since the late 90s...)
Click to expand...
Click to collapse
Ok, so if someone did modify the PIT file then it would be possible. It's not a hardware limitation, but just the way the firmware is setup.
What speed is the other 14Gb? How does it compare to standard microSD? Class 4 at least?
Calcvictim said:
Ok, so if someone did modify the PIT file then it would be possible. It's not a hardware limitation, but just the way the firmware is setup.
Click to expand...
Click to collapse
Modify the pit, and the bootloader, and (possibly) the rfs partition scheme, and (possibly) the kernel.
People found a pit that changes the layout a little bit and they're getting a higher-than-normal percentage of bricks. (I don't know how high, but look at all the odin threads that warn against using the new pit..) It is doable, but not reliable yet. Did you already fill 2 gigs of app storage? Thats .. kinda nuts.
applebook said:
What speed is the other 14Gb? How does it compare to standard microSD? Class 4 at least?
Click to expand...
Click to collapse
They claim class 6. With rfs, it is ok until you get to multiple requests - then it goes all thrashy instead of threading properly..
If it's around class 6, then I'm satisfied. Since that memory is for storing media, I have little use for anything much faster anyway.
Disconn3ct said:
People found a pit that changes the layout a little bit and they're getting a higher-than-normal percentage of bricks. (I don't know how high, but look at all the odin threads that warn against using the new pit..) It is doable, but not reliable yet. Did you already fill 2 gigs of app storage? Thats .. kinda nuts.
.
Click to expand...
Click to collapse
I didn't fill the 2 gigs but I don't use the phone for media really, it's just apps and games and just wandering since it would be nice to have more storage for those things.
So what is the size difference between the Vibrants with the larger NAND and the smaller NAND?
What difference does this make in the real world?
Why would they put two different size NAND chips?
SamsungVibrant said:
Why would they put two different size NAND chips?
Click to expand...
Click to collapse
Samsung does some weird things sometimes
Disconn3ct said:
"mapped outside the original appspace"? Those words all make sense but not in that order
Data (and cache and so forth) all use samsung's proprietary RFS filesystem. (It has been described as "fat with wear levelling, unix perms and journalling".) The loopback mount fix basically bypasses all that and just shows rfs a large monolithic file. You lose reliability (journal) and flash protection (wear levelling, erase optimization) and so forth, but get speeds much closer to the raw flash. (Personally, I'm a fan of not prematurely destroying soldered on storage..)
One of the things to be tried is yaffs/jffs in place of rfs - all the advantages/protections with much better performance..
Click to expand...
Click to collapse
So are you saying that samsung's filesystem (rfs) causes wear and tear to the flash drive? Do any of the lag fixes that replace the rfs filesystem (ext 2/3/4) cause wear and tear to the drive as well? I am personally not applying a lag fix for this reason, but if samsung's rfs does that already, might as well take the plunge with a lag fix...
I read somewhere that the nexus one uses a filesystem created for flash drives - it started with a y, probably the yaffs that you spoke of?
Sent from my SGH-T959 using XDA App
veol said:
So are you saying that samsung's filesystem (rfs) causes wear and tear to the flash drive? Do any of the lag fixes that replace the rfs filesystem (ext 2/3/4) cause wear and tear to the drive as well? I am personally not applying a lag fix for this reason, but if samsung's rfs does that already, might as well take the plunge with a lag fix...
I read somewhere that the nexus one uses a filesystem created for flash drives - it started with a y, probably the yaffs that you spoke of?
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
I took him to mean that a loopback mount style lagfix, like OCLF, can cause premature deterioration.
Kubernetes said:
I took him to mean that a loopback mount style lagfix, like OCLF, can cause premature deterioration.
Click to expand...
Click to collapse
That all depends on how samsung implemented wear leveling. It would be insanely stupid to do it in a way that would cause premature death of the flash with a loop file system though. Wear leveling is generally done at the block level so that file systems that have to write to fixed locations a lot like fat don't kill that block. As rfs is fat, I think it's unlikely that it will cause issues.
We can't use yaffs2 and friends without replacing the kernel driver for the flash. They don't work on block devices, they require raw flash access. I suspect it will also require a new secondary boot loader. I wouldn't attempt it without a dev phone and jtag access.
ttabbal said:
That all depends on how samsung implemented wear leveling. It would be insanely stupid to do it in a way that would cause premature death of the flash with a loop file system though. Wear leveling is generally done at the block level so that file systems that have to write to fixed locations a lot like fat don't kill that block. As rfs is fat, I think it's unlikely that it will cause issues.
We can't use yaffs2 and friends without replacing the kernel driver for the flash. They don't work on block devices, they require raw flash access. I suspect it will also require a new secondary boot loader. I wouldn't attempt it without a dev phone and jtag access.
Click to expand...
Click to collapse
Ah... sorry for asking a noobish question and being off-topic a little, but if I were to use a lagfix, which one is best (for the flash drive)?
Thanks for the questions and the answers and for laying it out in understandable terms! A good read.
Sent from my SGH-T959 using XDA App

Partition SD

Anyone know good partition settings for the sd card? I've been troubled simply because clockwork doesn't really do it all well. I'm using linux, I love the disk management on linux Thanks for the info!
What do you mean 'good partition settings'? Sizes or more like types of partitions like Linux Swap, ext2,3,4...? With Android there's not much use for anything beyond basic Linux partitions (0x83) like ext2,3,4 and Linux Swap (0x82). Even at that, ext2 is all you really need - maybe ext3 for good measure. This whole deal with ext4 is crazy since our file systems are not even remotely close to being large enough to see a benefit from ext4, only a very tiny slight benefit, almost unnoticeable for the most part. The placebo effect works wonders IMO. Might as well use it though, since it doesn't take anymore time.
As far as swap, we don't need it on this phone really and even with a class 6 card it still slows you down. Use compcache. It should be faster assuming current ROMs retain the fix cyanogen put in back in the G1 days.
thanks
KCRic said:
What do you mean 'good partition settings'? Sizes or more like types of partitions like Linux Swap, ext2,3,4...? With Android there's not much use for anything beyond basic Linux partitions (0x83) like ext2,3,4 and Linux Swap (0x82). Even at that, ext2 is all you really need - maybe ext3 for good measure. This whole deal with ext4 is crazy since our file systems are not even remotely close to being large enough to see a benefit from ext4, only a very tiny slight benefit, almost unnoticeable for the most part. The placebo effect works wonders IMO. Might as well use it though, since it doesn't take anymore time.
As far as swap, we don't need it on this phone really and even with a class 6 card it still slows you down. Use compcache. It should be faster assuming current ROMs retain the fix cyanogen put in back in the G1 days.
Click to expand...
Click to collapse
Thanks. I ended up re flashing clockwork and the partition worked for some reason. On another note, I havent' been able to format my sd card directly from the android storage settings for some reason. This has happened on stock and any CM rom I use. Think I have a bad sd card?
llontop.m said:
Thanks. I ended up re flashing clockwork and the partition worked for some reason. On another note, I havent' been able to format my sd card directly from the android storage settings for some reason. This has happened on stock and any CM rom I use. Think I have a bad sd card?
Click to expand...
Click to collapse
Could be but I've never had that issue before, nor have I heard of it happening - that's not to say it doesn't. Try to search around on here and see what you come up with. Try the Nexus 1 or G1 forums since you're more likely to find an answer there.

Phone is running really smooth after I reformatted sd card.....

I was trying to fix my friend's evo and so I formatted my sd card to try to boot his, but when I put it back in my phone I realized mine was partitioned to run apps off of it so I had to reinstall apps. I did not re partition it. Not sure why some say they are installed on the sd card and some on the phone, but it is running much faster with no lag. It's no big deal, but I imagine running apps off the sd card really lags. But I did think it needed to be partitioned unless the Kings Shooter Rom can do it without partitioning. Maybe it wasn't partitioned before, but I could have swarn I had 1gb for apps.
Depends on your card class mines a class 6 but reads faster since I use SD booster to add a 2048 cache and my speeds are really high 11.5mbps write and 30.5mbps read so I notice no lag except on boot while my card has to mount and load once it mounts all my apps on the partition load in less than 30 seconds u.can use the app SD tools to find out your cards class and read/write speed
Sent from my Classic-EViLizED-ToMAToFiED-EVo4g-
-EViL-KoNCEPTz- said:
Depends on your card class mines a class 6 but reads faster since I use SD booster to add a 2048 cache and my speeds are really high 11.5mbps write and 30.5mbps read so I notice no lag except on boot while my card has to mount and load once it mounts all my apps on the partition load in less than 30 seconds u.can use the app SD tools to find out your cards class and read/write speed
Sent from my Classic-EViLizED-ToMAToFiED-EVo4g-
Click to expand...
Click to collapse
Ok, good to know. I knew there was a difference but I didn't realize how slow my card is. It's the stock 8gb one that came with the phone. It's great now, and I don't have too many apps or I would buy one like yours. I will try the app sd tool. Is it on the market? I'll check now.
Yea its on the market as well as SD-booster it will allow u to boost your card speeds the stock.card is a class 2 which is fairly slow but if u set a 2048 cache with SD-booster you should get about class 6 speeds
Sent from my Classic-EViLizED-ToMAToFiED-EVo4g-
Flash memory also gets slow over time due to garbage collection. It can only be restored to its full speed again by formatting it. I copy everything off to my computer, format it, then copy it all back. Phone doesn't know the difference so nothing gets messed up.
I do the same about once a week or so when I backup my card to the pc I usually do a quick format on pc reparation//format in recovery then reload everything from the pc
Sent from my Classic-EViLizED-ToMAToFiED-EVo4g-
You don't ever NEED to partition. I never did but thats because I don't have a lot if useless apps. Only keep apps that you use atleast weekly
Having trouble with AOSP? http://forum.xda-developers.com/showthread.php?t=1295702
I didn't reformat my SD card, I was playing around with my dalvik cache. Used a2sd to move it to my cache partition, bad idea (kept running out of space) so I moved it back. After I was done everything seems to run a lot smoother. Guess it helps to wipe everything down every now and then.
Crossrocker said:
You don't ever NEED to partition. I never did but thats because I don't have a lot if useless apps. Only keep apps that you use atleast weekly
Having trouble with AOSP? http://forum.xda-developers.com/showthread.php?t=1295702
Click to expand...
Click to collapse
I partition cuz I have a ton of stuff I use on my phone mostly games for me and my 5 year old but I also partition cuz I find kkeeping my internal storage high makes my phone run better
Sent from my Classic-EViLizED-ToMAToFiED-EVo4g-
awesome
Soulfire_ said:
Flash memory also gets slow over time due to garbage collection. It can only be restored to its full speed again by formatting it. I copy everything off to my computer, format it, then copy it all back. Phone doesn't know the difference so nothing gets messed up.
Click to expand...
Click to collapse
Just to make sure so I don't screw anything up. We're talking about the memory we have when we plug the phone into the pc with the usb cable. That makes total sense since the pc is the same way but there is onboard tools to clean up the hd.
jeffrimerman said:
Just to make sure so I don't screw anything up. We're talking about the memory we have when we plug the phone into the pc with the usb cable. That makes total sense since the pc is the same way but there is onboard tools to clean up the hd.
Click to expand...
Click to collapse
or are we talking about the sd card so that is the reason the phone is smoother since I did format it?
jeffrimerman said:
or are we talking about the sd card so that is the reason the phone is smoother since I did format it?
Click to expand...
Click to collapse
I'm talking about the SD Card, wasn't that the topic?
I just mounted it as a disk drive.
Warning though - your music playlists WILL BE CLEARED. Back up the playlist first.
(music disappears from the playlist if it is changed in any way, like renaming files, moving them, etc)
There is the ROM, RAM, and SD card, but is there also internal memory that isn't the ROM? The memory that we download apps to internally is like an onboard sd card right? Could this memory be reformatted to improve performance or maybe it's only the sd card that gets all the garbage accumulating?
jeffrimerman said:
There is the ROM, RAM, and SD card, but is there also internal memory that isn't the ROM? The memory that we download apps to internally is like an onboard sd card right? Could this memory be reformatted to improve performance or maybe it's only the sd card that gets all the garbage accumulating?
Click to expand...
Click to collapse
That's a good question - it would be susceptible to the same shortfalls of degraded performance over time like all flash memory.
Isn't that one of the things we format from recovery?
Soulfire_ said:
That's a good question - it would be susceptible to the same shortfalls of degraded performance over time like all flash memory.
Isn't that one of the things we format from recovery?
Click to expand...
Click to collapse
It probably is. If we were to go into recovery and format it, would we lose our apps stored in our internal memory?
My money would be on "yes".
I asked Mr. Google to check the WWW and this is one of the things I found
"I did it, it doesn't wipe the os. Actually, it deleted only 'user part of the internal sd card' and some applications. I made a factory reset then formatted, so I am not sure about the applications but, sure, it doesn't delete the os. "
there were lots of threads so yeah, the apps would be gone. It's too bad there isn't or maybe there is an app that does the same as defrag in windows to clean things up internally.
Comments I read off the same questions about internal memory:
Android is Linux, not Windows, the system doesn't have a chance to get fragmented because Linux is constantly doing "housekeeping" in the background (Kinda says a lot about Windows, eh?). I wouldn't trust any Windows OS to do anything with a Linux OS, it's just a recipe for disaster.
Don't ever screw with the internal memory. There have been several threads here and elsewhere in which people accidentally formatted the internal instead of the SD card when both drives showed up on the PC. Creates a situation nobody wants to be in.
Defragging is very very bad for flash storage. There is a limit to how many times you can write to each location on the "disk". Since defragging basically rewrites the entire "disk" multiple times, it seriously eats into the life of the "disk".
It also is largely unnecessary since it has much faster seek time than a physical hard disk, and has been pointed out the storage is far less likely to become fragmented on a phone.
Use Titanium Backup...and you lose nothing. Simple format...load favorite ROM..reinstall apps from TB.
jeffrimerman said:
Comments I read off the same questions about internal memory:
Android is Linux, not Windows, the system doesn't have a chance to get fragmented because Linux is constantly doing "housekeeping" in the background (Kinda says a lot about Windows, eh?). I wouldn't trust any Windows OS to do anything with a Linux OS, it's just a recipe for disaster.
Don't ever screw with the internal memory. There have been several threads here and elsewhere in which people accidentally formatted the internal instead of the SD card when both drives showed up on the PC. Creates a situation nobody wants to be in.
Defragging is very very bad for flash storage. There is a limit to how many times you can write to each location on the "disk". Since defragging basically rewrites the entire "disk" multiple times, it seriously eats into the life of the "disk".
It also is largely unnecessary since it has much faster seek time than a physical hard disk, and has been pointed out the storage is far less likely to become fragmented on a phone.
Click to expand...
Click to collapse
We aren't talking about fragmentation. We're talking about what some companies call "garbage collection", or TRIM in the context of SSD's. Look that up

Moto E4 (Verizon) [xt1767] Move Apps to SD without root

This phone has no root and likely never will.
Is there anyway to move apps to the sdcard without formatting to internal (adopted storage)?
I don't want to do that because It encrypts the card and im fearful if the phone was ever damaged I'd never be able to pull the card and recover anything.
At the very least is there a way to shuffle off the OBB files to the sdcard without root?
Bonus question: is there a fix for this if root was possible?
Raztan said:
This phone has no root and likely never will.
Is there anyway to move apps to the sdcard without formatting to internal (adopted storage)?
I don't want to do that because It encrypts the card and im fearful if the phone was ever damaged I'd never be able to pull the card and recover anything.
At the very least is there a way to shuffle off the OBB files to the sdcard without root?
Bonus question: is there a fix for this if root was possible?
Click to expand...
Click to collapse
Not that I'm aware of. But you could do a hybrid sd card to put apps on the adopted partition, and keep your photos/music/other stuff on a standard unencrypted partition.
dandrumheller said:
Not that I'm aware of. But you could do a hybrid sd card to put apps on the adopted partition, and keep your photos/music/other stuff on a standard unencrypted partition.
Click to expand...
Click to collapse
Genius, That sounds like a workable solution.
So do I need to format the card in any special way or can I just repartition the card in half and android will see both partitions?
Raztan said:
Genius, That sounds like a workable solution.
So do I need to format the card in any special way or can I just repartition the card in half and android will see both partitions?
Click to expand...
Click to collapse
Here's the guide I followed:
http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html?m=1
I got yelled at over on Reddit for suggesting this for to the potential for killing your SD card (as they're not 'designed' for this much read write action). That may be true. I've been running this way with no issues for over a year. YMMV.
dandrumheller said:
Here's the guide I followed:
http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html?m=1
I got yelled at over on Reddit for suggesting this for to the potential for killing your SD card (as they're not 'designed' for this much read write action). That may be true. I've been running this way with no issues for over a year. YMMV.
Click to expand...
Click to collapse
I have been following a similar dual partition practice on a rooted Android 5.x device using symbolic links to migrate apps to the ext4 formatted partition while retaining a larger FAT32 partition for general use. I used the free version of Partition Wizard on Windows to format the SD card to my liking. To date no issues with card endurance.
I never considered this approach for adoptable storage until seeing your post! Very interested in trying this on on an unrooted Android 6 device that's getting a little snug on internal storage. I'll post outcomes if they differ from your findings.
Thanks again for sharing!
Confirm, Works on Verizon Moto E4
I tried to be clever about it and repartitioned with Gparted, Then aligned the fat under linux mint.
I popped the SDcard back in teh phone and it detected 2 SDcards.. great I thought.. I went into the smaller partition 48gb / 10gb
Hit internal memory format.. to my horror it took over the entire card..
I tried the guide and it worked fine, although you're sort of at it's mercy on how it formats.. it's a fairly simple procedure.
I am somewhat confused though after I did it before I moved anything to the card it says 5.5gb of space is being taken by "system" on the internal portion of the sdcard, It says total internal memory is 32gb but actually it should be more like 26gb (16 onboard + 10gb sdcard)
Im seriously confused on how to tell what files are stored on the sdcard and what's stored on the onboard memory.. it shows them separate under "storage" but ES explorer just shows the 48gb fat partition and the 10gb.. does not seem to be able to separate the internal and the sdcard, but it shows total space as 10gb so something really wrong there.
Maybe cause Im using a old version of ES before it went to hell.. 4.0.3 I think.
Im not sure now when I select sdcard if im getting the 48gb portion the SDCard or the 10gb "adopted storage" sdcard..
Very confusing.
EDIT: Ok I think I see what's going on.
The 10gb Im seeing is actual internal memory.. So it does not appear I can access the 10gb I set aside on the sdcard at all.. is that how it's suppose to work?
I installed a few large games, If I go into storage and click on the 10GB partition it says each game is saving about 50mb out of about 700mb /ea on the card.. whoa what a savings, I don't what that 50mb is but it sure ain't the huge ass obb file sitting in internal memory.
If I go into the app's data storage list it says it's storing to the adopted 10gb but obviously that's a lie since only a fraction is actually making it to the card...
if this is the best I can hope for out of adopted storage I'd be better off just going full portable.
Am I missing something?
Raztan said:
Confirm, Works on Verizon Moto E4
I tried to be clever about it and repartitioned with Gparted, Then aligned the fat under linux mint.
I popped the SDcard back in teh phone and it detected 2 SDcards.. great I thought.. I went into the smaller partition 48gb / 10gb
Hit internal memory format.. to my horror it took over the entire card..
I tried the guide and it worked fine, although you're sort of at it's mercy on how it formats.. it's a fairly simple procedure.
I am somewhat confused though after I did it before I moved anything to the card it says 5.5gb of space is being taken by "system" on the internal portion of the sdcard, It says total internal memory is 32gb but actually it should be more like 26gb (16 onboard + 10gb sdcard)
Im seriously confused on how to tell what files are stored on the sdcard and what's stored on the onboard memory.. it shows them separate under "storage" but ES explorer just shows the 48gb fat partition and the 10gb.. does not seem to be able to separate the internal and the sdcard, but it shows total space as 10gb so something really wrong there.
Maybe cause Im using a old version of ES before it went to hell.. 4.0.3 I think.
Im not sure now when I select sdcard if im getting the 48gb portion the SDCard or the 10gb "adopted storage" sdcard..
Very confusing.
EDIT: Ok I think I see what's going on.
The 10gb Im seeing is actual internal memory.. So it does not appear I can access the 10gb I set aside on the sdcard at all.. is that how it's suppose to work?
I installed a few large games, If I go into storage and click on the 10GB partition it says each game is saving about 50mb out of about 700mb /ea on the card.. whoa what a savings, I don't what that 50mb is but it sure ain't the huge ass obb file sitting in internal memory.
If I go into the app's data storage list it says it's storing to the adopted 10gb but obviously that's a lie since only a fraction is actually making it to the card...
if this is the best I can hope for out of adopted storage I'd be better off just going full portable.
Am I missing something?
Click to expand...
Click to collapse
I'm not sure what the method is for determining where a specific app lands when installed. Maybe up to the developer? But going into settings > storage shows me what's below. Drill down to the apps section, and you can manually choose what storage you want for each app.
This is my setup with a 128gb card with 32gb used as adopted storage.
Your's looks similar to mine.
Are you able to actually access the adopted storage partition... browse for files? see I can't.. I can see internal storage and the public portion of the sdcard..
The adopted storage is not accessible via file manager.
It does not look like it will switch over once internal is full either.. I filled up the internal memory and then tried to install a app and it is telling me im out of space.
If this is the the way adopted storage is suppose to work it's fairly useless imo.
Raztan said:
Your's looks similar to mine.
Are you able to actually access the adopted storage partition... browse for files? see I can't.. I can see internal storage and the public portion of the sdcard..
The adopted storage is not accessible via file manager.
It does not look like it will switch over once internal is full either.. I filled up the internal memory and then tried to install a app and it is telling me im out of space.
If this is the the way adopted storage is suppose to work it's fairly useless imo.
Click to expand...
Click to collapse
I'm not aware of any file manager that can see the adopted storage. Haven't filled up internal to know if it will "spill over".
Some apps cannot be moved to adopted. Some install there by default.
My use case is to dump my low use or less resource demanding apps to the adopted storage, freeing internal faster storage for high use apps.
It's certainly not an ideal solution, but it at least provides an option for reducing limited internal storage...
I gotcha, I can only seem to get about 50mb's to transfer over, dead trigger 2 and hitman sniper
the bulk of it (the OBB files) stick around on internal whether or not I tell it to "change" to the sdcard or not..
Oh well Im just gonna reformat to portable and just limit what I install.. Why does google do this crap to us.
I lived without root on some of my previous phones but from here on out if it don't have root I got no use for it
Raztan said:
I gotcha, I can only seem to get about 50mb's to transfer over, dead trigger 2 and hitman sniper
the bulk of it (the OBB files) stick around on internal whether or not I tell it to "change" to the sdcard or not..
Oh well Im just gonna reformat to portable and just limit what I install.. Why does google do this crap to us.
I lived without root on some of my previous phones but from here on out if it don't have root I got no use for it
Click to expand...
Click to collapse
NVM, forgot you said no root. My apologies
Raztan said:
I gotcha, I can only seem to get about 50mb's to transfer over, dead trigger 2 and hitman sniper
the bulk of it (the OBB files) stick around on internal whether or not I tell it to "change" to the sdcard or not..
Oh well Im just gonna reformat to portable and just limit what I install.. Why does google do this crap to us.
I lived without root on some of my previous phones but from here on out if it don't have root I got no use for it
Click to expand...
Click to collapse
I messed around with this for a bit. Was able to partition the card to my liking using the simple sm command outlined in this post (manual method). Much easier and more understandable than the previously linked approach IMO. Installed and moved a few things; everything worked as expected although the feedback from Google's storage panel is less than reassuring. They really want to make the process transparent and in doing so dilute the detail that enthusiasts appreciate.
Someone asked if you could see inside adopted storage with a standard file manager. Nope, as the contents are encrypted and Google does not provide an API TTBOMK.
There are random posts mentioning lost of home screen icons on reboots and other 'weirdness' when using adopted storage. I didn't experience any of that but also didn't spend much time testing.
In the end I stepped away and returned the entire SD card to portable storage as the benefit wasn't worth the potential hassles. That said, I could see this as a potential solution for those who are bumping up against the limits of internal storage AND need/want to reserve part of the SD card for general purpose storage.
Davey126 said:
I messed around with this for a bit. Was able to partition the card to my liking using the simple sm command outlined in this post (manual method). Much easier and more understandable than the previously linked approach IMO. Installed and moved a few things; everything worked as expected although the feedback from Google's storage panel is less than reassuring. They really want to make the process transparent and in doing so dilute the detail that enthusiasts appreciate.
Someone asked if you could see inside adopted storage with a standard file manager. Nope, as the contents are encrypted and Google does not provide an API TTBOMK.
There are random posts mentioning lost of home screen icons on reboots and other 'weirdness' when using adopted storage. I didn't experience any of that but also didn't spend much time testing.
In the end I stepped away and returned the entire SD card to portable storage as the benefit wasn't work the potential hassles. That said, I could see this as a potential solution for those who are bumping up against the limits of internal storage AND need/want to reserve part of the SD card for general purpose storage.
Click to expand...
Click to collapse
Any icons on home screens for apps that are in adopted storage will vanish after reboot until the device has time to re read adopted storage. Size and speed of card, and amount of data there all impact this. Pretty sure widgets are unavailable to apps on adopted storage as well.
It pretty much works about the same as the old apps2sd / link2sd options that we had to use back in the days of tiny on device storage sizes.
dandrumheller said:
Any icons on home screens for apps that are in adopted storage will vanish after reboot until the device has time to re read adopted storage. Size and speed of card, and amount of data there all impact this. Pretty sure widgets are unavailable to apps on adopted storage as well.
It pretty much works about the same as the old apps2sd / link2sd options that we had to use back in the days of tiny on device storage sizes.
Click to expand...
Click to collapse
I have used symbolic linking (Apps2SD/Link2SD/etc) for sometime on rooted devices and never ran into such issues. I am also able to migrate apps and all associated data w/o limitation.
As you pointed out hardware/card speed and quantity of data likely are likely factors when using adopted storage. There is less setup and boot verification with symbolic linking; much of that takes place before the device is ready for user input. It's not a perfect solution as the mount scripts sometimes get borked and have to be rebuilt but supervisory apps detect/correct that with minimal intervention.
The biggest benefit of adoptable storage is it can be used on stock/unrooted devices. It's also relatively transparent for noobs. Beyond that it's more of a PiTA IMHO.
Davey126 said:
I have used symbolic linking (Apps2SD/Link2SD/etc) for sometime on rooted devices and never ran into such issues. I am also able to migrate apps and all associated data w/o limitation.
As you pointed out hardware/card speed and quantity of data likely are likely factors when using adopted storage. There is less setup and boot verification with symbolic linking; much of that takes place before the device is ready for user input. It's not a perfect solution as the mount scripts sometimes get borked and have to be rebuilt but supervisory apps detect/correct that with minimal intervention.
The biggest benefit of adoptable storage is it can be used on stock/unrooted devices. It's also relatively transparent for noobs. Beyond that it's more of a PiTA IMHO.
Click to expand...
Click to collapse
It's been a long time since I've played with symbolic linking. At the time it felt pretty cumbersome to me, relative to my current experience with adopted storage. Definitely less user control and fine tuning with adopted though. Also, as you mention, no root required.
Davey126 said:
Someone asked if you could see inside adopted storage with a standard file manager. Nope, as the contents are encrypted and Google does not provide an API TTBOMK.
Click to expand...
Click to collapse
Ya that sucks, It wouldn't be so bad if it would just move the largest chunk of an app over which on games is the OBB file(s)
Im sure google thinks this is better than the old move to sdcard option but imo they took a big step back.
I read their reasoning is how "wild west" the sdcard access was.. ya well if they're so worried about security maybe crack down on the overly abusive permissions on apps.. you can control some access, but some permissions they just treat like it's no big deal.
I guess google knows best right? /sarcasm.
Davey126 said:
In the end I stepped away and returned the entire SD card to portable storage as the benefit wasn't work the potential hassles. That said, I could see this as a potential solution for those who are bumping up against the limits of internal storage AND need/want to reserve part of the SD card for general purpose storage.
Click to expand...
Click to collapse
Ya that's where Im at, Im just gonna be real selective about what I install, with only 16gb's about 5 of which is the system (that's crazy imo that android needs that much space) leaving only around 10-11gb of user space a few large games can really eat it up on top of cache, and other apps.
I think GTA SA for example takes like 2-3 gb (iirc, been a while)
madbat99 said:
NVM, forgot you said no root. My apologies
Click to expand...
Click to collapse
Not at all, Im also interested in root solutions it won't help me on this phone but it would be good to know what other options are out there..
Next phone has to have root.. no two ways about it.
Raztan said:
Ya that sucks, It wouldn't be so bad if it would just move the largest chunk of an app over which on games is the OBB file(s)
Im sure google thinks this is better than the old move to sdcard option but imo they took a big step back.
I read their reasoning is how "wild west" the sdcard access was.. ya well if they're so worried about security maybe crack down on the overly abusive permissions on apps.. you can control some access, but some permissions they just treat like it's no big deal.
I guess google knows best right? /sarcasm.
Ya that's where Im at, Im just gonna be real selective about what I install, with only 16gb's about 5 of which is the system (that's crazy imo that android needs that much space) leaving only around 10-11gb of user space a few large games can really eat it up on top of cache, and other apps.
I think GTA SA for example takes like 2-3 gb (iirc, been a while)
Not at all, Im also interested in root solutions it won't help me on this phone but it would be good to know what other options are out there..
Next phone has to have root.. no two ways about it.
Click to expand...
Click to collapse
I was going to say the Xposed module obb on SD looks promising. But then I remembered that no root was mentioned.
https://labs.xda-developers.com/store/xposed/com.smartmadsoft.xposed.obbonsd
madbat99 said:
I was going to say the Xposed module obb on SD looks promising.
Click to expand...
Click to collapse
Ya exposed framework is one of my favorite things on a rooted device, although someone told me it's semi broken on a lot of newer devices?
Raztan said:
Ya exposed framework is one of my favorite things on a rooted device, although someone told me it's semi broken on a lot of newer devices?
Click to expand...
Click to collapse
Works great on my moto e4 sprint (virgin mobile). And rovo89 just updated it for Oreo (beta of course), so it should be good. I'm using it with greenify, amplify, and gravitybox.
Raztan said:
Ya exposed framework is one of my favorite things on a rooted device, although someone told me it's semi broken on a lot of newer devices?
Click to expand...
Click to collapse
Outdated info; works fine on Marshmallow, Nougat and (very soon) Oreo.

Categories

Resources