[Q] How to mount entire internal sdcard (/mnt/sdcard2) as /data - Micromax A110

Since I'm using a custom ROM that make the External (bigger: 14GB) SD mount as the default /sdcard, and internal (smaller) as /sdcard2 or something I don't really need it and would much rather like to mount it entirely as /data
.. something similar to this script : http://forum.xda-developers.com/showthread.php?t=1716124 except that it "Mounts **/sd-ext** to /data" but I want to mount /mnt/sdcard2 to /data
. How do I do that?
Problems: I've found that Android would neither let that internal partition be ext3 (it switches it back to FAT even if I somehow manage to format it as ext3). Nor would it mount /data to a FAT partition. What can/should I do?

iBrickYouNot said:
Since I'm using a custom ROM that make the External (bigger: 14GB) SD mount as the default /sdcard, and internal (smaller) as /sdcard2 or something I don't really need it and would much rather like to mount it entirely as /data
.. something similar to this script : http://forum.xda-developers.com/showthread.php?t=1716124 except that it "Mounts **/sd-ext** to /data" but I want to mount /mnt/sdcard2 to /data
. How do I do that?
Problems: I've found that Android would neither let that internal partition be ext3 (it switches it back to FAT even if I somehow manage to format it as ext3). Nor would it mount /data to a FAT partition. What can/should I do?
Click to expand...
Click to collapse
you can't

Related

sdcard partitions for droid

I have a Motorola Droid. I'm looking to create partitions on a 16g sdcard because every time I try to mount the card in custom recovery or rom manager I get message E:can't mount sdcard /dev/block/mmcblk0. I've been trying to do this through fdisk through adb and I can delete partition 1 and to the prompt to create new partitions but don't know size/space I should allocate to the Fat32 primary, or ext2 and if I even need and ext 3/4? Any help would be appreciated.

[Q] mount /data on external sd

Hello,
- is it possible to mount /data on the external sd?
- how can i do it on boot time, is there anything like /etc/fstab on android?
Thanks

[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

Swap file on /data

Hi. i use cody script to mount /data and /cache as external sdcard partitions. I edit it and mount internal /data as something other (name doesn't matter) and i make swap file using mkswap and when i try to enable it using swapon i getting error 22. Can you help me? Swap on internal data will not broke faster my sdcard and work faster

Link2SD mounting issues

I made an ext3 partition on the SD card so I could move the apps to the SD card. But when I create the mount script, it works after a reboot. I reboot again to find that my ext3 partition hasn't mounted on boot. So I go to Link2SD and it asks to create the mount script again. So what I understand is that the mount script cannot be used during boot. What should I do?

Categories

Resources