Sd Card Mount Point modification discussion. Post-Root

Discussion in 'Vizio Tablets' started by marvin02, Nov 16, 2011.

  1. marvin02

    marvin02 Senior Member

    Joined:
    Aug 25, 2011
    Messages:
    244
    Likes Received:
    50
    Trophy Points:
    102
    Location:
    NW Indiana
    Tablet / Device:
    Visio VTAB1008
    You make this mod at your own risk. What worked for other users may not work for you.

    Now that we have root there are a few ways to attack the SD card issue.

    As far as the sd card there are probably a couple of options.

    1) A symlink that makes the external card appear to the system at /sdcard. I am not sure what this does with the internal storage.

    2) Modify how the system mounts the internal memory and mount that at a different mount point and then mount the external sd card at /sdcard. I think this might be the best way to go. It would open up using the internal memory for another use. On some devices with a similar stock setup to the VTAB the only option that worked was to swap the mount point as the system wouldn't accept other solutions. I am not familiar with the details.


    I suggest that some thought be put into this so that no one ends up with an unusable device.

    There is also the possibility of addressing individual apps by creating symlinks.

    Let's discuss options and what is tried/tested in this thread.

    Research into how others devices deal with this is my next step. Fell free to dive in.

    Some reading:
    NOTE:

    This post (in this thread) has details about making the mod to swap the mount points of your internal storage and the user installed SD Card. Read the whole thread before proceeding.

    Warnings:

    1. Stuff may run slower - using the best external SD Card you can afford will help here, but it will never be as fast as the internal storage.
    2. If you remove your external SD Card any apps that are located there and any data there will not be available.
    3. You may have to reinstall some apps.
    4. You may void your warranty.
    5. You may brick (ruin, mess up, break) your device.
    6. There may be other side effects that no one is aware of yet.
    DO NOT use the Unmount SD Card from the device settings under SD Card & Device Storage.

    DO NOT format either the internal memory or the user installed SD Card using the device's settings menu.

    You make this mod at your own risk. What worked for other users may not work for you.

    SD Card & Storage page after mod (please view!)

    I have attached my original and modified fstab files in the zip below.
    Zip of both the modded and original fstab files.
     
    Last edited by a moderator: Dec 31, 2011
    • Like Like x 6
  2. rprr

    rprr Senior Member

    Joined:
    Oct 7, 2011
    Messages:
    122
    Likes Received:
    46
    Trophy Points:
    102
    Tablet / Device:
    Vizio Tablet VTAB1008
    Here is what I find when I run the following commands. Please see attached files.

    # mount
    # cat /proc/partitions
    # cat /cache/recovery/last_log

    Hope this is useful.
     

    Attached Files:

    • Like Like x 2
  3. marvin02

    marvin02 Senior Member

    Joined:
    Aug 25, 2011
    Messages:
    244
    Likes Received:
    50
    Trophy Points:
    102
    Location:
    NW Indiana
    Tablet / Device:
    Visio VTAB1008
    Something to chuckle at in this thread. See the "solution" posed in the fourth post? The second post in the thread is a nice summary of how some newer Android devices use internal storage to mimic an external sd card, like the VTAB does.

    Back to searching. . . . . . . .
     
  4. shawnph

    shawnph Member

    Joined:
    Nov 15, 2011
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    62
    Location:
    Florida
    Tablet / Device:
    Vizio VTAB100
    I got it working. But I'm now trying to make sure the internal memory is also available. I have it only seeing the external card and not the internal space. Instructions will be forthcoming once I get the internal card space back available again.
     
  5. marvin02

    marvin02 Senior Member

    Joined:
    Aug 25, 2011
    Messages:
    244
    Likes Received:
    50
    Trophy Points:
    102
    Location:
    NW Indiana
    Tablet / Device:
    Visio VTAB1008
    Did you edit vold.fstab and try switching the mount points? I wondered if that would work, but was trying to research other devices and see if issues crop up.

    In your modified system what output do you get from the mount command?
     
  6. nb45cl

    nb45cl Member

    Joined:
    Nov 16, 2011
    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    62
    Location:
    Earth
    Tablet / Device:
    Vizio
    Instructions to mount the external SD Card as the default sdcard on the Vizio VTab. How to overcome the 2gb limit.

    Root is required for this to work. And you need an SD Card in the slot, of course.

    NOTE: This is the first go at the instructions. Using these steps, the external card will be visible to the Vizio VTab The internal card will not until someone figures out what else to change. Make sure to copy all contents of your internal card to the external as part of this process.

    CAUTION: You probably should know a little about linux before doing this. Be very careful. Do this at your own risk. It probably voids the warrantee. But if you've already rooted your Vizio, that probably voided the warrantee first.

    ** End of disclaimer **

    First make sure all apps are running in the internal memory, not using the external memory card space. This may be unnecessary but is what I did to be safer should something go wrong. Use App 2 SD Free to copy all of your apps back to internal memory before beginning.

    Next, use ES File Explorer or Astro (Free at the Market) to copy the contents of /mnt/sdcard to /mnt/sdcard/external Be sure NOT to copy the existing "external" directory when selecting the files/directories to copy.


    Reboot the Vizio VTab to make sure nothing is running in the background.

    This next part took me a bunch of tries to get the commands to take. If you get stuck, use ctrl-c to exit adb and try again. It may take quite a few times.

    Now from a command prompt in Windows, execute these commands:

    adb kill-server
    adb shell
    (You're now in adb)
    su
    (You now have the # superuser prompt)
    mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p2 /system
    chmod 777 /system/etc (you can now delete and modify from /system/etc, so be careful)

    DO NOT REBOOT YET. Rebooting appears to reset the file permissions.

    Using Astro, make a copy of vold.fstab in case you wish to restore to stock behavior later.

    Now this is where it gets a little odd. I had trouble editing vold.fstab and saving. So I deleted vold.fstab and then immediately copied the vold.fstab copy back into the directory. It's apparently a permission issue if someone wants to figure out what to send to enable editing without this delete/copy step.

    Using Astro, edit /system/etc/vold.fstab Choose "as text" and then file editor"

    Go down to the uncommented line for mounting sdcard and remove "/external"
    Go to the next line for mounting internalstorage and change it to /mnt/sdcard/internal <--- NOTE: This is not working. Can someone figure out why and what to change?

    (When a line has a # as the first character, it's a commented out line. So look for the lines without the # symbol as the 2 lines to modify.)

    Reboot

    If you want to verify you're now running off the memory card as the default SDCard, load "App 2 SD Free" from the market. Run it. Select "On SD Card" and the meter at the bottom will tell you how much space you have on the SD Card. With a 32 gig card, it tells me I have 29.56 available. Prior to this, I had around 1.8 gig, or whatever the stock amount was.

    Now use App 2 SD Free to move your apps back to the SD Card.

    Enjoy your big new SDCard space.
     
    • Like Like x 6
  7. rprr

    rprr Senior Member

    Joined:
    Oct 7, 2011
    Messages:
    122
    Likes Received:
    46
    Trophy Points:
    102
    Tablet / Device:
    Vizio Tablet VTAB1008
    Great work. Would the following help (Using adb and as 'su')?

    mkdir /mnt/sdcard/internal

    The above creates the needed mount-point.

    Have you rebooted a couple times to make sure that these changes persist?
     
    Last edited: Nov 16, 2011
  8. marvin02

    marvin02 Senior Member

    Joined:
    Aug 25, 2011
    Messages:
    244
    Likes Received:
    50
    Trophy Points:
    102
    Location:
    NW Indiana
    Tablet / Device:
    Visio VTAB1008
    Did you create a folder named internal on the external sd card?

    Did you try creating a folder named external on the external sd card and just switching the mount points?

    I am waiting for all of the files to copy from my internal memory to the external card so I can do some tests.
     
  9. nb45cl

    nb45cl Member

    Joined:
    Nov 16, 2011
    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    62
    Location:
    Earth
    Tablet / Device:
    Vizio
    No, I forgot to create the /mnt/sdcard/internal directory. That's probably the issue. I'll try it in the morning and see if that fixes the mounting isue.

    It does persist between reboots as this is a change to the configuration files. It's just a swap of internal and external memory cards.

    Now the next thing is whether someone can figure out how to increase the 800gb app partition. It's too small with a 32gb card. The Archos 101 only has 300gb availablle despite being a 16gb tablet. So I guess the Vizio is in good shape, in comparison.
     
  10. rprr

    rprr Senior Member

    Joined:
    Oct 7, 2011
    Messages:
    122
    Likes Received:
    46
    Trophy Points:
    102
    Tablet / Device:
    Vizio Tablet VTAB1008
    Unfortunately, the /mnt/sdcard/internal trick did not work :( Therefore, as suggested, I swapped the internal and external partition mounts. The two lines in my vold.fstab are:
    Code:
    dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-pxa.0/mmc_host/mmc1
    dev_mount internalstorage /mnt/sdcard/external 4 /devices/platform/sdhci-pxa.2/mmc_host/mmc0
    
    It is all good now :)
     
    • Like Like x 2
  11. marvin02

    marvin02 Senior Member

    Joined:
    Aug 25, 2011
    Messages:
    244
    Likes Received:
    50
    Trophy Points:
    102
    Location:
    NW Indiana
    Tablet / Device:
    Visio VTAB1008
    You make this mod at your own risk. What worked for other users may not work for you.

    Please note: mucking around in system files can cause your device to become unusable, a brick, toast (with no jelly), and mess it up bad. You accept all risk if you try this!!!!!!!


    Here is what I did:

    1. Moved all of my apps that were "moved to Sd" back to the device
    2. Connected the VTAB to my PC with USB cable
    3. Mounted both the internal storage and SD card as USB Storage
    4. Copied everything from the internal storage to the Sd card
    5. Create a folder on the external SD Card named "external"
    6. Unmount both the internal storage and sd card from my PC properly (varies by OS)
    7. I used Root Explorer to edit the vold.fstab file in /system/etc/
    8. I then restarted the VTAB
    Here are what the two lines look like that you need to edit:

    Code:
    dev_mount sdcard /mnt/sdcard[COLOR=#ff0000]/external[/COLOR] auto /devices/platform/sdhci-pxa.0/mmc_host/mmc1
    dev_mount internalstorage /mnt/sdcard 4 /devices/platform/sdhci-pxa.2/mmc_host/mmc0
    They end up as:

    Code:
    dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-pxa.0/mmc_host/mmc1
    dev_mount internalstorage /mnt/sdcard[COLOR=#ff0000]/external[/COLOR] 4 /devices/platform/sdhci-pxa.2/mmc_host/mmc0
    After a restart your external SD Card will now be mounted at /sdcard and the internal storage at /sdcard/external. This just swaps the locations that the two areas are mounted at.

    Positive: You now have more space that is seen, by default, as the sd card.

    Negatives:

    1. Stuff may run slower - using the best external SD Card you can afford will help here, but it will never be as fast as the internal storage.
    2. If you remove your external SD Card any apps that are located there and any data there will not be available.
    3. You may have to reinstall some apps.
    4. There may be other side effects that no one is aware of yet.
    I used Root Explorer to edit the file on the device. There are other file explorers that allow you to mount system folders as R/W and work with them. Root Explorer has a simple tab that you tap to change between RO and R/W.

    I have restarted the VTAB twice and the change has persisted.

    DO NOT use the Unmount SD Card from the device settings under SD Card & Device Storage.

    DO NOT format either the internal memory or the user installed SD Card using the device's settings menu.

    You make this mod at your own risk. What worked for other users may not work for you.

    SD Card & Storage page after mod (please view!)

    I have attached my original and modified fstab files in the zip below.
     
    Last edited: Dec 31, 2011
    • Like Like x 6
  12. nb45cl

    nb45cl Member

    Joined:
    Nov 16, 2011
    Messages:
    5
    Likes Received:
    3
    Trophy Points:
    62
    Location:
    Earth
    Tablet / Device:
    Vizio
    This is working great. The only things I can note are that the launcher, launcher themes and media player I use need to be in main memory or they're laggy. Other than that, it's working pretty well. I liked the Vizio before. Now I really ike it.
     
  13. vinogans

    vinogans Member

    Joined:
    Nov 15, 2011
    Messages:
    77
    Likes Received:
    14
    Trophy Points:
    72
    Tablet / Device:
    vtab 1008
    thank you marvin and rprr but I was thinking and follow me if my words make any sense I got a limited knowledge with Linux so ... by doing the code as you wrote

    Code:
    dev_mount sdcard /mnt/sdcard auto /devices/platform/sdhci-pxa.0/mmc_host/mmc1
    dev_mount internalstorage /mnt/sdcard/external 4 /devices/platform/sdhci-pxa.2/mmc_host/mmc0
    would not this make some errors if u removed the sd in the first internal memory was mounted /sdcard and the second sd card was mounted /sdcard/external so now if I removed the sd card I guess the internal memory will not work ... in theory I didnt root the device yet ... marvin or any one can you try what i am saying ... I will root my device in the end but I was checking a patch to read arabic on it well when I finish reading and make sure it will work well I will root mine :)
    And if we are changing locations for each other so we have to look deeper up I mean
    ==============
    #dev_mount sdcard /mnt/internalstorage/external auto /devices/platform/sdhci-pxa.0/mmc_host/mmc1
    #dev_mount internalstorage /mnt/internalstorage 4 /devices/platform/sdhci-pxa.2/mmc_host/mmc0
    dev_mount sdcard /mnt/sdcard/external auto /devices/platform/sdhci-pxa.0/mmc_host/mmc1
    dev_mount internalstorage /mnt/sdcard 4 /devices/platform/sdhci-pxa.2/mmc_host/mmc0

    shouldnt we change folders above too ... I was just thinking dont wanna make any thing complicated ...
     
    Last edited: Nov 17, 2011
  14. marvin02

    marvin02 Senior Member

    Joined:
    Aug 25, 2011
    Messages:
    244
    Likes Received:
    50
    Trophy Points:
    102
    Location:
    NW Indiana
    Tablet / Device:
    Visio VTAB1008
    Any line with the # at the front is a comment and is not acted upon. The file could be just the two lines I posted and it would work fine, the rest is not needed.

    You can not remove your external SD Card while the VTAB is running with this mod. This is one of the reasons that Android is moving to built-in storage. The reason that using built-in storage on the VTAB isn't such a great idea is that Vizio put such a limited amount of built-in memory into the device. In essence the SD Card you are using has become a part of the VTAB, put it in and forget it. Don't change it unless you turn off the device and if you change it copy the files from the old on to the new one.

    This mod isn't needed by everyone and shouldn't be done without weighing the negatives.

    Of course I just put a 32 GB SD Card in mine and so far like it the way it is (post mod). There may be some tweaks we can make to keep the launcher in memory. I do think that this mod is the reason that many of us wanted root.

    Negatives and warnings repeated:

    Negatives:

    1. Stuff may run slower - using the best external SD Card you can afford will help here, but it will never be as fast as the internal storage.
    2. If you remove your external SD Card any apps that are located there and any data there will not be available.
    3. You may have to reinstall some apps.
    4. There may be other side effects that no one is aware of yet.
    If you make this swap I would not try using the Unmount Sd Card from the device settings under SD Card & Device Storage.

    Turn off your VTAB if you need to remove your SD Card.
     
  15. vinogans

    vinogans Member

    Joined:
    Nov 15, 2011
    Messages:
    77
    Likes Received:
    14
    Trophy Points:
    72
    Tablet / Device:
    vtab 1008
    yeah so I was right about the SD thing ... ok can you just follow me I just want to make the sd mounted in a perfect way so I am trying to figure out stuff ... and to see if I am right or not ... internal storage is mounted in two name`s in Vizio tab ... /mnt/sdcard and /mnt/internalstorage ...... there is secure_sd I reckon vizio made the internal storage mounted in sd also to secure it or something so my theory is and it`s just a guessing what prevent me from mount the internal storage to /mnt/internalstorage ... it`s already their ... and the app storage which is 755 mega is mounted in data .. so was thinking instead of /mnt/sdcard/external ... it will be /mnt/internalstorage .... .. in theory I think it will work ..... dunno ... I should try what I am saying :D but I dont want to root the device not yet before I read alot about tweaking in android
     

Share This Page

Search tags for this page

android change appmountpoint

,
android change mount points
,

android external sd card mount point

,

android mount change

,

android mount sd card storage option

,
android mountpoint
,

change mount points android

,
change sdcard mount point
,

create mount point in mnt android

,

creating mount point visible to es file explorer

,

description of android mount points

,

how to change mount point on android

,

how to change sdcard mount points

,

lollipop mount points change

,

mount external sd card partitions es file explorer

,
mounting points under android 5
,
relocation sd card mount point in any android device
,
restore default mount point android
,
swapping the mount points on tablet
,
void swap zip for android tablet