Use an SDcard as internal storage - JellyBean - Samsung Epic 4G Touch

Hey guys,
This guide is how to reverse the external and internal storages, AKA, use an sdcard as internal storage, and vice versa.
I CANNOT BE HELD RESPONSIBLE IF YOU BRICK YOUR PHONE, OR DAMAGE YOUR SDCARD.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
dev_mount internal /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/virtual/block/cyasblkdevblk0
Now, replace the regular lines, with the below red lines:
Code:
dev_mount internal [COLOR="red"]/storage/sdcard1[/COLOR] 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard [COLOR="Red"]/storage/sdcard0[/COLOR] auto /devices/virtual/block/cyasblkdevblk0
Save, reboot your phone, and BAM, your internal is now marked as external, and your external, is now your internal
____________
This is for AOSP JellyBean
Enjoy, and press the thanks button

Hey ever since i did this, i cant seem to delete files. Do i need to un-do to be able to delete files?
Sent from my SPH-D710 using Tapatalk 2

jinwu57 said:
Hey ever since i did this, i cant seem to delete files. Do i need to un-do to be able to delete files?
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
Hello,
This mod will have no effect on that.

I didn't change the r/w settings. Silly me. Thanks
Sent from my SPH-D710 using Tapatalk 2

Hi,
Will this work on a galaxy tab2 7.0 with jelly bean?
I tried it but I cannot find the first line reference to internal
Thanks for your feedabck
D2dyno said:
Hey guys,
This guide is how to reverse the external and internal storages, AKA, use an sdcard as internal storage, and vice versa.
I CANNOT BE HELD RESPONSIBLE IF YOU BRICK YOUR PHONE, OR DAMAGE YOUR SDCARD.
In vold.fstab, in the directory /system/etc/, you have two lines. Edit them with Root explorer's included "text editor", or any other good (root) text editor. Make sure you have r/w on. Find the below two lines:
Code:
dev_mount internal /storage/sdcard0 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard /storage/sdcard1 auto /devices/virtual/block/cyasblkdevblk0
Now, replace the regular lines, with the below red lines:
Code:
dev_mount internal [COLOR="red"]/storage/sdcard1[/COLOR] 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
and
Code:
dev_mount sdcard [COLOR="Red"]/storage/sdcard0[/COLOR] auto /devices/virtual/block/cyasblkdevblk0
Save, reboot your phone, and BAM, your internal is now marked as external, and your external, is now your internal
____________
This is for AOSP JellyBean
Enjoy, and press the thanks button
Click to expand...
Click to collapse

mandylmn said:
Hi,
Will this work on a galaxy tab2 7.0 with jelly bean?
I tried it but I cannot find the first line reference to internal
Thanks for your feedabck
Click to expand...
Click to collapse
Hello,
Could you post your vold.fstab contents here in a code BBCode? I can help you then

Hi,
Here is the content of the file. Thanks in advance
# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
#storage_struct = series, "/storage/sdcard/extStorages"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /storage/extSdCard auto /devices/platform/omap/omap_hsmmc.0/mmc_host/mmc1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#EOF
D2dyno said:
Hello,
Could you post your vold.fstab contents here in a code BBCode? I can help you then
Click to expand...
Click to collapse

Wow, that's some really weird code. I wonder why they pulled it from a forum...
Anyway, yeah, as you said, I can't find the internal storage listed in any way. You could try changing the external one, to whatever the internal storage is... I really have no clue how your tablet can even have internal storage with this code... Odd.

Related

Steal any file from unrooted phone

