Hot answers tagged

23

First to clarify root and data: Root directory / of Android devices is a read-only pseudo (temporary) filesystem (rootfs) that lives in RAM and is vanished when device is powered off. When device is powered on, it's again extracted from initramfs that lives in boot partition along with kernel. On newer devices with system-as-root, system partition is ...


6

SHORT ANSWER Go to Magisk Settings and set Mount Namespace Mode to Global once for all. In SuperSU app, disable Mount Namespace Separation. OR For one time solution, use this command instead: ~$ su -mm -c 'mount <device> <mountpoint>' LONG ANSWER but after some time, the partition gets unmounted automatically and I have to mount it again. ...


6

This was supposedly fixed several months ago, but people are still reporting problems. I can read items on the card, but do not have write permission. To fix it, I combined strategies from a few sources. Partition card with MS-DOS partition table and ext4 filesystem. I used GParted on my (Linux) desktop computer. Insert the card into your phone. (You will ...


4

External SD cards and USB OTG drives (since Android 6) are handled by vold which supports only FAT[N] (vfat) and exFAT (since Android 9 provided that OEM adds support to kernel) filesystems on stock Android. ext4 and f2fs are supported only for private volumes (Adoptable Storage). Public volume (secondary external storage) is not directly accessible to apps ...


3

A few points on four partitions: Dedicated first partition exFAT or NTFS or FAT32 (whichever Android permits and gives optimum performance) to store apps, photos and media. For apps consider Application Class but that's expensive. Others will exert performance penalty more or less. On filesystem selection, the biggest downside with FAT32 is its 4GB ...


3

Install twrp recovery (google it) Boot into recovery Go to wipe -> advance wipe -> select the system partition -> change file system -> select ext4 format Done


3

Edit 2020-06-03: If you would like to see a way more detailed answer in how the mounting ecosystem works under Android, you may have a look at this answer: How to bind mount a folder inside /sdcard with correct permissions? Mounting Try logging in as a root user with proper mounting permissions using su -mm Make sure that a directory exists that receives ...


2

Yes it does support ext4 from what I gather from other sites and I am doing it right now on my own card.


2

How can I find out which of the partitions in dev/block is my sd-card ? By default, external memory card's partition is /dev/block/mmcblk1p1 in all devices. (Unless if you have partitioned the memory card, then you should know which partition to use, for example, if you have partitioned 32GB memory card as first 16GB as FAT32 partition & second 16GB ...


2

You seem to be missing the point. Actually a few of them: Emulated SD Card storage has nothing to do with the lack of physical SD card support by some devices. It is a public storage area by design. It is implemented via FUSE - it is not an actual block device and you can not simply reformat it to any filesystem you want. Being able to share files via MTP ...


2

I don't think I understand your question fully. It's not clear what and how you have tried so far and faced what constraints or limitations in achieving what you want to. But precisely answering your questions: Mount multi ext4 partitioned external card at boot time, as against manual mounting which I can do Mounting external SD card is handled by vold. ...


1

just partitioning and formatting from adb shell (needs to be umount) (for doing this in recovery, delete all strings /data/local and su -c from command list) adb push parted /data/local/tmp adb shell chmod 0755 /data/local/tmp/parted adb shell su -c "export PATH=$PATH:/data/local/tmp" adb shell su -c "parted /dev/block/mmcblk1 mktable msdos" adb shell su -...


1

ext4 can be explored without mounting, using debugfs tool. But natively there is no way to access raw filesystem without root access on Android devices. Partitions are enumerated as block devices by Linux kernel, and default permission set by Android's init on block devices is 0600 (can be overridden in uevent.rc) or 0660 in case of vold, owned by 0:0. Also ...


1

We still need root. First I need to make a dir in /data/media/0/ (/sdcard) mkdir /data/media/0/usb1/ which means USB is not detected as USB ever, but I can read data from apps that it is what I want. After I made a script with: su -mm -c "mount -t ext4 /dev/block/sda1 /data/media/0/usb1/"; su -mm -c "mount -t ext4 /dev/block/sda1 /storage/...


1

1. Answer Unfortunately, in this case you need buy a new SD Card. 2. Argumentation 4pda post: Если у вас не записываются новые данные на карту, а старые после удаления появляются вновь, и форматирование не помогает — карта труп, и восстановить её не удастся! Translate on English: If: New data don't write to SD Card (4.3 item of my question) Old data ...


1

Here how I'get 16gb on Linux deploy hope this help somebody: Use twrp, advanced, make partition ext4 swap 0 (https://www.xda-developers.com/how-to-install-twrp/) Use the Linux deploy terminal, configuration, check telnet, port, local host and http Go to configuration again and select terminal, on terminal, put the command, ls /dev/block Identify your ext4 ...


1

UPDATE an better solution https://android.stackexchange.com/a/204616/119381 First steps: I could mount and use my pen usb with ext4 after install [1] but still bery tricky (need root) I need first do adb shell su - mount -t ext4 /dev/block/sda1 /mnt/sdcard/usbStorage/sda1/ and after umount and mount sda1 with stickmount. For some reason ...


1

For this you need either access via adb (adb shell) or a terminal app. At the prompt, execute mount | grep "/data" The output will have something like /emmc@usrdata /data ext4 rw,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0 The third column tells you the file system used (in the example above: ext4). Of course there are also several 3rd ...


1

@djsumdog and @Sopalajo de Arrierez Sorry for the delayed response. Things got re-orgonized and stream lined. By unifying those that use the fstab files. Such as the init, vold, and recovery all under /fstab.<device> now. Some of which is managed by vold and just off the top of my head it sounds like a permissions issue because with root it's like an ...


1

Not sure if it is any help, but possibly the issue is that that you are trying to mount in the wrong place ? This is my working script that works on an S3 mini with CM11: #!/system/bin/sh REALMNT=/mnt/media_rw/sdcard1 if ! [ -d "$REALMNT" ]; then mkdir "$REALMNT" || exit 1 fi mount -t ext4 -o rw,noatime /dev/block/mmcblk1p1 "$REALMNT" sdcard "$REALMNT" /...


1

I tried LineageOS 14.1(android 7.1.2), it support sdcard(tf-card) formatted in ext4. Though it format sdcard to vfat defaultly, if you don't make any patch. The easiest way is to format the sdcard with ext4 using a external usb-sdcard-adapter, then insert the sdcard into phone with LineageOS installed.


1

Short answer: no. Although on Android 5 cat /proc/filesystems shows that ext4 is supported it seems that only FAT32 and exFAT (FAT64) are supported on non-rooted devices. I've tried mounting 64GB micro SD card as exFAT without any success. Using fdisk you can format your card to FAT32 (files over 4GB are not supported): $ fdisk -H 224 -S 56 /dev/mmcblk0 ...


Only top voted, non community-wiki answers of a minimum length are eligible