[Q] Whole sdcard ext2/ext4 only - Android Software/Hacking General [Developers Only]

Hey!
I want to sync the DCIM folder with my Dropbox/Photos folder.
Problem: FAT doesn't support symlinks.
Is it possible to set up one ext2/ext4 partition for the Data & APP2SD and one fat32 for media exchange?
As there's no /etc/fstab in Android the filesystems have to be listed somewhere else. Does anyone know where? Or is there a fixed pattern which partitions are used?
Is there a solution for moving the journalling of ext4 to the internal memory? Afaik this would increase speed.

Related

[Q] Can anyone tell me what is mounted at /mnt/sdcard?

I'm curious about what the Xoom is using to make apps think there is an "external" storage on the device. It is my understanding that with Honeycomb, there is no longer a partition on the internal storage formatted as FAT that is mounted as /mnt/sdcard. Rather the majority of the internal storage is now part of the /data partition. But then, what is mounted at /mnt/sdcard? Surely not the entire data partition? Since doing that would expose app's private data which other apps aren't supposed to access. So I'm guessing that it's probably a subdirectory on the /data partition that is mounted at /mnt/sdcard so that apps that hardcode that directory to use for external storage can still work. Is this correct? If so, what is the exact directory that is mounted there? Thanks.
Chirality said:
I'm curious about what the Xoom is using to make apps think there is an "external" storage on the device. It is my understanding that with Honeycomb, there is no longer a partition on the internal storage formatted as FAT that is mounted as /mnt/sdcard. Rather the majority of the internal storage is now part of the /data partition. But then, what is mounted at /mnt/sdcard? Surely not the entire data partition? Since doing that would expose app's private data which other apps aren't supposed to access. So I'm guessing that it's probably a subdirectory on the /data partition that is mounted at /mnt/sdcard so that apps that hardcode that directory to use for external storage can still work. Is this correct? If so, what is the exact directory that is mounted there? Thanks.
Click to expand...
Click to collapse
Consider /mnt/sdcard to be just a name for a portion/partition of the Xoom's internal flash memory that does not get touched when you flash a new kernel or ROM or get an OTA update. This has certain implied meanings to where android looks for certain files or multimedia. The external micro-sd card gets mounted at /mnt/external1 which on my Xoom also has a link to /MicroSD. I hope this helps clear up some of the confusion.
davidsos said:
Consider /mnt/sdcard to be just a name for a portion/partition of the Xoom's internal flash memory that does not get touched when you flash a new kernel or ROM or get an OTA update. This has certain implied meanings to where android looks for certain files or multimedia. The external micro-sd card gets mounted at /mnt/external1 which on my Xoom also has a link to /MicroSD. I hope this helps clear up some of the confusion.
Click to expand...
Click to collapse
Yes, I assume it is a part of the /data partition, which is unaffected when you flash a new ROM, because that is on the /system partition. The problem is that I don't think it's the entire /data partition, since that partition contain private app data that other apps should not be allowed to read. I'm just wondering which subset of the /data partition is mounted at that location.
If im not mistaken the /mnt partition is written in Fat32 so that when you connect your phone to a windows pc the pc will recognize it. so the sdcard in /mnt is what you see when you plug your xoom into the pc, and the /sdcard partition automatically writes changes you make to its files to the /mnt/sdcard version to reflect the changes that were made when you plug into windows pc. the true sdcard, the one you manually put into the top of the xoom is /mnt/external1, or /microsd in the main filesystem "/" Atleast thats what I believe, Im no dev
Use "mount" command in Terminal Emulator or ADB shell
All mounted devices and mountpoints will be listed there.
_TB_TB_ said:
Use "mount" command in Terminal Emulator or ADB shell
All mounted devices and mountpoints will be listed there.
Click to expand...
Click to collapse
That's what I'm hoping somebody would do, I don't own this device.
/data/media is underlying directory for the Android sdcard fuse file system that is mounted at /mnt/sdcard/
solarnz said:
/data/media is underlying directory for the Android sdcard fuse file system that is mounted at /mnt/sdcard/
Click to expand...
Click to collapse
Thanks! That's in line with what I was thinking.
very usefull this to me
so I guess it means that if my /mnt/sdcart space has become way too small in proportion to the available space on the card after a flash recovery so I can fix this by enlarging my /data partition, which thus is not really a partition, but merely an imbedded file system -an image file. Which can be enlargend with dd.
Thank for this discussion
Mikkel

[Q] Right File System for SD Card?

Is there a right file system to use on an SD card?
The standard Fat or FAT32 partions for the main data seems to be accepted but for other partitions file systems that are used by the device for extending the phones system/cache and program storage seems to be EXT2,3 or 4 with no reasons given as to why one would be better than the other, people seem to prefer the newer file systems to the older but is there a reason for that or could it be that EXT2 would be quicker than EXT4?
I can remember something about EXT3 and EXT4 being "logging" file systems and EXT2 not being so but Im sure there are lots of other factors too.
If anyone can point me to some info I'd appreciate it and report back.
n

SDCard benchmarking app that supports mounted file systems

Hi,
I'm looking for an Android sdcard benchmarking app that supports mounted file systems. I'm mounting an LUKS encrypted ext2 file system into a folder in my FAT32 formatted sdcard, and I'm trying to determine what's the performance hit from the real time encryption. So far all disk benchmarking apps either don't support folders(e.g. Passmark), or support folders but doesn't work with LUKS(e.g. SD Card Tester).
Does anyone know of one which works on mounted file systems?
Thanks.

Partitioning and mounting /sd-ext for swap purpose

I know that this problem has been discussed before but I want to know the following.
I partitioned my phone using CWM and set a swap file (partition 512Mb, Swap 256Mb) using CWM, But when I browse through root/ I'm unable to find /sd-ext folder.
My problem is that I need to make a swap file (using RAM Extender) But if I make the swap file as such in the SD Card I will be needing to disable every time I connect to USB Mass storage, so I would like to do a partition in my card and Mount it in /sd-ext folder a create a swap file there.
I found that the folder /asec and /extasec exist in /mnt folder with 220 mb space each, can I use it for swap?
Can Anyone Please Help Me?
This phone has swap partition by default.
Sent from my LG-P920 using xda app-developers app

Mounting fat32 folder as ext4 folder possible ?

ok i saw few apps that could mount folders as folders on different partitions example Folder Mount , now i wounder if that's do-able via shell script , if so any body care to share the syntax ?
also i could notice the consistent denial of the possibility of mounting a folder with permissions on a fat32 partition and to resolve that all direct to re-partition sd to include an extra ext4 partition , however while browsing android system files i got to realize that ( .android_secure ) folder found on sdcard0 formatted as fat32 partition is mounted as ( /mnt/secure/asec ) folder which is ext4 , now how is that manageable and why nobody ever talk about it ?
thanks in advance

Categories

Resources