Since my old thread got moved to general I will re-post here - You can delete the one in general or I can.
Kies air allows alot of stealing of UNROOTed Android files.. so take what you want from the unrooted : )
<KIES IP>:8080 - before each
LIST any directory
/ws/content/files/<PATH>?startIndex=0
i.e. /ws/content/files/etc?startIndex=0
Lists /etc and all subfolders/files
GET any file
/www/apps/KiesAir/php/ws_send_file.php?mtype=application/octet-stream&contentDisposition=attachment&file=<FILE URL ENCODED>
i.e.
/www/apps/KiesAir/php/ws_send_file.php?mtype=application/octet-stream&contentDisposition=attachment&file=%2Fetc/%2Fhosts
GETs /etc/hosts
Good luck.. oh and if you want your battery status...
/ws/system/state/battery
---------- Post added at 05:57 AM ---------- Previous post was at 05:45 AM ----------
On the GO USB is in FSTAB! WOOT! If it wasn't /dev/zero???
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
# internal sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun0/file
asec = disable
discard = enable
}
dev_mount sdcard /mnt/sdcard 11 /devices/platform/s3c-mshci.0/mmc_host/mmc0/mmc0
# external sdcard
{
ums_path = /sys/devices/platform/usb_mass_storage/lun1/file
asec = enable
}
dev_mount sdcard1 /mnt/sdcard/external_sd auto /devices/virtual/block/cyasblkdevblk0
# otg sdcard
{
ums_path = /dev/zero
asec = disable
}
usb_mount sdcard2 /mnt/sdcard/usbStorage auto /devices/platform/s3c_otghcd/usb
#end line ## keep this line
Moving this thread to General as it's not development, just a way to use an app to take things from an unrooted phone.
There is already a ROM dump - http://forum.xda-developers.com/showthread.php?t=1262697 - so that can be used to get the files you want/desire.
how to?

Make external storage the internal storage

