9

My app market (Google Play) has a problem. I can't install any apps on my phone (Lenovo, rooted) because of "There isn't enough space in the disk", but actually there is. After asking a friend, I moved apps to the SD card. After more tries, I understand that the apps are installed on the /data partition and when it is full, I can't install more apps.

When typing df I get:

# df
Filesystem               Size     Used     Free   Blksize
/dev                   482.1M   128.0K   481.9M   4096
/sys/fs/cgroup         482.1M    12.0K   482.0M   4096
/mnt/secure            482.1M     0.0K   482.1M   4096
/mnt/asec              482.1M     0.0K   482.1M   4096
/mnt/obb               482.1M     0.0K   482.1M   4096
/system                885.8M   679.5M   206.4M   4096
/data                  908.5M   825.9M    82.6M   4096
/cache                 123.0M     4.0M   119.0M   4096
/protect_f               8.8M     4.1M     4.8M   4096
/protect_s               8.8M     4.0M     4.8M   4096
/mnt/cd-rom              1.2M     1.2M     0.0K   2048

I know from another app that there is more free, not mounted space.

How can I resize this partition? If more output is needed so tell me what to type. Thanks.

3

You should never ever resize any partitions on Android. That not mounted space might be something the device uses in something like an emergency mode to restore the device. Moving apps to SD does not do anything because the SD you are moving the files from /data/app to some hidden folder inside /data/media (your "SD").

You might want to either uninstall some apps, use some weird method to swap internal SD and your external SD or check if you had an app already installed and check for left files or folders in /data/data and search for the package name.

5

As GiantTree correctly pointed out, That not mounted space might be something the device uses in something like an emergency mode to restore the device. More precisely: it not only might be, but it is. Your df output e.g. doesn't say anything about the /recovery or /boot partitions. And there are even more we are not aware of.

Another argument against re-sizing: You won't be able to install any Android updates anymore, as those often come as "images" to flash (replacing entire file systems) – which then no longer would match the partition size, causing the update to fail to flash at best, or bricking your device at worst.

If no longer gives you enough freedom, you can take a look at – which is able to not only move the entire app to your device's external SD card (App2SD only moves parts), but can even move more, such as their data files and libraries.

For some more background, take a look at the link2sd tag-wiki, and also the app2sd tag-wiki.

  • 1
    Thanks for critisizing (downvote). I'm willing to learn, so I'd welcome a comment on that: Did I get anything wrong – or was it just "bad mood"? ;) – Izzy Dec 26 '14 at 22:40
2

Sorry for the necropost, but there is and always has been a way to do this if a user wants to. The previous comments are correct, there are more "hidden" partitions present that are not easily seen or manipulated from Windows or Android local installs so what you have to do is have a look at the drive from an outside perspective using a tool that recognizes many file systems. In my experience the best way to do that is by using GParted (live image available here)

Use a tool such as Rufus to create a bootable USB stick using the GParted live image, and then boot to it (using a USB hub and OTG cable if necessary for keyboard, mouse, etc). I prefer the graphical interface, but GParted is also usable via command line. Once booted into the graphical interface (requires the user to type startx where prompted), GParted will automatically run and analyze all partitions and eventually give you a comprehensive display of their configuration. As it is Linux-based and you're automatically logged in as superuser you are now in full control as far as any hdd or partition in the machine (tablets, phones, PCs, size and shape doesn't matter) and you can see all hidden partitions. For the record GParted is intended for variations of x86 architecture but may work on other devices as well via built-in emulation so always worth a shot at least IMO.

With God-like power comes God-like responsibility so
1) I'm not responsible for what happens if this screws the pooch on you and
2) BE CAREFUL WHAT YOU DO INSIDE GPARTED. VERY VERY CAREFUL.

That said, if you find a partition while analyzing via GParted that is of any usable size which is marked as unallocated you can trust it. In my experience it sees all and I've never heard otherwise from anyone else. If there is space you can move it so that it's next to the partition you want to expand and then expand to encompass that space. I just did this last night on a Chuwi Vi8 that I no longer wanted Windows on (it came as dual-OS). I deleted the Windows partition and added it to Android's data partition, giving me 22GB of glorious, fully-usable space.

I found this thread while refreshing on all the steps needed and noticed that no method had been shared. I can attest it does work, but I only recommend it for advanced users and I can't say that it won't interfere with full-OS upgrades in the future as was already stated. Running GParted as a live Linux distro is a great tool that is very comprehensive and exceedingly powerful.

  • 4
    This is incorrect. Android devices have limited firmware which does not support booting from USB-OTG unless the device has a patched kernel. Also, GParted AFAIK does not support native running on ARM, which is the OP's device's architecture. Please verify the validity of your claim vs. the OP's constraints in the future. – Tamoghna Chowdhury Dec 3 '15 at 3:05
  • 1
    As @TamoghnaChowdhury already indicated: We're talking about Android devices here – not about desktop computers. In addition to the doubts in Tamoghna's comment concerning "boot via OTG" (have you even tried that before recommending it?) I strongly doubt each Android device would be capable of booting a "generic Linux image". Plus, why doing that just to run gParted – and not use its Android counterpart aParted? Afraid this is a wall of text, not really answering the question. But yes, MMMV :) – Izzy Dec 3 '15 at 9:51
  • Those dual-os tablets / laptops are just normal PCs with Android x86 and are not real devices – Suici Doga Feb 21 '16 at 7:15
  • @Izzy Why not use aParted? Because it's only for external SD cards, not internal memory! – TJJ Feb 8 '17 at 2:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.