Is it possible to edit the fstab to mount /data, /cache etc. from a different partition on the a.internal memory? b.external sdcard?
Details: The default partition for /data and /cache are too small for my needs and I can manage to format the (internal) /sdcard in ext4.
Edit: My question may superficially seem to be like other questions asking for a way to increase size of /data, but it's not. Here's why:
(1) I need to do it specifically by editing fstab, which is the usual way of doing the same thing on a GNU/Linux desktop. (2) The other questions don't ask about /cache and other partitions.
fstab
(if it exists on your device) might require modifying the boot image. While based on Linux, some aspects on Android work differently. Quoting from What's the Android equivalent of /etc/fstab?: Android has no/etc/fstab
. Also check these questions/answers. // Moreover, this is an XY problem: Better try solving your issue, not stick to your "assumed solution" ;) – Izzy Nov 09 '15 at 13:26/etc/fstab
– that's why I wrote "if it exists on your device". Some devices indeed have it, but even then it often is integrated with the boot image – so changes you'd apply there would be lost on boot, which somehow defeats the purpose, right? This means you'd end up creating your own boot image – which might go beyond the scope of this site, at least "border-lining" development. If you really want to enforce this, you didn't provide sufficient details in your question: Device, Android version, ROM are missing. – Izzy Nov 09 '15 at 13:59vold.fstab
IMHO usually is just for SD cards. And the otherfstab
isn't present on many devices (I've never seen it at any device I checked – and I really checked a lot, see e.g. How can I identify partitions of an Android device from the shell?: if there were anfstab
generally available, it had turned up there). Also see What's the Android equivalent of /etc/fstab? which I've linked from my answer. – Izzy Aug 13 '16 at 12:15