For anybody who wants alot of internal space by switching your external sd to internal storage do the following: First find the vold.fstab file in system/etc. Once you find it you will need to edit it with an app like root explorer. Scroll down the file until you see the internal sd card line change the 0 to 1. Then in the line that says external sd change the 1 to 0. That's it very simple. Now your external sd will be your internal space. Make sure the vold.fstab file has r-w-.r-r or 644 permissions and owner is root. Now reboot and your done. You should now have switched your external space for internal space successfully!!!
Sent from my SGH-T989 using Tapatalk
Where do I make the edit
GSII T989
AOKP 3/22/13 NIGHTLY NOS'D UP
I was wondering if this was possible on the galaxy reverb. Here is the vold.fstab.
Code:
# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
#storage_struct = series, "/mnt/sdcard"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /mnt/extSdCard auto /devices/platform/msm_sdcc.4/mmc_host
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sda /mnt/UsbDriveA auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdb /mnt/UsbDriveB auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdc /mnt/UsbDriveC auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdd /mnt/UsbDriveD auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sde /mnt/UsbDriveE auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdf /mnt/UsbDriveF auto /devices/platform/msm_hsusb_host/usb
#EOF
Sent from my HTC One XL using xda premium
hatememarkz said:
Where do I make the edit
GSII T989
AOKP 3/22/13 NIGHTLY NOS'D UP
Click to expand...
Click to collapse
Where it says sdcard 0 change it to 1 and where it says external_sd 1 change it to 0. Reboot.
Sent from my SGH-T989 using Tapatalk
johnwayne007 said:
I was wondering if this was possible on the galaxy reverb. Here is the vold.fstab.
Code:
# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
#storage_struct = series, "/mnt/sdcard"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /mnt/extSdCard auto /devices/platform/msm_sdcc.4/mmc_host
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sda /mnt/UsbDriveA auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdb /mnt/UsbDriveB auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdc /mnt/UsbDriveC auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdd /mnt/UsbDriveD auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sde /mnt/UsbDriveE auto /devices/platform/msm_hsusb_host/usb
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdf /mnt/UsbDriveF auto /devices/platform/msm_hsusb_host/usb
#EOF
Sent from my HTC One XL using xda premium
Click to expand...
Click to collapse
Not familiar with the phone but it looks like all you have to do for this is switch the dev mount sd card with ex sdcard just switch the order so it reads the mount differently. The s2 uses 0 and 1 but basically it should be the same except it uses the words sd and ex instead.
Sent from my SGH-T989 using Tapatalk
richardlibeau said:
Not familiar with the phone but it looks like all you have to do for this is switch the dev mount sd card with ex sdcard just switch the order so it reads the mount differently. The s2 uses 0 and 1 but basically it should be the same except it uses the words sd and ex instead.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
CM9 actually have the option to do it. It was cool i actually swapped and work great. Anyway I am on P.A.C RoM 4.2.2 is it possible to do it with this rom?
FwaZ said:
CM9 actually have the option to do it. It was cool i actually swapped and work great. Anyway I am on P.A.C RoM 4.2.2 is it possible to do it with this rom?
Click to expand...
Click to collapse
Use this zip just unzip and take the file out and place it in system/etc. With 644 or r-w-r-r permissions and owner as root. Then reboot
How is this an app or theme?
Sent from my SAMSUNG-SGH-T989 using xda premium
Spastic909 said:
How is this an app or theme?
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
Just a file located in your system/etc that I modified to make your phone mount external sd as internal sd to give you way more space for apps and data files for games or music etc.
Sent from my SGH-T989 using Tapatalk
richardlibeau said:
Just a file located in your system/etc that I modified to make your phone mount external sd as internal sd to give you way more space for apps and data files for games or music etc.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
What happens to the current data? Is it transferred to the external SD? Or just for new data that is written to the "internal memory"?
Damn, looks like I wasted money on FolderMount. Worked great and so simple. Now lets see if my TWRP backups stick to the 64GB now. Could never flash a backup from the external sd card before, always got a "failure".Worked fine from the internal card. Could never figure that one out.
I can't get it to work.
Sent from my SGH-T989 using xda app-developers app
TU Homer said:
I can't get it to work.
Sent from my SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
Have to give the file 644 or r-w-r-r permissions and owner is root
Sent from my SGH-M919 using Tapatalk 2
---------- Post added at 06:04 PM ---------- Previous post was at 06:02 PM ----------
crz6662 said:
Damn, looks like I wasted money on FolderMount. Worked great and so simple. Now lets see if my TWRP backups stick to the 64GB now. Could never flash a backup from the external sd card before, always got a "failure".Worked fine from the internal card. Could never figure that one out.
Click to expand...
Click to collapse
It will flash backup from external sd no problem
Sent from my SGH-M919 using Tapatalk 2
Miami8906 said:
Have to give the file 644 or r-w-r-r permissions and owner is root
Sent from my SGH-M919 using Tapatalk 2
---------- Post added at 06:04 PM ---------- Previous post was at 06:02 PM ----------
It will flash backup from external sd no problem
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
I'll try it, but the problem with me is the actual syntax was not exactly the same. But I am to take your attached file, give it r-w-r-r and owner root, and replace with my existing file, correct?
Backin up now...
TU Homer said:
I'll try it, but the problem with me is the actual syntax was not exactly the same. But I am to take your attached file, give it r-w-r-r and owner root, and replace with my existing file, correct?
Backin up now...
Click to expand...
Click to collapse
Yes that's it should work fine after reboot.
Sent from my SGH-M919 using Tapatalk 2
Miami8906 said:
Yes that's it should work fine after reboot.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
Thanks.
I'm using ES File Explorer File Manager, and I'm struggling with changing the new files permissions.
I went ahead and bought Root Explorer, and it handled my permissions. Hope running Infamous 3.0 will work fine. Fixed permissions and it's booting now.
richardlibeau said:
Just a file located in your system/etc that I modified to make your phone mount external sd as internal sd to give you way more space for apps and data files for games or music etc.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
Hi can u help me will you modify my vold file please its from jb 4.2.2 S4 i9505
http://goo.gl/DsS0c
Thanks man
XDA Premium on GT-I9505
LyuboA said:
Hi can u help me will you modify my vold file please its from jb 4.2.2 S4 i9505
http://goo.gl/DsS0c
Thanks man
XDA Premium on GT-I9505
Click to expand...
Click to collapse
Having same issue on my s4 myself working on a fix to make it work like the s2 but it's set up differently. For now I have been using GL to SD Root to move game data to ex card and it works great. I freed up 7 gb's of internal space using the app until I figure the voldfstab file out.
Sent from my SGH-M919 using Tapatalk 2
TU Homer said:
Thanks.
I'm using ES File Explorer File Manager, and I'm struggling with changing the new files permissions.
I went ahead and bought Root Explorer, and it handled my permissions. Hope running Infamous 3.0 will work fine. Fixed permissions and it's booting now.
Click to expand...
Click to collapse
Just not booting up. Stuck at the boot screen for Infamous. Dang.
Any thoughts?
TU Homer said:
Just not booting up. Stuck at the boot screen for Infamous. Dang.
Any thoughts?
Click to expand...
Click to collapse
Should boot up fine unless you didn't change permissions or had owner as root incorrectly. I used this for almost a year when I hsd the s2. Try wiping dalvik and cache partition then reboot this should fix it.
Sent from my SGH-M919 using Tapatalk 2

