• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Mount virtual SD card inside phone internal storage

Ok, since you're so stubborn I'll explain a little further...

You removed /mnt/flash/sdcard then tried to create a symlink to the now non-existent directory:

Code:
# rm -r /mnt/flash/sdcard
# ln -s /mnt/sdcard /mnt/flash/sdcard
link failed Operation not permitted
#

Clearly that doesn't work.
I don't think this will work anyway because the internal storage is probably FAT32 so doesn't support Unix permissions, symlinks, etc. So...'Operation not permitted'. You'll have to format the partition.

Part with $5-10 and get a 8GB card. It'll simplify your life. You may need more storage later anyway.
 
Upvote 0
8gb.... you're putting music on there:eek:? What about what the tab is using of it? Seriously you'll be out of space in no time, esp if adding apps & widgets. The whole purpose of having a card is if something goes wrong, you still have your files. Not to mention a backup of your whole tablet (if rooted) safely stashed on your card.

I think 8gb on board is generous but there's usually a reason why it has that.
 
Upvote 0
I must agree with these guys. SDCARDS are super cheap anymore. I have a 32 gig in my phone that I paid like 30 bucks for. Very much worth it IMO. Why one would purposely limit themselves is beyond me. I mean I could understand if you didn't have a card slot that would be a very different scenario however you do. The Tablet maker didn't think you should limit yourself to 8gig thats why they put the card there to begin with.

I don't think this will work anyway because the internal storage is probably FAT32 so doesn't support Unix permissions, symlinks, etc. So...'Operation not permitted'. You'll have to format the partition.

And as Crash very nicely put it. Windows storage is completely different than linux storage. Most OEM's go with windows storage because they figure people will want to hook it up to their computer to exchange files back and forth. Well since Most people have Windows it was decided that Windows Formats would work best on these devices.
 
Upvote 0
hmmm I dont know if this works(no harm in trying) but here goes nothing
dump a file on /mnt/flash/abc

Code:
#dd if=/dev/zero of=/mnt/flash/abc/sdcard.img bs=4096 count=50000
(200MB adjust as required..
Use mkefs binary to format the dump .I will suggest ext4
Code:
#mkfs.ext4 /mnt/flash/abc/sdcard.img
or
Code:
mkefs -t ext4 /mnt/flash/abc/sdcard.img
(it's best to make a dump in linux and then copy it too flash)
(adjust file system attributes as and when and how required ,)

mount the img as sdcard
Code:
busybox mount /mnt/flash/abc/sdcard.img /mnt/sdcard

(again use mount attributes as required .)

It's interesting idea none the less :D
 
Upvote 0
Not sure if you're still looking for a solution to this problem however there is an easy one.

I have a Zenithink ZT-282 C91 and I accomplished this by simply editing
/etc/vold.fstab

I just commented out the two lines that normally mount /mnt/sdcard and /mnt/flash then added a new line that mounts the /mnt/flash device to /mnt/sdcard. Works fine with all apps I've tried and also has the device see it completely as an sdcard.
 
Upvote 0
Hmm .What he meant was this .

Code:
#dev_mount sdcard /mnt/sdcard auto /devices/platform/AMLOGIC_CARD/card_host/memorycard0
#dev_mount flash /mnt/flash auto /devices/virtual/mtd/mtd3/avnftl3
dev_mount sdcard /mnt/flash auto /devices/virtual/mtd/mtd3/avnftl3

In any case sorry for not replying this thread ,I bricked my previous phone so was on a hiatus ...
 
Upvote 0
Hey there, sorry for not checking back sooner, the exact line I have working to accomplish this is:

dev_mount sdcard /mnt/sdcard auto /devices/virtual/mtd/mtd3/avnftl3

It renders my sdcard slot useless (though I'm sure we could fix that easy enough if it was NEEDED, but the system and all apps I've tested will register the internal memory as a valid "sdcard" using that method. Hope it was what you were looking for :)
 
Upvote 0
Not sure if you're still looking for a solution to this problem however there is an easy one.

I have a Zenithink ZT-282 C91 and I accomplished this by simply editing
/etc/vold.fstab

I just commented out the two lines that normally mount /mnt/sdcard and /mnt/flash then added a new line that mounts the /mnt/flash device to /mnt/sdcard. Works fine with all apps I've tried and also has the device see it completely as an sdcard.

Hi I edit the vold.fstab to mount my external sd to be the internal sd but now the original internal sd is not mounted anymore. can I mount it to be an external sd? the vold.fstab looks like this now:

## Vold 2.0 Generic fstab
## - San Mehat (san@android.com)
##

#######################
## Regular device mount
##
## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>
## label - Label for the volume
## mount_point - Where the volume will be mounted
## part - Partition # (1 based), or 'auto' for first usable partition.
## <sysfs_path> - List of sysfs paths to source devices
######################

## Example of a standard sdcard mount for the emulator / Dream
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/sdcard2 emmc@fat /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host
dev_mount sdcard /mnt/sdcard auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.1/mmc_host
## Example of a dual card setup
# dev_mount left_sdcard /mnt/sdcard1 auto /devices/platform/goldfish_mmc.0 /devices/platform/mtk-sd.0/mmc_host/mmc0
# dev_mount right_sdcard /mnt/sdcard2 auto /devices/platform/goldfish_mmc.1 /devices/platform/mtk-sd.2/mmc_host/mmc2

## Example of specifying a specific partition for mounts
# dev_mount sdcard /mnt/sdcard 2 /devices/platform/goldfish_mmc.0 /devices/platform/msm_sdcc.2/mmc_host/mmc1

I don't know anything abouth mounting I found this on xda
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones