Mount virtual SD card inside phone internal storage


  1. duncan12

    duncan12 Member

    .

    Advertisement
  2. Crashdamage

    Crashdamage Well-Known Member

    No. Just buy a card. 8G SD cards are really cheap.
  3. Crashdamage

    Crashdamage Well-Known Member

    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.
  4. !on

    !on Well-Known Member

    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.
  5. argedion

    argedion The TechnoFrog Moderator

    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.

    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.
  6. karandpr

    karandpr Well-Known Member

    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
  7. Crashdamage

    Crashdamage Well-Known Member

    I haven't got time now to go into detail, but very quickly....

    You haven't succeeded in creating an ext4 (Linux) partition. And if one step fails you can't just go willy-nilly on to the next and expect things to work.

    Buy a card.
  8. karandpr

    karandpr Well-Known Member

    Lol ,I assumed too many things .
    It's best to use Linux to create a dump file .

    I have a 180 MB ext2 blank dump file if you want .
    it mounts without a hitch on a kernel with ext2 as supported FS (on the android device )
  9. PeaceBrigade

    PeaceBrigade New Member

    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.
    duncan12 and karandpr like this.
  10. karandpr

    karandpr Well-Known Member

    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 ...
  11. duncan12

    duncan12 Member

    .
    karandpr likes this.
  12. karandpr

    karandpr Well-Known Member

    Yes you are right .
    I would do trial and error and so ...
  13. PeaceBrigade

    PeaceBrigade New Member

    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 :)
  14. gixxer750k8

    gixxer750k8 New Member

    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

Share This Page