GT-N7105 vold.fstab

Any kind soul can help me?
I have mess up my vold.fstab file on my GT-N7105 and thus the SD-Card is undetectable.
Can somebody send me the original vold.fstab.
Thank!
eugeneyan87 said:
Any kind soul can help me?
I have mess up my vold.fstab file on my GT-N7105 and thus the SD-Card is undetectable.
Can somebody send me the original vold.fstab.
Thank!
Click to expand...
Click to collapse
Or anybody know how to edit the vold.fstab to make my Micro SD detectable?
It keep on saying massage : SD card is safe to remove and when i press mount it is still the same.
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
## storage_struct - ex) series, "/mnt/sdcard/extStorages" / parallel
######################
# internal sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun1/file
android_secure_containers = enable
}
dev_mount sdcard /storage/sdcard0 auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1
# external sdcard
{
ums_sys_path = /sys/class/android_usb/f_mass_storage/lun0/file
discard = enable
}
dev_mount sdcard1 /storage/extSdCard 11 /devices/platform/dw_mmc/mmc_host/mmc0/mmc0 encryptable_nonremovable
#usb host device
{
media_type = usb
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/s3c_otghcd/usb
#usb host device
{
media_type = usb
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/s3c_otghcd/usb
#usb host device
{
media_type = usb
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/s3c_otghcd/usb
#usb host device
{
media_type = usb
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/s3c_otghcd/usb
#usb host device
{
media_type = usb
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/s3c_otghcd/usb
#usb host device
{
media_type = usb
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/s3c_otghcd/usb
#EOF

SD as internal storage - Modifying the vold.fstab file

She could anyone help with editing vold.fstab to exchange storage to the SD card as an internal storage? :good:
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
## Vold 2.0 fstab for HTC Dream or Sapphire
#
## - San Mehat ([email protected])
##
#######################
## 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
######################
# Mounts the first usable partition of the specified device
dev_mount sdcard /mnt/ext_sdcard auto /devices/platform/hi_mci.0/mmc_host/mmc1
dev_mount usbotg /mnt/usb auto /devices/hisik3-usb-otg/usb1
Can't fins this file?
Where is it located?
DonCarlosis said:
Where is it located?
Click to expand...
Click to collapse
Location:
system/etc/vold.fstab
I still use ROM B116 , where you can set the internal storage , I would like to use ROM B118 , but there is the possibility to use the SD card as an internal storage is not .
Interestingly, vold.fstab is the same in the B116 and the B118
I do not understand

[Request] Upload Vold.fstab from Galaxy Tab 3 8.0

Hello,
can anyone upload the Vold.fstab from the Galaxy Tab 3 8.0. I want to compare this to the Tab 3 7.0 one.
You can find it in /system/etc.
Thank you in advance.
tempdroid said:
Hello,
can anyone upload the Vold.fstab from the Galaxy Tab 3 8.0. I want to compare this to the Tab 3 7.0 one.
You can find it in /system/etc.
Thank you in advance.
Click to expand...
Click to collapse
Can you send me the Tab 7.0 vold.fstab?? Please i messed up mine trying to put apps to the ext sd card
now it doesn't recognize the ext sd card
P.S: Sorry for don't having the Tab 8.0 Vold.fstab, hope someone else can send it to you
MechanicWB said:
Can you send me the Tab 7.0 vold.fstab?? Please i messed up mine trying to put apps to the ext sd card
now it doesn't recognize the ext sd card
P.S: Sorry for don't having the Tab 8.0 Vold.fstab, hope someone else can send it to you
Click to expand...
Click to collapse
No problem, mate, here it is (could not attach it)
Code:
# Copyright (c) 2011, Code Aurora Forum. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Code Aurora Forum, Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
#storage_struct = series, "/storage/sdcard/extStorages"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /storage/extSdCard auto /devices/platform/sdhci-pxav3.0/mmc_host/mmc1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/omap/musb-omap2430/musb-hdrc/usb1
#EOF
If you manage to put apps on external sdcard, you can drop me a pm
Code:
## Vold 2.0 Generic fstab
## - San Mehat ([email protected])
##
#######################
## 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
######################
#storage_struct = series, "/storage/sdcard/extStorages"
#storage_struct = parallel
{
supported_exfat = yes
}
dev_mount sdcard /storage/extSdCard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc1/
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sda /storage/UsbDriveA auto /devices/platform/s5p-ehci
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdb /storage/UsbDriveB auto /devices/platform/s5p-ehci
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdc /storage/UsbDriveC auto /devices/platform/s5p-ehci
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdd /storage/UsbDriveD auto /devices/platform/s5p-ehci
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sde /storage/UsbDriveE auto /devices/platform/s5p-ehci
#usb host device
{
media_type = usb
supported_exfat = yes
}
dev_mount sdf /storage/UsbDriveF auto /devices/platform/s5p-ehci
#EOF
ketut.kumajaya said:
Code:
## Vold 2.0 Generic fstab
...
Click to expand...
Click to collapse
Thank you, Ketut. As far as I can see, they are identical, if I ignore the different devices.
Is moving apps to sd supported on your Tab? I heard, that Samsung put it in again on 4.2.2 devices...
tempdroid said:
Thank you, Ketut. As far as I can see, they are identical, if I ignore the different devices.
Is moving apps to sd supported on your Tab? I heard, that Samsung put it in again on 4.2.2 devices...
Click to expand...
Click to collapse
I have my own solution to swap internal - external storage using a modified sdcard binary. Internal storage mounted to /storage/.sdcard and then bind mount it to /storage/sdcard0 . When boot completed, after external storage mounted, my script will unmount both internal and external storage, and then bind mount internal storage to /storage/extSdCard and mount external storage to /storage/sdcard0 .
ketut.kumajaya said:
I have my own solution to swap internal - external storage using a modified sdcard binary. Internal storage mounted to /storage/.sdcard and then bind mount it to /storage/sdcard0 . When boot completed, after external storage mounted, my script will unmount both internal and external storage, and then bind mount internal storage to /storage/extSdCard and mount external storage to /storage/sdcard0 .
Click to expand...
Click to collapse
Could you send me your modified binary and script? I would try, if I can port this to the T210.
Thank you, mate.
Thank you so much tempdroid, you are a life save
I'll tell you if i find a way to put the apps on the ext sdcard, thanks you so much
Sent from my SM-T210 using XDA Premium 4 mobile app
---------- Post added at 01:10 PM ---------- Previous post was at 12:48 PM ----------
You sent me the one form /system/etc.
The one i need is from the origin source etc folder, where the system folder is too.
Can you send me that one please?
MechanicWB said:
Thank you so much tempdroid, you are a life save
I'll tell you if i find a way to put the apps on the ext sdcard, thanks you so much
Sent from my SM-T210 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
If you manage you can try my ROM with extra game mod and enjoy GTA SA on your tab :thumbup:
Or try it anyway.
MechanicWB said:
You sent me the one form /system/etc.
The one i need is from the origin source etc folder, where the system folder is too.
Can you send me that one please?
Click to expand...
Click to collapse
What source do you mean by this?
tempdroid said:
What source do you mean by this?
Click to expand...
Click to collapse
In te same directory where the system folder is, there is one folder that is named etc.
(sorry for the bad english, i'm not english)
MechanicWB said:
In te same directory where the system folder is, there is one folder that is named etc.
(sorry for the bad english, i'm not english)
Click to expand...
Click to collapse
You mean fstab.pxa988?
Here are the contents of this:
Code:
## fstab has the following format:
##
## Any line starting with a # is a comment and ignored
##
## Any blank line is ignored
##
## All other lines must be in this format:
## <source> <mount_point> <fs_type> <mount_flags> <fs_options> <fs_mgr_options>
##
## <mount_flags> is a comma separated list of flags that can be passed to the
## mount command. The list includes noatime, nosuid, nodev, nodiratime,
## ro, rw, remount, defaults.
##
## <fs_options> is a comma separated list of options accepted by the filesystem being
## mounted. It is passed directly to mount without being parsed
##
## <fs_mgr_options> is a comma separated list of flags that control the operation of
## the fs_mgr program. The list includes "wait", which will wait till
## the <source> file exists, and "check", which requests that the fs_mgr
## run an fscheck program on the <source> before mounting the filesystem.
## If check is specifed on a read-only filesystem, it is ignored.
## Also, "encryptable" means that filesystem can be encrypted.
## The "encryptable" flag _MUST_ be followed by a : and a string which
## is the location of the encryption keys. I can either be a path
## to a file or partition which contains the keys, or the word "footer"
## which means the keys are in the last 16 Kbytes of the partition
## containing the filesystem.
##
## When the fs_mgr is requested to mount all filesystems, it will first mount all the
## filesystems that do _NOT_ specify check (including filesystems that are read-only and
## specify check, because check is ignored in that case) and then it will check and mount
## filesystem marked with check.
##
##
/dev/block/mmcblk0p14 /system ext4 ro,noatime wait
/dev/block/mmcblk0p6 /efs ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
/dev/block/mmcblk0p15 /cache ext4 noatime,nosuid,nodev,journal_async_commit,errors=panic wait,check
# data partition must be located at the bottom for supporting device encryption
/dev/block/mmcblk0p17 /data ext4 noatime,nosuid,nodev,noauto_da_alloc,journal_async_commit,discard,errors=panic wait,check,encryptable=footer
tempdroid said:
Could you send me your modified binary and script? I would try, if I can port this to the T210.
Thank you, mate.
Click to expand...
Click to collapse
Both binary and script in my kernel for Tab 2 http://forum.xda-developers.com/showthread.php?t=2285366 . I will upload blackhawk kernel for T21x with "setprop persist.customboot.sdcard external" support.
In the same directory as the system folder you have the etc folder, has you can see in the picture. In the etc folder you have the vold.fstab file, not in the system folder. Sorry for the trouble, please help me
Sent from my SM-T210 using XDA Premium 4 mobile app
MechanicWB said:
In the same directory as the system folder you have the etc folder, has you can see in the picture. In the etc folder you have the vold.fstab file, not in the system folder. Sorry for the trouble, please help me
Sent from my SM-T210 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I use solid explorer,I see etc under root, but this is just a link to /system/etc, so same file.
In mine its two seperated folders
Thanks for the help anyway mate
Sent from my SM-T210 using XDA Premium 4 mobile app
MechanicWB said:
In mine its two seperated folders
Thanks for the help anyway mate
Sent from my SM-T210 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hello @MechanicWB,
I had a look recently with Aroma File Manager in recovery and there was a different etc folder displayed.
If you were looking for the fstab file, here are it's contents.
Hope this will help you recover anything:
Code:
/dev/block/mmcblk0p15 /cache ext4 rw
/dev/block/mmcblk0p17 /data ext4 rw
/dev/block/mmcblk0p14 /system ext4 rw
/dev/block/mmcblk0p16 /preload ext4 rw
/dev/null /sdcard datamedia rw
/dev/block/mmcblk1p2 /sd-ext ext4 rw
/dev/block/mmcblk1p1 /external_sd auto rw
tempdroid said:
Hello @MechanicWB,
I had a look recently with Aroma File Manager in recovery and there was a different etc folder displayed.
If you were looking for the fstab file, here are it's contents.
Hope this will help you recover anything:
Code:
/dev/block/mmcblk0p15 /cache ext4 rw
/dev/block/mmcblk0p17 /data ext4 rw
/dev/block/mmcblk0p14 /system ext4 rw
/dev/block/mmcblk0p16 /preload ext4 rw
/dev/null /sdcard datamedia rw
/dev/block/mmcblk1p2 /sd-ext ext4 rw
/dev/block/mmcblk1p1 /external_sd auto rw
Click to expand...
Click to collapse
Still doesn't work Thanks for the help anyway I found a vold.fstab that stabled the tablet, now the only problem is that he doesn't recognize the ext sdcard :c
Thanks for all your help tempdroid.
I need help. D:
tempdroid said:
What source do you mean by this?
Click to expand...
Click to collapse
I want to change the internal storage to external in my Galaxy Tab 10.1 3 Using the method Vold.fstab. And I could spend the modified file or tell me how I should re-write it? greetings
Can anyone help me? how to swap external n internal on tab 3 lite 7.0 stock rom 4.2.2 rooted?

Categories

Resources